/* base.css - Reset, Variables & Typography */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --olive: #7C8471;
    --sage: #A8B79E;
    --light-sage: #E8EDE5;
    --cream: #FAF8F3;
    --warm-white: #FEFDFB;
    --deep-olive: #5A6051;
    --neutral-brown: #8B7355;
    --soft-gray: #E5E5E3;
    --text-dark: #2C3A2E;
    --text-light: #6B7A6D;
}

/* Base Typography */
body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--warm-white);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Modern Sans for Headers */
h1, h2, h3, .nav-link, .btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Global Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.1;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(124, 132, 113, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(124, 132, 113, 0.3);
    }
}

/* High Contrast Mode */
body.high-contrast {
    background: #000;
    color: #fff;
}

body.high-contrast .hero,
body.high-contrast .features,
body.high-contrast .journey,
body.high-contrast .quiz-section,
body.high-contrast .virtual-tour-section,
body.high-contrast .timeline-section,
body.high-contrast .gallery-section,
body.high-contrast .ai-demo-section,
body.high-contrast .testimonials-section {
    background: #000;
}

body.high-contrast .feature-card,
body.high-contrast .floating-card,
body.high-contrast .quiz-wrapper,
body.high-contrast .tour-viewer,
body.high-contrast .tour-rooms,
body.high-contrast .timeline-content,
body.high-contrast .testimonial-card,
body.high-contrast .demo-feature {
    background: #111;
    border: 2px solid #fff;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast p,
body.high-contrast span {
    color: #fff !important;
}

/* Flash Alert Styles */
.flash-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.flash-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.flash-alert-content {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}

.flash-alert-success .flash-alert-content {
    border-left-color: #10B981;
    background: #F0FDF4;
}

.flash-alert-error .flash-alert-content {
    border-left-color: #EF4444;
    background: #FEF2F2;
}

.flash-alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.flash-alert-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.flash-alert-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.flash-alert-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .flash-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Disabled Widgets */
.availability-widget,
.widget-reopen,
.accessibility-toggle,
.accessibility-widget,
.social-proof-ticker,
.countdown-banner,
.exit-popup {
    display: none !important;
}