/* Sumi-Tea Lab - Bootstrap 5 + jQuery Custom Styles */

/* ===== Color Variables ===== */
:root {
    --color-dark: #1A1A1A;
    --color-white: #F2F2F2;
    --color-gold: #C1A35D;
    --color-light-gray: #E8E8E8;
    --color-text: #333333;
}

/* ===== Typography ===== */
body {
    font-family: 'Lora', serif;
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-dark);
}

.display-3, .display-4, .display-5 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* ===== Navigation ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-name {
    color: var(--color-gold);
    font-family: 'Playfair Display', serif;
}

.navbar-nav .nav-link {
    color: var(--color-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-gold) !important;
    border-bottom: 2px solid var(--color-gold);
}

.border-accent-light {
    border-color: rgba(193, 163, 93, 0.2) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Statistics Section ===== */
.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.stat-number span {
    font-size: 2rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.stat-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 1rem auto 0;
}

/* ===== Buttons ===== */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b8945a;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(193, 163, 93, 0.3);
}

.btn-outline-gold {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

.btn-outline-light {
    border-color: white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ===== Instagram Grid ===== */
.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: var(--color-light-gray);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-content {
    text-align: center;
    color: white;
}

.instagram-caption {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-color: var(--color-light-gray);
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(193, 163, 93, 0.25);
}

/* ===== Customizer Section ===== */
.drink-customizer {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customizer-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.customizer-button {
    background-color: white;
    border: 2px solid var(--color-light-gray);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.customizer-button:hover,
.customizer-button.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark);
}

.drink-preview {
    background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cup-container {
    position: relative;
    width: 120px;
    height: 200px;
    margin: 0 auto 2rem;
}

.cup {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
    background: linear-gradient(90deg, #8B7355 0%, #A0826D 50%, #8B7355 100%);
    border-radius: 0 0 20px 20px;
    border: 2px solid #6B5344;
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #D4A574 0%, #A0826D 100%);
    border-radius: 0 0 18px 18px;
    transition: height 0.3s ease;
}

.ice {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(200, 220, 255, 0.6) 100%);
    border-radius: 0 0 18px 18px;
    transition: height 0.3s ease;
}

/* ===== Store Filters ===== */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
}

.store-card {
    background-color: white;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-card:hover,
.store-card.active {
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(193, 163, 93, 0.2);
}

.store-card.active {
    border-width: 2px;
}

.store-amenity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto 0.5rem;
}

.store-amenity-icon.active {
    background-color: rgba(193, 163, 93, 0.2);
    color: var(--color-gold);
}

.store-amenity-icon.inactive {
    background-color: var(--color-light-gray);
    color: #999;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .display-4, .display-5 {
        font-size: 2rem;
    }

    .btn-gold, .btn-outline-light {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
