/* ========================================
   RESET & GLOBAL
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0B0B0B;
    color: #7e7e7e;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}

.site-header .logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    color: #8B0000;
    letter-spacing: 2px;
}

.site-header .logo {
    text-decoration: none;
}

.site-header .logo:visited,
.site-header .logo:active {
    color: #8B0000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #7e7e7e;
    text-decoration: none;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #8B0000;
    text-shadow: 0 0 8px #8B0000;
}

/* Optional dropdown support */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0B0B0B;
    border: 1px solid #444;
    padding: 0.5rem 0;
    min-width: 160px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

/* Hamburger button */
.hamburger {
    display: none;
    font-size: 2rem;
    color: #7e7e7e;
    cursor: pointer;
}

/* ========================================
   HERO SECTION (Homepage)
======================================== */
.hero {
    width: 100%;
    min-height: 100vh;
    background-color: #0B0B0B; 
    background-image: url('../images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top; /* top of image aligns to top of hero */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* desktop header height */
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px; /* mobile header height */
        background-position: center top; /* keeps image below header */
    }
}

.hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    color: #7e7e7e;
    text-shadow: 0 0 12px #8B0000;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.hero .cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 2px solid #8B0000;
    color: #7e7e7e;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.hero .cta:hover {
    background: #8B0000;
    color: #0B0B0B;
    transform: scale(1.05);
    box-shadow: 0 0 20px #8B0000;
}

/* ========================================
   HERO SECTION (Homepage)
======================================== */

.hero-content {
    display: flex;
    flex-direction: column;  /* stack H1, button, carousel vertically */
    align-items: center;     /* center horizontally */
    justify-content: center; /* optional: vertically center hero content */
    gap: 30px;               /* space between heading, button, carousel */
  }

/* ========================================
   PORTFOLIO GRID FIX
======================================== */
.portfolio-section {
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.portfolio-section h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #8B0000;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Main grid for artworks */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.artwork {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #E1E1E1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork img {
    width: 100%;
    height: 220px;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #444;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.artwork:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 20px #8B0000;
    border-color: #8B0000;
}

.art-info {
    margin-top: 0.5rem;
}

.art-info h3 {
    font-size: 1.2rem;
    color: #E1E1E1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .artwork-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .artwork-grid {
        grid-template-columns: 1fr; /* single column on mobile */
    }
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: 6rem 0 2rem;
}

.about h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #8B0000;
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.portrait {
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 0 15px #8B0000;
    margin-top: 1rem;
}

/* ========================================
   CONTACT
======================================== */
.contact {
    padding: 6rem 0 2rem;
    text-align: center;
}

.contact h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #8B0000;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input, 
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #444;
    background: #0B0B0B;
    color: #E1E1E1;
    font-size: 1rem;
    border-radius: 5px;
}

.contact input:focus, .contact textarea:focus {
    border-color: #8B0000;
    outline: none;
}

.contact button {
    padding: 1rem;
    background: #8B0000;
    border: none;
    color: #0B0B0B;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    border-radius: 5px;
}

.contact button:hover {
    box-shadow: 0 0 15px #8B0000;
    transform: scale(1.05);
}

.social-links {
    margin-top: 3rem;
}

.social-links h2 {
    margin-bottom: 1rem;
    color: #8B0000;
    font-family: 'Cinzel Decorative', serif;
}

.social-links a {
    margin: 0 0.5rem;
    font-size: 2rem;
    color: #E1E1E1;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: #8B0000;
    transform: scale(1.2);
}

