@font-face {
    font-family: 'Times';
    src: url('../assets/fonts/times.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Forest Theme (Default - Green) */
    --light-green: #eef4e7;
    --green: #2e5b2a;
    
    /* Theme Variables - will be overridden by theme classes */
    --theme-bg-light: var(--light-green);
    --theme-color-primary: var(--green);
    --theme-bg-scrolled: rgba(238, 244, 231, 0.98);
    --theme-border: var(--green);
    --theme-hover-bg: rgba(46, 91, 42, 0.1);
    --theme-bg-accent: rgba(229, 237, 218, 0.9);
    --theme-bg-input: #e5edda;
    --theme-border-light: rgba(46, 91, 42, 0.3);
    --theme-placeholder: rgba(46, 91, 42, 0.5);
    --theme-border-accent: rgba(46, 91, 42, 0.1);
    --theme-border-accent-2: rgba(46, 91, 42, 0.2);
}

/* Ocean Theme (Blue) */
body.theme-ocean {
    --theme-bg-light: #eaf6f7;
    --theme-color-primary: #015089;
    --theme-bg-scrolled: rgba(232, 244, 248, 0.98);
    --theme-border: #015089;
    --theme-hover-bg: rgba(30, 74, 94, 0.1);
    --theme-bg-accent: rgba(216, 235, 245, 0.9);
    --theme-bg-input: #d8ebf5;
    --theme-border-light: rgba(30, 74, 94, 0.3);
    --theme-placeholder: rgba(30, 74, 94, 0.5);
    --theme-border-accent: rgba(30, 74, 94, 0.1);
    --theme-border-accent-2: rgba(30, 74, 94, 0.2);
}

/* Night Theme (Black/Dark) */
body.theme-night {
    --theme-bg-light: #000000;
    --theme-color-primary: #ffffff;
    --theme-bg-scrolled: rgba(26, 26, 26, 0.98);
    --theme-border: #4a4a4a;
    --theme-hover-bg: rgba(255, 255, 255, 0.1);
    --theme-bg-accent: rgba(40, 40, 40, 0.9);
    --theme-bg-input: #2a2a2a;
    --theme-border-light: rgba(255, 255, 255, 0.3);
    --theme-placeholder: rgba(255, 255, 255, 0.5);
    --theme-border-accent: rgba(255, 255, 255, 0.1);
    --theme-border-accent-2: rgba(255, 255, 255, 0.2);
}

/* Desert Theme (Brown/Tan) */
body.theme-desert {
    --theme-bg-light: #f9eac7;
    --theme-color-primary: #703b0f;
    --theme-bg-scrolled: rgba(245, 235, 224, 0.98);
    --theme-border: #703b0f;
    --theme-hover-bg: rgba(107, 68, 35, 0.1);
    --theme-bg-accent: rgba(240, 228, 210, 0.9);
    --theme-bg-input: #f0e4d2;
    --theme-border-light: rgba(107, 68, 35, 0.3);
    --theme-placeholder: rgba(107, 68, 35, 0.5);
    --theme-border-accent: rgba(107, 68, 35, 0.1);
    --theme-border-accent-2: rgba(107, 68, 35, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times', 'Times New Roman', serif;
    background-color: var(--theme-bg-light);
    color: var(--theme-color-primary);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hide AI chat widget when under construction mode is active */
body.under-construction-active #ai-chat-widget-container,
body.under-construction-active #ai-chat-widget {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Cookie Disclaimer Link */
.cookie-disclaimer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 10px;
    color: var(--theme-color-primary);
    cursor: pointer;
    z-index: 9999;
    padding: 5px 10px;
    transition: opacity 0.2s ease;
}

.cookie-disclaimer:hover {
    opacity: 0.7;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--theme-bg-light);
    border-top: 1px solid var(--theme-border);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-text {
    font-family: 'Times', 'Times New Roman', serif;
    font-size: 16px;
    color: var(--theme-color-primary);
    margin: 0;
}

.cookie-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cookie-checkbox-text {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: var(--theme-color-primary);
}

.cookie-btn {
    background-color: var(--theme-color-primary);
    color: var(--theme-bg-light);
    border: none;
    padding: 8px 20px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.cookie-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-btn:not(:disabled):hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Global Link Styles - Use Theme Colors */
/* Apply theme color to all links throughout the site */
a {
    color: var(--theme-color-primary);
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

a:visited {
    color: var(--theme-color-primary);
}

a:active {
    color: var(--theme-color-primary);
}

/* Links in content areas */
.home-text a,
.credits-content a,
.environmental-content a,
.opensource-content a,
.podcast-detail-description a,
.book-description a,
#long-cv-content a,
.podcast-section-content a,
.transcript-text a {
    color: var(--theme-color-primary);
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.home-text a:hover,
.credits-content a:hover,
.environmental-content a:hover,
.opensource-content a:hover,
.podcast-detail-description a:hover,
.book-description a:hover,
#long-cv-content a:hover,
.podcast-section-content a:hover,
.transcript-text a:hover {
    opacity: 0.7;
}

/* Social links already styled, but ensure they use theme color */
.social-link {
    color: var(--theme-color-primary);
}

.social-link:hover {
    opacity: 0.7;
}
