/* ===================================
   CSS Reset and Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', 'Garamond', serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   Navigation Bar Styles
   =================================== */

.navbar {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-blog {
    font-family: 'EB Garamond', 'Garamond', serif;
    color: #fff;
    font-weight: 400;
    font-size: 2.2rem;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 2rem;
}

.nav-blog:hover {
    opacity: 0.7;
}

.nav-brand {
    font-family: 'EB Garamond', 'Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.7;
}

.nav-link {
    font-family: 'EB Garamond', 'Garamond', serif;
    color: #fff;
    font-weight: 400;
    font-size: 2.2rem;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 2rem;
}

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

/* ===================================
   Main Content Area Layout
   =================================== */

.app-root {
    min-height: calc(100vh - 60px);
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===================================
   Blog Page Styles
   =================================== */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blog-post {
    margin-bottom: 4rem;
}

.blog-post:last-child {
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background-color: #0a0a0a;
}

.blog-post-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1rem;
    gap: 1rem;
}

.blog-post-credit {
    color: #888;
    font-size: 1rem;
    text-align: left;
    flex-shrink: 0;
}

.blog-post-title {
    color: #888;
    font-size: 1rem;
    text-align: right;
    flex-grow: 1;
}

/* Blog Image Error Placeholder */
.blog-image-error {
    background-color: #1a1a1a;
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.blog-error-icon {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.blog-error-text {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

.about-content {
    background-color: transparent;
    padding: 2rem;
    border-radius: 8px;
}

.about-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.blog-temporary-message {
    font-family: 'EB Garamond', 'Garamond', serif;
    font-style: italic;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.artist-links-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.artist-links-section h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
}

.artist-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artist-link {
    color: #fff;
    font-size: 1.8rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    display: inline-block;
}

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

/* ===================================
   Artist Page Layout with Flexbox
   =================================== */

.artist-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.video-list-container {
    flex: 1;
    min-width: 0;
}

.side-menu-container {
    width: 280px;
    flex-shrink: 0;
}

/* ===================================
   Component and Video Container Spacing
   =================================== */

.component-container {
    scroll-margin-top: 80px;
}

.video-item {
    background-color: #000;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: none;
    scroll-margin-top: 80px;
}

.video-item:last-child {
    margin-bottom: 0;
}

.video-player {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    background-color: #000;
    margin-bottom: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.video-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* ===================================
   Side Menu Fixed Positioning
   =================================== */

.side-menu {
    width: 100%;
}

.side-menu-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    background-color: #000;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.side-menu h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #333;
    text-align: center;
}

.side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-menu li {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #ccc;
    font-size: 0.95rem;
}

.side-menu li:hover {
    background-color: #222;
    color: #fff;
}

.side-menu li.active {
    background-color: #333;
    color: #fff;
    font-weight: 500;
}

/* ===================================
   Find Me Component Styles
   =================================== */

.find-me-component {
    padding: 3rem 2rem;
    background-color: #0a0a0a;
    border-radius: 8px;
    margin-top: 3rem;
}

.find-me-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #333;
}

.find-me-section {
    margin-bottom: 2.5rem;
}

.find-me-section:last-child {
    margin-bottom: 0;
}

.find-me-section-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.find-me-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.find-me-link {
    display: block;
    padding: 1rem 1.5rem;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.find-me-link:hover {
    background-color: #1a1a1a;
    border-color: #555;
    color: #fff;
    transform: translateY(-2px);
}

.find-me-link:active {
    transform: translateY(0);
}

/* ===================================
   Responsive Design Considerations
   =================================== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .artist-container {
        padding: 1.5rem;
    }

    .side-menu-container {
        width: 240px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-blog {
        font-size: 1.5rem;
        left: 1rem;
        padding: 0.5rem;
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        right: 1rem;
        padding: 0.5rem;
    }

    .artist-container {
        flex-direction: column;
        padding: 1rem;
    }

    .side-menu-container {
        display: none; /* Hide desktop side menu on mobile */
    }

    .video-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-container {
        padding: 2rem 1rem;
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .blog-container {
        padding: 2rem 1rem;
    }

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

    .blog-post-caption {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-post-credit,
    .blog-post-title {
        text-align: left;
    }

    .artist-links-section h2 {
        font-size: 1.5rem;
    }

    .artist-link {
        font-size: 1.8rem;
    }

    .find-me-component {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .find-me-title {
        font-size: 1.75rem;
    }

    .find-me-section-title {
        font-size: 1.2rem;
    }

    .find-me-links {
        grid-template-columns: 1fr;
    }
    
    /* Add bottom padding to content to prevent overlap with mobile navigation */
    .artist-container {
        padding-bottom: 80px; /* 60px nav height + 20px buffer */
    }

}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 0.5rem;
    }

    .nav-blog {
        font-size: 1.1rem;
        left: 0.5rem;
        padding: 0.25rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 1.1rem;
        right: 0.5rem;
        padding: 0.25rem;
    }
    
    /* ===================================
       Mobile Bottom Navigation
       =================================== */
    
    .mobile-bottom-nav {
        display: none; /* Hidden by default, shown only on mobile */
    }
    
    /* Mobile devices - show bottom navigation */
    @media (max-width: 768px) {
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: #000;
            border-top: 1px solid #333;
            display: flex;
            z-index: 100;
            padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
        }
    
        .mobile-nav-button {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'EB Garamond', 'Garamond', serif;
            font-size: 1.1rem;
            color: #888;
            font-weight: 400;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: color 0.3s ease, font-weight 0.3s ease;
            padding: 0;
        }
    
        .mobile-nav-button.active {
            color: #fff !important;
            font-weight: 500;
        }
    
        .mobile-nav-button:hover:not(.active) {
            color: #ccc;
        }
    }

    .video-title {
        font-size: 1.25rem;
    }

    .video-item {
        padding: 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content h1 {
        font-size: 1.75rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .blog-container {
        padding: 1.5rem 1rem;
    }

    .blog-post {
        margin-bottom: 2rem;
    }

    .blog-post-caption {
        font-size: 0.9rem;
    }

    .blog-image-error {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .artist-link {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }

    .find-me-component {
        padding: 1.5rem 1rem;
    }

    .find-me-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .find-me-section {
        margin-bottom: 2rem;
    }

    .find-me-section-title {
        font-size: 1.1rem;
    }

    .find-me-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }
}

/* ===================================
   Video Error Handling Styles
   =================================== */

.video-error-message {
    background-color: #1a1a1a;
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.error-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.error-placeholder svg {
    opacity: 0.3;
}

.error-text {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

/* ===================================
   Utility Classes
   =================================== */

.hidden {
    display: none;
}

/* Scrollbar styling for side menu */
.side-menu-sticky::-webkit-scrollbar {
    width: 6px;
}

.side-menu-sticky::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.side-menu-sticky::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.side-menu-sticky::-webkit-scrollbar-thumb:hover {
    background: #555;
}