/* ========================================
   BLOG
======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 6rem 2rem 2rem;
}

.blog-post {
    border: 1px solid #444;
    padding: 2rem;
    transition: 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 0 15px #8B0000;
}

.blog-post h2 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.blog-post a {
    color: #8B0000;
}

/* ========================================
   LEGAL DISCLAIMER
======================================== */
.legal-disclaimer {
    font-size: 0.9rem;
    color: #AAAAAA;
    line-height: 1.5;
    font-style: italic;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.legal-disclaimer::before {
    content: "⚠";
    position: absolute;
    left: -25px;
    top: 0;
    color: #8B0000;
    font-weight: bold;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: #0B0B0B;
    border-top: 1px solid #444;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* ========================================
   FOG OVERLAY
======================================== */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('../images/fog.png') repeat center center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   MUSIC PAGE
======================================== */
#music {
    padding-top: 120px; /* space for fixed header */
}

.artist-playlist {
    margin-bottom: 50px;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #0B0B0B;
}

.artist-playlist h3 {
    font-family: 'Cinzel', serif;
    color: #E1E1E1;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.now-playing img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #444;
    border-radius: 8px;
}

.player-info {
    flex: 1;
}

.player-info span {
    display: block;
    color: #FF0000;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.playlist-box {
    border-top: 1px solid #333;
    padding-top: 10px;
}

.playlist-box ul {
    list-style: none;
    padding-left: 0;
}

.playlist-box ul li {
    padding: 8px;
    color: #E1E1E1;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.playlist-box ul li:hover {
    background: #1a1a1a;
    color: #FF0000;
}

.playlist-box ul li.playing {
    background: #FF0000;
    color: #0B0B0B;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        background: #0B0B0B;
        padding: 1rem;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1001;
    }

    nav ul.show {
        display: flex;
    }

    @media (max-width: 768px) {
    .hero {
        background-position: center center; /* on phones, center it */
        padding-top: 60px; /* menu might be smaller */
    }
}

    .dropdown-menu {
        position: static;
        border: none;
        padding-left: 1rem;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .portfolio-grid,
    .blog-grid {
        padding: 6rem 1rem 2rem;
    }

    .legal-disclaimer::before {
        left: -18px;
    }

    .now-playing {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .now-playing img {
        width: 80px;
        height: 80px;
    }
}

/* PAGE OFFSET FOR FIXED HEADER */
.page-offset {
    height: 90px;
  }
  
  /* MUSIC SECTION */
  .music-section {
    padding: 40px 20px;
  }
  
  .embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding-top: 56.25%; /* 16:9 ratio */
  }
  
  .embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }
  
  .artist-list-section {
    text-align: center;
    margin: 2rem 0;
  }
  
  .artist-list li {
    display: inline-block;
    margin: 0 1rem;
  }
  
  .artist-list a {
    color: #E1E1E1;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
  }
  
  .artist-list a:hover {
    color: #FF3B3B; /* accent color on hover */
  }
  
 /* ========================================
   LIKES & COMMENTS
======================================== */

.likes-container,
.comments-container {
    margin-top: 12px;
    font-family: 'Roboto', sans-serif;
}

/* =============================
   Likes
============================= */

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: transform 0.15s ease, opacity 0.2s ease, color 0.2s ease;
}

.like-button:hover {
    opacity: 1;
}

.like-button.pop {
    transform: scale(1.4);
}

.like-button.liked {
    color: #8B0000;
    opacity: 1;
}

.like-count {
    margin-left: 6px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* =============================
   Comments Layout
============================= */

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

/* Dark comment box restored */
.comment-list {
    max-height: 140px;
    overflow-y: auto;
    padding: 8px 10px;
    background: #111;                 /* solid dark */
    border: 1px solid #222;           /* subtle edge */
    border-radius: 6px;
}

/* Individual comment */
.comment-list div {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border-bottom: 1px solid #1c1c1c;
    opacity: 0;
    animation: fadeIn 0.25s forwards;
}

.comment-list div:last-child {
    border-bottom: none;
}

.comment-time {
    font-size: 0.7rem;
    opacity: 0.35;
    margin-top: 2px;          /* small vertical gap from the comment */
    display: block;           /* puts timestamp on its own line */
}

/* =============================
   Comment Form
============================= */

.comment-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #222;
    background: #111;                 /* dark input */
    color: #E1E1E1;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.comment-input::placeholder {
    color: #555;
}

.comment-input:focus {
    border-color: #8B0000;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
}

/* Submit button */
.comment-submit {
    background: #1a1a1a;
    border: 1px solid #222;
    color: #E1E1E1;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: background 0.2s ease, border 0.2s ease;
}

.comment-submit:hover {
    background: #8B0000;
    border-color: #8B0000;
    color: #0B0B0B;
}

/* ========================================
   MUSIC COMMENT BOARD
======================================== */
.comment-section {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #0B0B0B;
}

.comment-section h3 {
    color: #FF0000;
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#comments-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-card p {
    margin-bottom: 4px;       /* space below the comment text */
    color: #E1E1E1;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.7rem;
    opacity: 0.35;
    margin-top: 2px;          /* small vertical gap from the comment */
    display: block;           /* puts timestamp on its own line */
}

.comment-card p {
    margin-bottom: 6px;
    color: #E1E1E1;
    font-size: 0.9rem;
}

.comment-footer {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    opacity: 0.6;
    align-items: center;
}

