/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #d4a574;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --text-light: #cccccc;
    --bg-light: #2a2a2a;
    --border-color: #444444;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-color);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar {
    background: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 201;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

body.dark-mode .fullscreen-menu {
    background: rgba(26, 26, 26, 0.8);
}

.fullscreen-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.fullscreen-menu-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.fullscreen-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.fullscreen-menu-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.fullscreen-menu-link:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.admin-link {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    background-size: contain; /* Prevents stretching */
    background-repeat: no-repeat; /* Avoids tiling */
    background-position: center center; /* Keeps the image centered */
    color: var(--secondary-color);
    height: auto; /* Adjusts height based on content */
    min-height: 100vh; /* Ensures it still fills the viewport */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* ===== Featured Projects Carousel ===== */
.featured-section {
    background-color: var(--secondary-color);
    padding: 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.featured-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.featured-slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    cursor: pointer;
    pointer-events: none;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem clamp(4rem, 8vw, 7rem) 5rem;
    color: var(--secondary-color);
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    background: radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0) 70%);
}

.featured-content {
    width: 100%;
    max-width: 600px;
}

.featured-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.featured-event-date {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.featured-location {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.featured-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: #fff;
}

/* Featured Navigation */
.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: none;
    font-size: clamp(1.2rem, 2vw, 2rem);
    padding: clamp(0.5rem, 1vw, 1rem) clamp(0.75rem, 1.5vw, 1.5rem);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.featured-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.featured-nav-prev {
    left: 1rem;
}

.featured-nav-next {
    right: 1rem;
}

/* Featured Dots */
.featured-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 10;
}

.featured-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.featured-dot:hover {
    background-color: var(--accent-color);
}

/* ===== Filter Section ===== */
.filter-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 80px;
}

.filter-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ===== Portfolio Grid ===== */
.portfolio {
    padding: 4rem 0;
}

.portfolio-grid {
    columns: 3;
    column-gap: 2rem;
}

.project-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 1px !important; /* Enforce 1px border radius globally */
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-event-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.project-hashtag {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* ===== Listen Section ===== */
.listen-section {
    padding: 4rem 0;
    scroll-margin-top: 80px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.listen-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.playlist-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-size: 0.95rem;
}

.playlist-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 1rem;
}

.playlist-track:hover {
    background-color: var(--bg-light);
}

.playlist-track.active {
    background-color: var(--bg-light);
    font-weight: 600;
}

.playlist-track-number {
    color: var(--text-light);
    font-size: 0.85rem;
    min-width: 1.5rem;
    text-align: center;
}

.playlist-track.active .playlist-track-number {
    color: var(--accent-color);
}

.playlist-track-name {
    flex: 1;
    font-size: 0.95rem;
}

