/* ============================================
   GeoScope Leaf Premium Styles (taste-skill)
   ============================================ */

/* CSS Variables */
:root {
    --leaf-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --leaf-radius-sm: 8px;
    --leaf-radius-md: 12px;
    --leaf-radius-lg: 16px;
    --leaf-shadow-subtle: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --leaf-shadow-elevated: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.1);
    --leaf-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Typography */
body.leaf-layout {
    font-family: var(--leaf-font-primary);
}

.leaf-title {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
    transition: var(--leaf-transition);
}

.breadcrumb-nav a:hover {
    color: #7dd3fc;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.5);
}

/* Premium Glass Card */
body.leaf-layout .glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--leaf-radius-lg);
    box-shadow: var(--leaf-shadow-subtle);
}

.glass.sidebar-card {
    padding: 1.5rem;
}

/* Content Spacing */
body.leaf-layout .content-container {
    padding: 2rem 0;
}

/* Premium Weather Card */
.weather-conditions-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}

/* Weather Mood Backgrounds with Dark Overlay */
.weather-mood-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.weather-mood-card > * {
    position: relative;
    z-index: 1;
}

/* Weather Mood Image Classes */
.weather-mood-default::before { background-image: url('/images/weather-moods/weather-mood-default.webp'); }
.weather-mood-sunny::before { background-image: url('/images/weather-moods/weather-mood-sunny.webp'); }
.weather-mood-clear-night::before { background-image: url('/images/weather-moods/weather-mood-clear-night.webp'); }
.weather-mood-partly-cloudy::before { background-image: url('/images/weather-moods/weather-mood-partly-cloudy.webp'); }
.weather-mood-cloudy::before { background-image: url('/images/weather-moods/weather-mood-cloudy.webp'); }
.weather-mood-cloudy-night::before { background-image: url('/images/weather-moods/weather-mood-cloudy-night.webp'); }
.weather-mood-rain::before { background-image: url('/images/weather-moods/weather-mood-rain.webp'); }
.weather-mood-snow::before { background-image: url('/images/weather-moods/weather-mood-snow.webp'); }
.weather-mood-storm::before { background-image: url('/images/weather-moods/weather-mood-storm.webp'); }
.weather-mood-fog::before { background-image: url('/images/weather-moods/weather-mood-fog.webp'); }

/* Ensure Text Contrast Over Any Background */
.weather-conditions-card .text-white,
.weather-conditions-card .weather-conditions-temp,
.weather-conditions-card .weather-conditions-label,
.weather-conditions-card .weather-conditions-sub {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

/* Weather Conditions Hero */
.weather-conditions-hero {
    padding: 2rem;
}

/* Temperature Display */
.weather-conditions-temp {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1;
}

.weather-conditions-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.weather-conditions-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.25rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Premium Metric Tiles Container */
.weather-conditions-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.35) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .weather-conditions-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Premium Metric Tile */
.weather-metric-tile {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--leaf-radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: var(--leaf-transition);
}

.weather-metric-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--leaf-shadow-elevated);
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.weather-metric-tile i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.weather-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.weather-metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

/* Premium Buttons */
.btn-premium-info,
.btn-outline-info {
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--leaf-radius-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: var(--leaf-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-premium-info:hover,
.btn-outline-info:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
    color: #38bdf8;
}

.btn-premium-light,
.btn-outline-light {
    border: 1px solid rgba(203, 213, 225, 0.3);
    color: #cbd5e1;
    background: rgba(203, 213, 225, 0.05);
    border-radius: var(--leaf-radius-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: var(--leaf-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-premium-light:hover,
.btn-outline-light:hover {
    background: rgba(203, 213, 225, 0.15);
    border-color: rgba(203, 213, 225, 0.5);
    transform: translateY(-1px);
    color: #cbd5e1;
}

/* Map Container */
.leaf-map {
    border-radius: var(--leaf-radius-lg);
    overflow: hidden;
    box-shadow: var(--leaf-shadow-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nearby Locations */
.nearby-locations .btn-premium-light,
.nearby-locations .btn-outline-light {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Premium Narrative Box */
.narrative-box {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Premium Badges */
.badge {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-time {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.badge-data {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.7);
}

/* Premium Technical Details */
.technical-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(51, 65, 85, 0.3);
    border-radius: var(--leaf-radius-sm);
    margin-bottom: 0.5rem;
}

.technical-detail-item i {
    width: 24px;
    text-align: center;
}

.technical-detail-item span {
    color: rgba(255, 255, 255, 0.75);
}

.technical-detail-item strong {
    color: #ffffff;
}

/* Premium Section Headers */
.section-header {
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Premium Card Headers */
.card-header-premium {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

/* Premium Text Utilities */
.text-premium-muted {
    color: rgba(255, 255, 255, 0.5);
}

.text-premium-light {
    color: rgba(255, 255, 255, 0.85);
}

/* Border Top for Sidebar */
.border-top-premium {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}