.comment-footer button {
    background: none;
    border: none;
    color: #FF0000;
    cursor: pointer;
    font-size: 0.75rem;
}

.reply-input {
    display: flex;
    flex-direction: column;   /* stack textarea and button vertically */
    gap: 6px;                 /* space between textarea and button */
    margin-top: 6px;
}

.reply-input textarea,
#new-comment-text {
    width: 100%;
    height: 60px;             /* fixed height, mobile-friendly */
    border: 1px solid #222;
    border-radius: 6px;
    background: #111;
    color: #E1E1E1;
    padding: 6px 8px;
    outline: none;
    resize: none;             /* prevent dragging larger */
}

.reply-input button,
#submit-comment {
    width: 100%;              /* button under textarea */
    padding: 6px 12px;
    background: #FF0000;
    color: #0B0B0B;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
}

.reply-input button:hover,
#submit-comment:hover {
    background: #8B0000;
    color: #E1E1E1;
}

@media (max-width: 768px) {
    .reply-input {
        flex-direction: column;
        gap: 4px;
        margin-top: 6px;
    }

    .reply-input textarea,
    #new-comment-text {
        height: 50px !important;   /* fixed height for phones */
        max-height: 50px !important;
        resize: none !important;   /* prevent stretching */
        font-size: 0.9rem;
    }

    .reply-input button,
    #submit-comment {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* =============================
   Animation
============================= */

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ========================================
   MOBILE COMMENT FIX
======================================== */
@media (max-width: 768px) {

    /* Make the comment section scrollable and prevent it from stretching */
    .comment-section {
        max-height: 300px; /* limits total section height on phones */
        overflow-y: auto;  /* adds scroll for extra comments */
        padding: 12px;
    }
  
    /* Keep reply input and button stacked neatly */
    .reply-input {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
  
    .reply-input textarea,
    #new-comment-text {
        height: 50px !important;    /* fixed input height */
        max-height: 50px !important;
        min-height: 50px !important;
        resize: none !important;
        font-size: 0.9rem;
    }
  
    .reply-input button,
    #submit-comment {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
  }
  

  /* ========================================
   CAROUSEL STYLES (Responsive)
======================================== */
.carousel-container {
    width: 100%;           /* full width */
    max-width: 1100px;     /* align with .container */
    margin: 40px auto 0 auto;
    overflow: hidden;      /* hide overflow */
    position: relative;
    padding: 0 2rem;       /* align with hero background */
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scrollCarousel 40s linear infinite;
}

.carousel-slide {
    flex: 0 0 auto;          /* don't shrink */
    width: 20%;              /* desktop: ~5 slides visible */
    max-width: 180px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s;
}

.carousel-slide img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.slide-title {
    margin-top: 8px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 14px;
}

/* Continuous scrolling animation */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .carousel-container {
        width: 95%;
        padding: 0 1rem;  /* aligns with hero */
    }

    .carousel-track {
        gap: 15px;
    }

    .carousel-slide {
        width: 25%;        /* ~4 slides visible */
        max-width: 140px;
    }

    .slide-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        width: 100%;
        padding: 0 0.5rem; /* aligns with hero */
    }

    .carousel-track {
        gap: 10px;
    }

    .carousel-slide {
        width: 33%;        /* ~3 slides visible */
        max-width: 120px;
    }

    .slide-title {
        font-size: 11px;
    }
}

/* ===== Ensure hero-content stacks correctly ===== */
.hero-content {
    display: flex;
    flex-direction: column;  /* stack heading, button, carousel vertically */
    align-items: center;     /* center horizontally */
    justify-content: center;
    gap: 30px;               /* spacing between elements */
}


/* =============================
CINEMA PAGE
============================= */

.cinema-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 0;
    }
    
    .cinema-section h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    }
    
    .cinema-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    }
    
    .film {
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    }
    
    .film a {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: #ddd;
    }
    
    .film a:hover {
    color: white;
    }
    
    .film p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #777;
    }

    /* ================================
   SKETCH GALLERY
================================ */

.sketch-gallery {
    max-width: 1100px;
    margin: 6rem auto 2rem auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.art-piece {
    background: #111;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #333;
}

.art-piece img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.art-info {
    margin-top: 10px;
}

.art-info h3 {
    margin-bottom: 4px;
}

.likes-container {
    margin-top: 10px;
}

.comments-container {
    margin-top: 12px;
}

body > *:not(.site-header) {
    margin-top: 20px; /* smaller space */
}