/* Vinistra Core Styles */

/* Common Variables & Gradients */
:root { 
    --heart-color: #ef4444; 
    --vinistra-gold: #d4af37;
    --primary-wine: #2a0002;

    /* Map feature colours */
    --map-hotspot-open: #d4af37;
    --map-hotspot-closed: #6b7280;
    --map-pulse-color: rgba(212, 175, 55, 0.5);
    --map-modal-bg: #ffffff;

    /* Barometer colours (gold-on-dark palette) */
    --barometer-low: #22c55e;
    --barometer-medium: #d4af37;
    --barometer-high: #ef4444;

    /* Schedule */
    --schedule-live-border: #d4af37;
    --schedule-countdown-color: #d4af37;
}

.dark { 
    --heart-color: #d4af37; 
}

.tannin-gradient { 
    background: linear-gradient(135deg, #2a0002 0%, #4a0e0e 100%); 
}

.dark .tannin-gradient { 
    background: var(--vinistra-gold); 
}

.heart-icon { 
    color: var(--heart-color) !important; 
}

/* Material Symbols Fix */
.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; 
}

/* Paper Grain Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

/* Skeleton Shimmer Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

.dark .skeleton {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notifications System */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary-wine);
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(125%);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    font-weight: 600;
    font-size: 0.875rem;
    border-left: 4px solid var(--vinistra-gold);
}

.dark .toast {
    background: rgba(30, 30, 30, 0.9);
    color: white;
    border-color: rgba(212, 175, 55, 0.4);
}

.toast.show { 
    transform: translateX(0); 
}

/* Glassmorphism Panels */
.glass-panel { 
    background: rgba(251, 251, 251, 0.8); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
}

.dark .glass-panel { 
    background: rgba(18, 18, 18, 0.9); 
}
/* Premium Transitions */
:root {
    --transition-premium: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card Hover Effects */
.card-hover {
    transition: var(--transition-premium);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Reveal Animations */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}
