/* ===========================
   GlowingInCoach - Modern Redesign
   =========================== */

/* --- Custom Properties --- */
:root {
    --color-primary: #c23d8c;
    --color-primary-light: #e85eb0;
    --color-primary-dark: #9a2d6e;
    --color-accent: #8b5cf6;
    --color-accent-light: #a78bfa;
    --color-bg: #fefefe;
    --color-bg-warm: #fdf6f9;
    --color-bg-cool: #f5f0ff;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-border: #f0e6ed;
    --color-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-hero: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #ede9fe 100%);
    --gradient-quote: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 16px rgba(194, 61, 140, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.accent {
    color: var(--color-primary);
}

.accent-text {
    color: var(--color-primary);
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(194, 61, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(194, 61, 140, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 44px;
    font-size: 1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 44px;
    width: auto;
}

.navbar.scrolled .nav-logo-img {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(194, 61, 140, 0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(194, 61, 140, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 61, 140, 0.08) 0%, transparent 70%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 100px;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-logo {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-logo-img {
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(194, 61, 140, 0.15));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.hero-scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-primary);
    animation: scrollPulse 2s ease infinite;
}

/* --- Stats --- */
.stats {
    padding: 48px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.placeholder-hint {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-family: monospace;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 32px;
}

.tag {
    padding: 8px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

/* --- Collection --- */
.collection {
    padding: 100px 0;
    background: var(--color-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-old {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.collection-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: var(--color-bg-cool);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Quote --- */
.quote-section {
    padding: 80px 0;
    background: var(--gradient-quote);
    color: var(--color-white);
}

.quote-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    opacity: 0.4;
    margin-bottom: -12px;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 28px;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.quote-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.quote-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.quote-author-handle {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Final CTA --- */
.final-cta {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

.final-cta-content {
    text-align: center;
}

.final-cta .section-title {
    margin-bottom: 16px;
}

.final-cta .section-subtitle {
    margin-bottom: 36px;
}

/* --- Footer --- */
.footer {
    padding: 40px 0 32px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.footer-tagline {
    color: var(--color-primary) !important;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-scroll {
        display: none;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-divider {
        height: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .about-tags {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }
}

/* --- Shop Direct --- */
.shop-direct {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-white);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
}

/* --- Product Buy Button --- */
.product-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

.btn-buy {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
}

.btn-poshmark-link {
    background: #7b2d8e;
    color: white;
}

.btn-poshmark-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-badge {
    background: var(--color-text);
    color: white;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- PayPal Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-warm);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.modal-product-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.modal-product-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-product-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-info {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-paypal {
    width: 100%;
    justify-content: center;
    padding: 14px;
    background: #0070ba;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
}

.btn-paypal:hover {
    background: #005ea6;
    transform: translateY(-1px);
}

.paypal-icon {
    flex-shrink: 0;
}

.modal-note {
    font-size: 0.78rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 12px;
}

.modal-no-paypal {
    text-align: center;
}

.modal-no-paypal p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-body,
.modal-no-paypal {
    display: none;
}

.modal-body.visible,
.modal-no-paypal.visible {
    display: block;
}
