/* 
 * IndieRipple Design System
 * Version: 2.0
 * Common styles shared across all pages
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --ripple-pink: #CD8585;
    --ripple-sage: #9EB6A8;
    --ripple-gold: #D6B878;
    
    /* Backgrounds */
    --cream-canvas: #F5F3F0;
    --pure-white: #FFFFFF;
    
    /* Supporting Colors */
    --soft-blush: #E8D5D5;
    --soft-sage: #D4E0DA;
    --soft-gold: #F0E8D4;
    
    /* Text Colors */
    --charcoal: #333333;
    --warm-grey: #666666;
    --medium-grey: #999999;
    --light-grey: #CCCCCC;
    
    /* Shadows */
    --shadow-subtle: 0 1px 2px rgba(51, 51, 51, 0.08);
    --shadow-standard: 0 4px 6px rgba(51, 51, 51, 0.1);
    --shadow-elevated: 0 10px 15px rgba(51, 51, 51, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream-canvas);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

.top-bar {
    background-color: var(--ripple-sage);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
}

nav {
    background-color: var(--pure-white);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ripple-pink), var(--ripple-sage));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s;
}

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

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

/* User Menu */
.user-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--light-grey);
    border-radius: 24px;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--charcoal);
}

.user-menu-button:hover {
    border-color: var(--ripple-pink);
    box-shadow: var(--shadow-standard);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ripple-pink), var(--ripple-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-icon {
    transition: transform 0.2s;
    color: var(--warm-grey);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    min-width: 240px;
    overflow: hidden;
    border: 1px solid var(--light-grey);
    z-index: 1001;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--soft-blush);
    color: var(--ripple-pink);
}

.dropdown-item svg {
    color: var(--warm-grey);
}

.dropdown-item:hover svg {
    color: var(--ripple-pink);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-grey);
    margin: 8px 0;
}

.logout-item {
    color: var(--ripple-pink);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-button:hover {
    background: var(--soft-blush);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--light-grey);
    padding: 20px 24px;
    animation: slideDown 0.3s ease-out;
}

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

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.mobile-menu-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-links a:hover {
    background: var(--soft-blush);
    color: var(--ripple-pink);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--soft-blush);
    border-radius: 8px;
}

.user-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ripple-pink), var(--ripple-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-name-mobile {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 16px;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--light-grey);
    margin: 8px 0;
}

.mobile-menu-item {
    display: block;
    padding: 12px 16px;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: var(--soft-blush);
    color: var(--ripple-pink);
}

.logout-mobile {
    color: var(--ripple-pink);
    font-weight: 600;
}

.btn-mobile {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu {
        display: block;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background-color: var(--ripple-pink);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #B87373;
    transform: translateY(-1px);
    box-shadow: var(--shadow-standard);
}

.btn-secondary {
    background-color: var(--ripple-sage);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #8AA596;
    transform: translateY(-1px);
    box-shadow: var(--shadow-standard);
}

.btn-ghost {
    background-color: transparent;
    color: var(--charcoal);
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    background-color: var(--soft-blush);
}

.btn-outline {
    background-color: transparent;
    color: var(--ripple-sage);
    padding: 12px 28px;
    border: 2px solid var(--ripple-sage);
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--ripple-sage);
    color: white;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--warm-grey);
}

.breadcrumbs a {
    color: var(--warm-grey);
    text-decoration: none;
    transition: color 0.25s;
}

.breadcrumbs a:hover {
    color: var(--ripple-pink);
}

.breadcrumbs span {
    color: var(--charcoal);
    font-weight: 500;
}

/* ========================================
   COMMON LAYOUT UTILITIES
   ======================================== */

.section-container {
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--charcoal);
    font-weight: 700;
}

.section-header p {
    font-size: 19px;
    color: var(--warm-grey);
    line-height: 1.6;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--charcoal);
}

/* ========================================
   CARDS
   ======================================== */

.card-ripple {
    background-color: var(--pure-white);
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s;
}

.card-ripple:hover {
    box-shadow: var(--shadow-standard);
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.input-ripple {
    background-color: var(--pure-white);
    border: 1.5px solid var(--light-grey);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    transition: all 0.25s;
}

.input-ripple:focus {
    outline: none;
    border-color: var(--ripple-pink);
    box-shadow: 0 0 0 3px rgba(205, 133, 133, 0.1);
}

.input-ripple::placeholder {
    color: var(--medium-grey);
}

select.input-ripple {
    cursor: pointer;
}

textarea.input-ripple {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   BADGES & PILLS
   ======================================== */

.badge-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-pink {
    background-color: var(--soft-blush);
    color: var(--ripple-pink);
}

.badge-sage {
    background-color: var(--soft-sage);
    color: var(--ripple-sage);
}

.badge-gold {
    background-color: var(--soft-gold);
    color: var(--ripple-gold);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--charcoal);
    color: var(--light-grey);
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s;
}

.footer-column a:hover {
    color: var(--ripple-pink);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE - COMMON BREAKPOINTS
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

/* ===== Decorative Circles (used on Home, Category heroes) ===== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Home hero circles */
.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(205,133,133,0.18) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(158,182,168,0.18) 0%, transparent 70%);
    bottom: -60px;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(214,184,120,0.18) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: float-slow 12s ease-in-out infinite 2s;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.04); }
}

/* ===== Category Hero ===== */
.category-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    margin-bottom: 0;
    overflow: hidden;
    background: linear-gradient(145deg, var(--soft-blush) 0%, #EDE8E0 40%, var(--soft-sage) 100%);
}

.category-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 0;
    filter: saturate(0.7);
}

/* Category-specific bubble positions */
.cat-circle-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(205,133,133,0.2) 0%, transparent 65%);
    top: -160px;
    right: -100px;
    animation: float-slow 9s ease-in-out infinite;
}

.cat-circle-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(158,182,168,0.22) 0%, transparent 65%);
    bottom: -100px;
    left: -60px;
    animation: float-slow 11s ease-in-out infinite reverse;
}

.cat-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(214,184,120,0.2) 0%, transparent 65%);
    top: 20px;
    left: 30%;
    animation: float-slow 13s ease-in-out infinite 1s;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    text-align: center;
}

.category-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(205,133,133,0.35);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ripple-pink);
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}

.category-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6);
}

.category-hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--warm-grey);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-hero {
        min-height: 260px;
        padding: 56px 20px;
    }

    .cat-circle-1 { width: 280px; height: 280px; top: -100px; right: -60px; }
    .cat-circle-2 { width: 200px; height: 200px; bottom: -70px; left: -40px; }
    .cat-circle-3 { display: none; }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #F5F3F0;
    box-shadow: 0 -4px 20px rgba(51, 51, 51, 0.12);
}

.cookie-banner-accent {
    height: 3px;
    background: linear-gradient(135deg, #CD8585 0%, #D6B878 100%);
}

.cookie-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cookie-banner-icon {
    font-size: 20px;
    line-height: 1.4;
    flex-shrink: 0;
}

.cookie-banner-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 2px 0;
}

.cookie-banner-text p {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #CD8585;
    font-weight: 500;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-secondary {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #CCCCCC;
    background: transparent;
    color: #666666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.cookie-btn-secondary:hover {
    border-color: #999999;
    color: #333333;
    background: #fff;
}

.cookie-btn-primary {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #CD8585 0%, #D6B878 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: 0 1px 2px rgba(51, 51, 51, 0.08);
    white-space: nowrap;
}

.cookie-btn-primary:hover {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn-secondary,
    .cookie-btn-primary {
        width: 100%;
        text-align: center;
    }
}
