/* Shared Base Styles - Extracted from Index, BottleDetail, and Search pages */

/* ===== CSS VARIABLES (Design Tokens) ===== */
:root {
  /* ===== COLORS - Light Mode ===== */
  
  /* Background Colors */
  --bg-page: #FBF7EE;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F0F0F0;
  --bg-footer: #1A1A1A;
  --bg-pill: #FFFFFF;
  --bg-pill-hover: #F0F0F0;
  
  /* Text Colors */
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-tertiary: #666666;
  --text-page-heading: #1A1A1A;
  --text-card-heading: #1A1A1A;
  --text-card-body: #333333;
  --text-on-dark: #1A1A1A;
  --text-footer: #cccccc;
  
  /* Action Colors */
  --action-primary: #C4611B;
  --action-primary-hover: #A64D12;
  --action-secondary: #2A4A4A;
  --action-secondary-hover: #1D3636;
  
  /* Status Colors */
  --status-error: #D32F2F;
  --badge-error: #d32f2f;
  
  /* Border Colors */
  --border-subtle: #E0E0E0;
  --pill-border: #E0E0E0;
  
  /* ===== TYPOGRAPHY ===== */
  
  /* Font Families */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-md: 13px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-heading-sm: 18px;
  --font-size-heading-md: 24px;
  --font-size-heading-lg: 1.5rem; /* 24px */
  --font-size-heading-xl: 2.5rem; /* 40px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-normal: 1.2;
  --line-height-relaxed: 1.3;
  --line-height-standard: 1.4;
  --line-height-comfortable: 1.5;
  --line-height-spacious: 1.6;
  
  /* Letter Spacing */
  --letter-spacing-tight: 0.5px;
  --letter-spacing-normal: 1px;
  
  /* ===== SPACING ===== */
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Common Padding */
  --padding-button: 12px 24px;
  --padding-card-body: 16px;
  --padding-card-large: 32px;
  --padding-input: 8px 16px;
  --padding-input-small: 8px 12px;
  --padding-search-bar: 8px 16px;
  
  /* Common Margins */
  --margin-section-bottom: 48px;
  --margin-grid-gap: 24px;
  --margin-filter-gap: 16px;
  --margin-content-gap: 16px;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;
  --border-radius-pill: 20px;
  
  /* ===== EFFECTS ===== */
  
  /* Shadows */
  --shadow-header: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 8px 20px rgba(0,0,0,0.12);
  --shadow-xl: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-standard: 0.3s ease;
  --transition-color: color 0.2s ease;
  --transition-background: background-color 0.3s ease;
  --transition-transform: transform 0.2s;
  --transition-combined: background-color 0.3s ease, color 0.3s ease;
  
  /* ===== Z-INDEX ===== */
  
  --z-index-header: 100;
  --z-index-hero-content: 10;
  --z-index-carousel-controls: 2;
  --z-index-producer-logo: 1;
  
  /* ===== DIMENSIONS ===== */
  
  /* Header */
  --header-height: 70px;
  
  /* Cards */
  --card-image-height-vertical: 240px;
  --card-image-width-horizontal: 160px;
  --card-category-tile-height: 300px;
  --card-editorial-image-height: 180px;
  
  /* Hero Section */
  --hero-height: 400px;
  --hero-producer-banner-height: 280px;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 0 16px;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] {
  /* Background Colors */
  --bg-page: #303138;
  --bg-surface: #FFFFFF; /* Cards stay white per style guide */
  --bg-surface-dark: #3A3E48;
  --bg-pill: #2C3038;
  --bg-pill-hover: #3A3E48;
  
  /* Text Colors */
  --text-primary: #1A1A1A; /* Card text stays dark */
  --text-page-heading: #FFFFFF;
  --text-secondary: #B0BEC5;
  --text-tertiary: #666666;
  --text-on-dark: #E8E8E8;
  
  /* Action Colors */
  --action-primary: #C4611B; /* Same as light mode */
  --action-primary-hover: #D6752E;
  --action-secondary: #2A4A4A; /* Matches light mode */
  --action-secondary-hover: #1D3636;
  
  /* Border Colors */
  --border-subtle: #444444;
  --border-on-dark: #4A5058;
  --pill-border: #444444;
  
  /* Shadows - Enhanced for dark mode */
  --shadow-card: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 20px rgba(0,0,0,0.4);
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { 
    font-family: var(--font-heading); 
}

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

/* --- Utilities --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 var(--spacing-md); 
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary { 
    background-color: var(--action-primary); 
    color: white; 
}

.btn-primary:hover {
    background-color: var(--action-primary-hover);
}

.btn-secondary { 
    background-color: var(--action-secondary); 
    color: white; 
}

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

.btn-outline:hover { 
    background-color: var(--bg-surface-hover); 
}

/* --- Main Content --- */
main { 
    padding-top: 70px; 
}

/* --- Footer --- */
footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
}

footer h4 { 
    color: white; 
    margin-bottom: var(--spacing-md); 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

footer ul { 
    list-style: none; 
}

footer li { 
    margin-bottom: 12px; 
    font-size: 14px; 
}

.copyright { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: var(--spacing-2xl); 
    padding-top: var(--spacing-lg); 
    font-size: 12px; 
    text-align: center; 
}

