/* 
 * 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;
    }
}
