/**
 * Leica Theme - Inspired by Leica's iconic design language
 * Classic red dot, premium typography, minimal elegance
 */

:root {
    /* Leica Brand Colors */
    --primary-color: #e60012;           /* Iconic Leica red */
    --primary-dark: #cc0010;
    --secondary-color: #2c2c2c;         /* Dark charcoal */
    --background: #fafafa;              /* Warm white */
    --surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    
    /* Override any blue accent colors from base style */
    --accent-primary: #e60012;          /* Override blue with Leica red */
    --accent-secondary: #cc0010;        /* Override blue with darker red */
    --accent-gradient: linear-gradient(135deg, #e60012 0%, #cc0010 100%);
    
    /* Leica Typography - inspired by their clean, German design */
    --font-display: 'Playfair Display', serif;  /* Elegant serif for headers */
    --font-body: 'Inter', sans-serif;           /* Clean sans-serif for body */
    --font-mono: 'JetBrains Mono', monospace;   /* Technical details */
    
    /* Spacing - generous, breathing room */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border radius - subtle, refined */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(230, 0, 18, 0.1);
}

/* Body and base styles */
body {
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Hero section with Leica-inspired red accent */
.hero {
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%),
        radial-gradient(circle at top right, 
        rgba(230, 0, 18, 0.03) 0%, 
        transparent 50%);
}

.hero-title {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

/* CTA Button - Leica red with premium feel */
.cta-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);
}

/* Navigation - minimal with red accent */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 0, 18, 0.1);
}

.nav-brand {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
}

.nav-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Photo Gallery - clean, gallery-like presentation */
.photo-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-light);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px var(--shadow-medium);
    border-color: rgba(230, 0, 18, 0.2);
}

.photo-overlay {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.photo-title {
    color: white;
    font-family: var(--font-display);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.photo-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.photo-meta {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* About section with Leica-inspired layout */
.about-content {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

/* Glass cards with subtle red tint */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px var(--shadow-light);
}

/* Lightbox with Leica styling */
.lightbox {
    background: rgba(26, 26, 26, 0.95);
}

.lightbox-content {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    border: 2px solid rgba(230, 0, 18, 0.1);
}

.lightbox-title {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 500;
}

.lightbox-nav button {
    background: rgba(230, 0, 18, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(230, 0, 18, 0.2);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.lightbox-nav button:hover {
    background: var(--primary-color);
    color: white;
}

/* EXIF display with technical precision */
.exif-data {
    background: rgba(250, 250, 250, 0.95);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.exif-row {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exif-row strong {
    color: var(--text-primary);
}

/* Lightbox info area - ensure good contrast */
.lightbox-info {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.lightbox-info .lightbox-title {
    color: white;
}

.lightbox-info .lightbox-description {
    color: rgba(255, 255, 255, 0.9);
}

/* EXIF data in lightbox - dark theme for better readability */
.lightbox-info .exif-data {
    background: rgba(0, 0, 0, 0.6);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.lightbox-info .exif-camera,
.lightbox-info .exif-lens,
.lightbox-info .exif-settings,
.lightbox-info .exif-location {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lightbox-info .meta-date,
.lightbox-info .meta-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Info toggle button with Leica styling */
.info-toggle {
    background: rgba(230, 0, 18, 0.8);
    border: 1px solid rgba(230, 0, 18, 0.3);
    backdrop-filter: blur(10px);
}

.info-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.4);
}

/* Footer with subtle branding */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

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

/* Theme-specific animations */
@keyframes leicaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-card {
    animation: leicaFadeIn 0.6s ease forwards;
}

/* Red dot accent - subtle Leica branding element */
.leica-dot {
    position: relative;
}

.leica-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -8px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(230, 0, 18, 0.4);
}

/* Apply to brand name */
.nav-brand.leica-dot::before {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
}