/**
 * Green Suites Custom Styles
 */

/* Screen Reader Only */

#main-header {
    transition: box-shadow 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

#main-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    opacity: 1;
    animation: headerFadeIn 0.3s ease forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Remove number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Swatch Active State */
.swatch-input:checked + .swatch-label {
    border-color: #0d9488 !important;
}

.swatch-input:checked + .swatch-label .swatch-check {
    display: flex !important;
}

/* Price Styling */
.price {
    font-size: inherit;
    color: inherit;
}

.price del {
    opacity: 0.5;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.price ins {
    text-decoration: none;
    font-weight: inherit;
}

/* WooCommerce Tabs */
.woocommerce-tabs {
    margin-top: 2rem;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 1rem 0;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.woocommerce-tabs .tabs li.active a {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

/* Reviews */
#reviews .commentlist {
    list-style: none;
    padding: 0;
}

#reviews .comment {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.star-rating {
    color: #fb923c;
}

/* Related Products */
.related.products h2,
.upsells.products h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.products .product {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.products .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.products .product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.products .product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1rem;
}

.products .product .price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 1rem 1rem;
}

/* Messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-message {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.woocommerce-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    color: #6b7280;
    font-size: 0.875rem;
}

.woocommerce-breadcrumb a {
    color: #0d9488;
    text-decoration: none;
}

/* Hide WooCommerce default selects */
.variations select {
    display: none !important;
}

/* Slide Cart Animation */
#slideCart {
    transition: transform 0.3s ease-in-out;
}

/* Smooth Animations */
.notification-toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Hide default ugly styles */
.splide__pagination {
    bottom: -2.5rem;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid var(--teal);
    border-radius: 9999px;
    opacity: 1;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: var(--teal);
    transform: scale(1.3);
}

.splide__pagination__page:hover {
    background: var(--orange);
}

.splide__arrow {
    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    opacity: 1;
    transition: all 0.3s ease;
}


.splide__arrow:hover {
    background: var(--teal);
}


.splide__arrow svg {
    fill: var(--teal);
    transition: fill 0.3s ease;
}


.splide__arrow:hover svg {
    fill: #ffffff;
}


.splide__arrow--prev {
    left: -20px;
}

.splide__arrow--next {
    right: -20px;
}

@keyframes slideFromLeft {
    0%   { opacity: 0; transform: translateX(-160px); }
    100% { opacity: 1; transform: translateX(0); }
}

.slide-from-left {
    animation: slideFromLeft 1.5s ease-out forwards;
}

@keyframes bgSlide {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.03); }
    32% { opacity: 1; transform: scale(1.08); }
    42% { opacity: 0; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1); }
}

.tilt-bg-slide{
    position:absolute;
    inset:-20%;
    background-size:cover;
    background-position:center;
    animation:bgSlide 28s ease-in-out infinite;
    will-change: opacity, transform;
}

/* 4 images = every 6s next image starts */
.tilt-bg-slide:nth-child(1){ animation-delay:0s; }
.tilt-bg-slide:nth-child(2){ animation-delay:7s; }
.tilt-bg-slide:nth-child(3){ animation-delay:14s; }
.tilt-bg-slide:nth-child(4){ animation-delay:21s; }

.sleek-play-btn {
    position: relative;
    transition: transform 0.3s ease;
}

.group:hover .sleek-play-btn {
    transform: scale(1.08);
}

.sleek-play-ripple {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 10px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: sleekBubbleOut 2.3s ease-out infinite;
    pointer-events: none;
}

.sleek-play-ripple.r1 { animation-delay: 0s; }
.sleek-play-ripple.r2 { animation-delay: 0.8s; }
.sleek-play-ripple.r3 { animation-delay: 1.1s; }

@keyframes sleekBubbleOut {
    0%   { opacity: 0.5; transform: scale(1); }
    42%  { opacity: 0;   transform: scale(2.8); }
    100% { opacity: 0;   transform: scale(2.8); }
}


/* Blog Post Content (Gutenberg blocks inside .gs-blog-content) */
.gs-blog-content {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.8;
}

.gs-blog-content > * + * {
    margin-top: 1.5rem;
}

.gs-blog-content .wp-block-heading,
.gs-blog-content h1,
.gs-blog-content h2,
.gs-blog-content h3,
.gs-blog-content h4,
.gs-blog-content h5,
.gs-blog-content h6 {
    color: #08313a;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.gs-blog-content h1,
.gs-blog-content h2.wp-block-heading {
    font-size: 1.875rem;
}

.gs-blog-content h3.wp-block-heading {
    font-size: 1.5rem;
}

.gs-blog-content h4.wp-block-heading {
    font-size: 1.25rem;
}

.gs-blog-content > :first-child {
    margin-top: 0;
}

.gs-blog-content .wp-block-paragraph,
.gs-blog-content p {
    margin: 0;
    margin-bottom: 1.5rem;
}

.gs-blog-content a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.gs-blog-content a:hover {
    color: var(--orange);
}

.gs-blog-content strong {
    color: #08313a;
    font-weight: 700;
}

.gs-blog-content ul,
.gs-blog-content ol {
    padding-left: 1.5rem;
}

.gs-blog-content ul {
    list-style: disc;
}

.gs-blog-content ol {
    list-style: decimal;
}

.gs-blog-content li + li {
    margin-top: 0.5rem;
}

.gs-blog-content .wp-block-image {
    margin: 0;
}

.gs-blog-content .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(8, 49, 58, 0.12);
}

.gs-blog-content .wp-block-image figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.gs-blog-content blockquote {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--teal);
    background: var(--teal-fade);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #08313a;
    font-style: italic;
}

.gs-blog-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}
/* End Blog Post Content */