/**
 * Auction Shared Styles
 *
 * Common styles shared across auction.ejs, auction-detail.ejs, and auction-live.ejs
 * Includes luxury typography, color variables, and base styling for the old-money aesthetic
 *
 * @author Budnavet Development Team
 * @version 1.0.0
 */

/* ===========================================
   GOOGLE FONTS IMPORT
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===========================================
   LUXURY COLOR VARIABLES
   =========================================== */

:root {
    /* Primary luxury colors */
    --luxury-gold: #d4af37;
    --luxury-gold-light: #f4e6a1;
    --luxury-gold-dark: #b8941f;

    /* Navy blue tones */
    --luxury-navy: #1a2332;
    --luxury-navy-light: #2c3e50;
    --luxury-navy-dark: #14202c;

    /* Neutral tones */
    --luxury-cream: #faf8f3;
    --luxury-cream-dark: #e8e4d8;
    --luxury-silver: #c0c0c0;
    --luxury-charcoal: #36454f;

    /* Animation timing */
    --luxury-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===========================================
   LUXURY TYPOGRAPHY CLASSES
   =========================================== */

.luxury-serif {
    font-family: 'Playfair Display', serif;
}

.luxury-sans {
    font-family: 'Inter', sans-serif;
}

/* ===========================================
   UTILITY TEXT COLORS
   =========================================== */

.text-luxury-gold {
    color: var(--luxury-gold) !important;
}

.text-luxury-navy {
    color: var(--luxury-navy) !important;
}

.text-luxury-charcoal {
    color: var(--luxury-charcoal) !important;
}

/* ===========================================
   COMMON BUTTON STYLES
   =========================================== */

.btn-luxury-primary {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%);
    border: 1px solid var(--luxury-gold-dark);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s var(--luxury-ease);
}

.btn-luxury-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--luxury-gold-dark) 0%, var(--luxury-gold) 100%);
    color: #fff;
}

.btn-luxury-secondary {
    background: transparent;
    border: 2px solid var(--luxury-charcoal);
    color: var(--luxury-charcoal);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s var(--luxury-ease);
}

.btn-luxury-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--luxury-navy);
    color: var(--luxury-navy);
    transform: translateY(-2px);
}

/* White border variant for dark backgrounds */
.btn-luxury-secondary.btn-luxury-secondary-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-luxury-secondary.btn-luxury-secondary-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ===========================================
   COMMON ANIMATIONS
   =========================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #d9534f;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
    margin-right: 0.5rem;
}

/* ===========================================
   COMMON CARD STYLES
   =========================================== */

.luxury-card {
    background: linear-gradient(145deg, white 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--luxury-ease);
}

.luxury-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--luxury-gold);
}

/* ===========================================
   SECTION HEADERS
   =========================================== */

.section-header {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--luxury-navy);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%);
    border-radius: 2px;
}

.section-header.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================================
   RESPONSIVE TYPOGRAPHY
   =========================================== */

@media (max-width: 768px) {
    .section-header {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .btn-luxury-primary,
    .btn-luxury-secondary {
        padding: 0.625rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}
