/* assets/css/style.css */

/* 
 * 1. Stylish Color System & Variables
 */
:root {
    /* Primary Brand Colors (Deep Slate & Vibrant Emerald) */
    --brand-primary: #0f172a;       /* Slate 900 - very dark, sophisticated blue/gray */
    --brand-accent: #10b981;        /* Emerald 500 - vibrant, energetic green */
    --brand-accent-hover: #059669;  /* Emerald 600 */
    
    /* UI Backgrounds */
    --surface-bg: #f1f5f9;          /* Slate 100 - soft grayish white */
    --card-bg: #ffffff;             /* Pure white for cards */
    --footer-bg: #e2e8f0;           /* Slate 200 */
    
    /* Text Colors */
    --text-main: #1e293b;           /* Slate 800 */
    --text-light: #475569;          /* Slate 600 */
    
    /* Elements */
    --border-color: #cbd5e1;        /* Slate 300 */
    --star-color: #f59e0b;          /* Amber 500 */
}

/* Base Adjustments */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-main);
}

/* Theme Classes mapping to CSS Variables */
.theme-bg { background-color: var(--surface-bg); }
.theme-header { background-color: var(--brand-primary); color: #ffffff; }
.theme-card { background-color: var(--card-bg); }
.theme-footer { background-color: var(--footer-bg); }
.text-main { color: var(--text-main); }
.star-rating { color: var(--star-color); }

/* Stylish CTA Button */
.btn-cta {
    background-color: var(--brand-accent);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}
.btn-cta:hover {
    background-color: var(--brand-accent-hover);
}


/* 
 * 2. No-JS Image Gallery with Arrows & Thumbs 
 */
.gallery-container {
    position: relative;
    width: 100%;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; 
}

.gallery-slides {
    display: flex;
    width: 400%; /* 100% per 4 images */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrow Styling */
.gallery-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through except on labels */
}

.arrow {
    display: none; /* Hidden by default, shown based on checked radio */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--brand-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    user-select: none;
}

.arrow:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.arrow.left { left: 15px; }
.arrow.right { right: 15px; }

/* Show corresponding arrows based on active slide */
#slide1:checked ~ .gallery-wrapper .arrow-s1 { display: flex; }
#slide2:checked ~ .gallery-wrapper .arrow-s2 { display: flex; }
#slide3:checked ~ .gallery-wrapper .arrow-s3 { display: flex; }
#slide4:checked ~ .gallery-wrapper .arrow-s4 { display: flex; }

/* Slide Transitions */
#slide1:checked ~ .gallery-wrapper .gallery-slides { transform: translateX(0%); }
#slide2:checked ~ .gallery-wrapper .gallery-slides { transform: translateX(-25%); }
#slide3:checked ~ .gallery-wrapper .gallery-slides { transform: translateX(-50%); }
#slide4:checked ~ .gallery-wrapper .gallery-slides { transform: translateX(-75%); }

/* Thumbnails */
.thumb-label {
    width: 75px;
    height: 75px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-label:hover {
    opacity: 0.8;
}

/* Active Thumbnail State */
#slide1:checked ~ .gallery-thumbs label[for="slide1"],
#slide2:checked ~ .gallery-thumbs label[for="slide2"],
#slide3:checked ~ .gallery-thumbs label[for="slide3"],
#slide4:checked ~ .gallery-thumbs label[for="slide4"] {
    border-color: var(--brand-accent);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* 
 * 3. Review Block Enhancements 
 */
.review-block {
    word-wrap: break-word;
}