.playlist-track-duration {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Player Bar */
.player-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.player-track-info {
    min-width: 120px;
    max-width: 200px;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    font-family: inherit;
}

.player-btn:hover {
    opacity: 1;
}

.player-btn-main {
    font-size: 2rem;
    opacity: 1;
    font-weight: 300;
}

.player-btn-sm {
    font-size: 0.9rem;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}

.player-time {
    font-size: 0.75rem;
    color: var(--text-light);
    min-width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.player-seek {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-volume-slider {
    width: 70px;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* Mobile player */
@media (max-width: 768px) and (orientation: portrait) {
    .player-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        text-align: center;
    }
    .player-track-info {
        max-width: 100%;
    }
    .player-controls {
        justify-content: center;
    }
    .player-volume {
        justify-content: center;
    }
}

/* ===== About Section ===== */
.about {
    padding: 4rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding-top: 120px; /* Ensure enough space below the fixed navbar */
    padding-bottom: 120px; /* Add bottom padding for consistent spacing */
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 4rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding-top: 120px; /* Ensure enough space below the fixed navbar */
    padding-bottom: 120px; /* Add bottom padding for consistent spacing */
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: #ffffff;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* ===== Admin Page Styles ===== */
.admin-container {
    margin-top: 2rem;
    padding: 2rem 0;
}

.admin-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-danger {
    background-color: #e74c3c;
    color: var(--secondary-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.projects-list {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.project-item {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-edit {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit:hover {
    opacity: 0.8;
}

.btn-delete {
    background-color: #e74c3c;
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.edit-form {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ===== Admin Tabs ===== */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ===== Hashtags and Items Management ===== */
.hashtag-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hashtag-input-container input {
    flex: 1;
}

.hashtag-input-container button {
    flex-shrink: 0;
}

.hashtags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hashtag {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-hashtag {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.remove-hashtag:hover {
    opacity: 0.7;
}

.hashtag-available-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hashtag-available-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.hashtag-available-btn.hashtag-selected {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.hashtag-available-btn.hashtag-selected:hover {
    opacity: 0.8;
}

.item-badge {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: grab;
    user-select: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.item-badge:active {
    cursor: grabbing;
}

.item-badge.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.item-badge.drag-over {
    box-shadow: -3px 0 0 0 var(--accent-color);
}

.item-badge span {
    font-weight: 500;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #c0392b;
}

.items-list {
    margin-top: 1rem;
}

.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-block {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--secondary-color);
}

.content-block .form-group {
    margin-bottom: 1rem;
}

.content-block .form-group:last-child {
    margin-bottom: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

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

    .hero {
        background-size: auto 100dvh;
        background-position: center center;
    }

    .featured-carousel {
        height: 100vh;
    }

    .featured-overlay {
        padding: 2rem clamp(3.5rem, 8vw, 5rem) 4rem;
        min-height: 150px;
    }

    .featured-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .featured-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
@media (max-width: 600px) and (orientation: portrait),
       (max-width: 600px) and (orientation: landscape) {
    .featured-title {
        font-size: 1.2rem; /* Unified font size for both orientations */
    }
    .featured-description {
        font-size: 0.9rem; /* Unified font size for both orientations */
    }
}

    .featured-nav {
        font-size: 1.2rem;
        padding: 0.5rem 0.75rem;
    }

    .portfolio-grid {
        columns: 2;
        column-gap: 1.5rem;
    }

    .filter-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .project-navigation {
        flex-direction: column;
    }

    .nav-project {
        width: 100%;
    }
}

/* Adjust navbar size for mobile landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0 !important; /* Force smaller padding */
    }
}

/* ===== Project Detail Page Styles ===== */
.detail-spacer {
    height: 80px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.project-detail {
    padding: 3rem 0;
}

.detail-header {
    margin-bottom: 3rem;
    text-align: center;
}

.detail-main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 1px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.detail-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-event-date {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.detail-location {
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.detail-hashtag {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.detail-figure {
    margin: 2rem 0;
    text-align: center;
}

.detail-youtube {
    margin: 2rem 0;
    text-align: center;
}

.detail-youtube iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.detail-youtube figcaption {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.8rem;
    font-style: italic;
}

.detail-posted-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

.detail-hashtags-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.detail-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: block;
}

.detail-figure figcaption {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Responsive images and videos in detail content */
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    display: block;
}

.detail-content iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 2rem 0;
}

.project-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.project-nav-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.project-nav-bottom {
    display: flex;
    justify-content: space-between;
}

.nav-link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link-text:hover {
    color: var(--accent-color);
}

/* ===== Admin Content Blocks ===== */
.form-section {
    background-color: #f0f0f0;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.form-section h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-blocks {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.content-block {
    background-color: var(--bg-light);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block textarea {
    min-height: 120px;
}

.content-block input[type="url"],
.content-block input[type="text"] {
    margin-bottom: 0.5rem;
}

.content-block .btn-danger {
    margin-top: 1rem;
}

/* ===== Dark Mode Toggle ===== */
.nav-toggle-item {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.dark-mode-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.dark-mode-input {
    display: none;
}

.dark-mode-slider {
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
    border: 2px solid #999;
}

.dark-mode-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode-input:checked + .dark-mode-slider {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.dark-mode-input:checked + .dark-mode-slider::before {
    transform: translateX(26px);
}

body.dark-mode .dark-mode-slider {
    background-color: #444;
    border-color: #666;
}

body.dark-mode .dark-mode-slider::before {
    background-color: #1a1a1a;
}

/* Adjust project-item layout for mobile portrait view */
@media (max-width: 600px) and (orientation: portrait) {
    .projects-list {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 1rem; /* Add spacing between items */
    }

    .project-item {
        width: 100% !important; /* Ensure full width */
        margin: 0 auto !important; /* Center the items */
    }
}

/* Adjust portfolio grid for mobile portrait view */
@media (max-width: 600px) and (orientation: portrait) {
    .portfolio-grid {
        columns: 1 !important; /* Force single column layout */
        column-gap: 0 !important; /* Remove gaps */
    }

    .project-card {
        width: 100% !important; /* Ensure full width */
    }
}

/* ===== Hyperlink Styles ===== */
a {
    color: var(--accent-color); /* Matches the artist name color */
    text-decoration: underline;
}

a:hover {
    color: #a67c52; /* Slightly darker shade for hover effect */
}

/* Force hyperlink styles for mobile */
@media (max-width: 600px) {
    a {
        color: var(--accent-color) !important; /* Ensure the correct color is applied */
        text-decoration: underline !important;
    }

    a:hover {
        color: #a67c52 !important; /* Ensure hover color is applied */
    }
}
