/* Lucida Website - Main Styles */

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #000000;
    --link-color: #000000;
    --hover-color: #666666;
    --border-color: #e0e0e0;
    
    /* Homepage specific colors */
    --home-bg: #0a0a0a;
    --home-text: #ffffff;
    --home-border: #ffffff;
}

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

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.2rem;
    margin-top: 3rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* Header */
.site-header {
    padding: 2.5rem 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

/* Homepage specific header styling */
body.home .site-header {
    background-color: transparent;
    border-bottom: none;
    position: absolute;
    width: 100%;
    backdrop-filter: none;
}

body.home .site-title a {
    color: var(--home-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

body.home .menu a {
    color: var(--home-text);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

body.home .menu a::after {
    display: none;
}

body.home .menu a:hover {
    border-color: var(--home-border);
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-branding {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin: 0;
    text-transform: uppercase;
}

.site-title a {
    color: var(--accent);
}

/* Navigation */
.main-navigation {
    text-align: center;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.menu li {
    position: relative;
}

.menu a {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--hover-color);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
.site-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 5% 8rem;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Page Specific */
body.home {
    background-color: var(--home-bg);
    color: var(--home-text);
}

body.home .site-content {
    padding: 0;
    max-width: none;
}

.home-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Slideshow container */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.4) 100%);
}

.home-content > div {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* About Page */
.about-content blockquote {
    font-style: italic;
    margin: 2.5rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.about-content img {
    max-width: 100%;
    height: auto;
    margin: 3rem 0;
    display: block;
}

/* Blog blockquote styling */
.post-content blockquote {
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--secondary-bg);
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
}

/* Blog */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.blog-post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4rem;
    animation: fadeInPost 0.6s ease both;
}

.blog-post:last-child {
    border-bottom: none;
}

@keyframes fadeInPost {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blog-post:nth-child(1) { animation-delay: 0.1s; }
.blog-post:nth-child(2) { animation-delay: 0.2s; }
.blog-post:nth-child(3) { animation-delay: 0.3s; }
.blog-post:nth-child(4) { animation-delay: 0.4s; }
.blog-post:nth-child(5) { animation-delay: 0.5s; }
.blog-post:nth-child(6) { animation-delay: 0.6s; }

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    letter-spacing: 0.05em;
}

.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
    border-radius: 2px;
}

/* SoundCloud embed styling */
.soundcloud-embed {
    margin: 2rem 0;
}

/* Preview Page */
.preview-content {
    text-align: center;
    min-height: 40vh;
}

.preview-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* News Page */
.news-articles {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.news-article {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.news-article:last-child {
    border-bottom: none;
}

.news-article h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-article p {
    line-height: 1.8;
}

.news-article a {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .site-header {
        padding: 1.5rem 5%;
    }

    .site-title {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }

    /* Mobile Menu Toggle Button - Always visible on mobile */
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Homepage: Make toggle button white with shadow */
    body.home .menu-toggle {
        display: block !important;
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    }

    .main-navigation {
        position: relative;
    }

    /* Hide menu by default on mobile - VERY SPECIFIC SELECTORS */
    .menu,
    body.home .menu,
    .main-navigation .menu,
    body.home .main-navigation .menu {
        display: none !important;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    /* Show menu when active - OVERRIDE EVERYTHING */
    .menu.active,
    body.home .menu.active,
    .main-navigation .menu.active,
    body.home .main-navigation .menu.active {
        display: flex !important;
    }
    
    /* Homepage specific menu styling when open */
    body.home .menu.active {
        background-color: rgba(0, 0, 0, 0.95) !important;
        padding: 1.5rem !important;
        border-radius: 5px;
        margin-top: 1rem;
    }
    
    /* Ensure menu links are visible on homepage when menu is open */
    body.home .menu.active a {
        color: #ffffff !important;
        display: block;
        padding: 0.5rem 0;
    }

    .site-content {
        padding: 3rem 5% 5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .blog-posts {
        gap: 3rem;
    }

    .blog-post {
        padding-bottom: 3rem;
    }

    .about-content blockquote {
        padding-left: 1rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

/* Loading Animation */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

body.home ::selection {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--home-text);
}