:root {
    --bg-light: #fdfcf8;
    --card-light: #ffffff;
    --accent-gold: #c5a059;
    --accent-gold-soft: rgba(197, 160, 89, 0.1);
    --accent-whatsapp: #25d366;
    --accent-call: #4f46e5;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-soft: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --skeleton: #f1f1f1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f172a;
        --card-light: #1e293b;
        --text-dark: #f1f5f9;
        --text-muted: #94a3b8;
        --border-soft: rgba(255, 255, 255, 0.05);
        --glass-bg: rgba(15, 23, 42, 0.8);
        --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
        --skeleton: #2d3748;
    }
}

/* Skeleton Effect */
.skeleton {
    background: var(--skeleton);
    background-image: linear-gradient(90deg, var(--skeleton) 0px, rgba(255, 255, 255, 0.05) 50px, var(--skeleton) 100px);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Base Components Checklist */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.status-badge.closed {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.open .status-dot {
    box-shadow: 0 0 8px #25d366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Share Button */
.share-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-dark);
    padding: 0 12px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
    font-weight: 600;
}

.share-btn:active {
    transform: scale(0.9);
}

/* Location / Directions Button */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.location-btn:active {
    transform: scale(0.95);
    background: var(--accent-gold);
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--accent-gold);
}

.slogan {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Search */
.search-container {
    padding: 20px 24px 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    color: var(--accent-gold);
}

#lookbook-search {
    width: 100%;
    padding: 14px 12px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Discover Reel */
.discover-reel {
    padding: 24px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.discover-reel::-webkit-scrollbar {
    display: none;
}

.discover-item {
    display: inline-block;
    width: 85px;
    margin-left: 20px;
    text-align: center;
    cursor: pointer;
}

.discover-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: white;
    padding: 2px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--accent-gold);
    transition: transform 0.3s;
}

.discover-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: cover;
}

.discover-item:active .discover-avatar {
    transform: scale(0.9);
}

.discover-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feed & Cards */
.lookbook-feed {
    padding: 0 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.lookbook-card {
    background: var(--card-light);
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: visible;
    position: relative;
    border: 1px solid var(--border-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.lookbook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.lookbook-card.featured {
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.lookbook-card.featured.red {
    border-color: #ff4757;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.3);
}

.lookbook-card.featured.orange {
    border-color: #ff9f43;
    box-shadow: 0 0 30px rgba(255, 159, 67, 0.3);
}

.featured-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #b8860b, #ffd700);
    background-size: 200% auto;
    color: #4a3400;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 900;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid white;
    animation: golden-shimmer 3s linear infinite;
    white-space: nowrap;
}

.featured-badge.red {
    background: linear-gradient(135deg, #ff4757, #b31b27, #ff4757);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: red-shimmer 3s linear infinite;
}

.featured-badge.orange {
    background: linear-gradient(135deg, #ff9f43, #ee5253, #ff9f43);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.4);
    animation: orange-shimmer 3s linear infinite;
}

@keyframes golden-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes red-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes orange-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Card Header Layout */
.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--card-light-rgb), 0.5);
    backdrop-filter: blur(10px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.esnaf-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.esnaf-info {
    display: flex;
    flex-direction: column;
}

.esnaf-name-small {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.esnaf-sub-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.campaign-tag {
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Carousel */
.lookbook-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f1f1f1;
    cursor: grab;
}

.carousel-strip {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

.strip-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.strip-segment.active {
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.lookbook-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.lookbook-slide {
    flex: 0 0 100%;
    height: 100%;
}

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

/* Card Body */
.card-body {
    padding: 25px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.card-caption {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-button {
    background: linear-gradient(135deg, #ff4757, #e63946);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.cta-button.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cta-button.btn-outline:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
}

/* Profile Page Styles */
.boutique-profile {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.boutique-hero {
    position: relative;
    margin-bottom: 30px;
}

.boutique-logo-large {
    width: 120px;
    height: 120px;
    border-radius: 35px;
    border: 4px solid var(--accent-gold);
    padding: 4px;
    background: white;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.2);
    margin-bottom: 25px;
}

.boutique-name {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.boutique-bio {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}

.modern-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 60px;
    padding: 0 10px;
}

.modern-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modern-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.modern-btn.phone {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lookbook-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Mobile Optimizations */
@media (max-width: 500px) {
    .lookbook-feed {
        padding: 0 15px 30px;
    }

    .lookbook-carousel {
        aspect-ratio: 4 / 5;
    }

    .lookbook-card {
        border-radius: 20px;
    }

    .card-header {
        padding: 12px 15px;
        margin-top: 15px;
    }

    .modern-action-bar {
        grid-template-columns: 1fr;
    }
}

/* Reaction Bar */
.reaction-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    background: var(--border-soft);
    border-radius: 18px;
    justify-content: center;
}

.reaction-btn {
    background: white;
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.reaction-btn span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
}

.reaction-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.reaction-btn.voted {
    background: var(--accent-gold-soft);
    border-color: var(--accent-gold);
    color: white;
}

.reaction-btn.voted span {
    color: var(--accent-gold);
}

@keyframes votedShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.voted-shake {
    animation: votedShake 0.4s ease-in-out;
    border-color: #ff4757 !important;
}

/* Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.story-modal.active {
    display: flex;
}

.story-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 800px;
    background: #000;
}

.story-progress {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
}

.story-header {
    position: absolute;
    top: 30px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: white;
}

.story-close {
    position: absolute;
    top: 30px;
    right: 15px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}