/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================
   NAVIGATION STYLES - MODERN FLOATING DESIGN
   =================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transition: width 0.3s ease;
}

.nav-brand:hover .nav-title::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

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

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation scroll effect */
.navbar.scrolled {
    top: 12px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 6px 20px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .nav-container {
    padding: 12px 28px;
}

/* Modern Mobile Menu - Clean & Simple */
.nav-links.mobile-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: #000000;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    padding: 2rem;
}

.nav-links.mobile-open.show {
    opacity: 1;
    visibility: visible;
}

.nav-links.mobile-open .nav-link {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: none;
    width: auto;
    min-width: auto;
}

.nav-links.mobile-open .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Touch feedback for mobile menu links */
.nav-links.mobile-open .nav-link:active::after {
    width: 100%;
}

.nav-links.mobile-open .nav-link:active {
    color: #ffffff;
    transform: scale(0.98);
}

.nav-links.mobile-open .nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-links.mobile-open.show .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.nav-links.mobile-open .nav-link.active {
    color: #ffffff;
    font-weight: 400;
}

.nav-links.mobile-open .nav-link.active::after {
    width: 100%;
}

.nav-links.mobile-open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-links.mobile-open .nav-link:nth-child(2) { transition-delay: 0.2s; }
.nav-links.mobile-open .nav-link:nth-child(3) { transition-delay: 0.3s; }
.nav-links.mobile-open .nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Modern Hamburger Menu Button - Touch Optimized */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 16px;
    background: none;
    border: none;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch feedback instead of hover */
.nav-toggle:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
    margin: 2px 0;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

.navbar.menu-open {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    background: #000000 !important;
    overflow: visible !important;
    z-index: 1000 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar.menu-open .nav-brand {
    opacity: 0;
    pointer-events: none;
}

.navbar.menu-open .nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.1);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
}

/* Board Header */
.board-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.board-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #7b68ee 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.board-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.primary-button, .secondary-button, .danger-button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
}

.primary-button {
    background: linear-gradient(135deg, #00d4ff 0%, #7b68ee 100%);
    color: white;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.danger-button {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    color: white;
}

.danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
}

/* View Toggle */
.view-toggle {
    display: none;
}

/* Controls Section */
.controls-section {
    display: none;
}

/* Poster Gallery */
.poster-gallery {
    min-height: 400px;
}

.posters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Custom layout for poster5 to span full width */
.posters-grid .poster-container:nth-child(5) {
    grid-column: 1 / -1;
}

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

/* Poster Card */
.poster-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.poster-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.poster-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.poster-card:hover .poster-image {
    transform: scale(1.05);
}

.poster-info {
    padding: 1.5rem;
}

.poster-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.poster-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.poster-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.poster-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View Styles */
.poster-card.list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.poster-card.list-item .poster-image {
    width: 120px;
    height: 80px;
    margin-right: 1.5rem;
    border-radius: 8px;
}

.poster-card.list-item .poster-info {
    padding: 0;
    flex: 1;
}

.poster-card.list-item .poster-title {
    margin-bottom: 0.25rem;
}

.poster-card.list-item .poster-description {
    -webkit-line-clamp: 2;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Poster Detail Modal */
.poster-detail-modal {
    max-width: 800px;
    width: 100%;
}

.poster-detail-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.poster-image-container {
    flex: 1;
    min-width: 300px;
}

.poster-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
}

.poster-info {
    flex: 1;
    min-width: 250px;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.info-item span,
.info-item p {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .navbar.scrolled {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .nav-container {
        padding: 12px 24px;
    }

    .navbar.scrolled .nav-container {
        padding: 10px 20px;
    }

    .nav-brand {
        gap: 12px;
    }

    .nav-logo {
        height: 36px;
    }

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

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 12px;
        left: 12px;
        right: 12px;
        border-radius: 12px;
    }
    
    .navbar.scrolled {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 8px;
    }
    
    .nav-container {
        padding: 10px 20px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 8px 16px;
    }
    
    .nav-brand {
        gap: 10px;
    }
    
    .nav-logo {
        height: 32px;
    }
    
    .nav-title {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .container {
        padding: 100px 1.5rem 1.5rem;
    }

    .board-title {
        font-size: 2.5rem;
    }

    .controls-section {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        margin-bottom: 0;
    }

    .filter-container {
        gap: 0.5rem;
    }

    .posters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .header-actions {
        gap: 1rem;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-body {
        max-height: calc(100vh - 8rem);
    }

    .poster-detail-content {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 10px;
    }
    
    .navbar.scrolled {
        top: 6px;
        left: 6px;
        right: 6px;
        border-radius: 6px;
    }
    
    .nav-container {
        padding: 8px 16px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 6px 12px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .board-title {
        font-size: 2rem;
    }
    
    .posters-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .navbar {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 8px;
    }
    
    .navbar.scrolled {
        top: 4px;
        left: 4px;
        right: 4px;
        border-radius: 4px;
    }
    
    .nav-container {
        padding: 6px 12px;
    }
    
    .navbar.scrolled .nav-container {
        padding: 4px 8px;
    }
    
    .nav-logo {
        height: 24px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Gallery Images */
.posters-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.posters-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Click to enlarge hint */
.poster-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.poster-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.poster-container:hover .poster-hint {
    opacity: 1;
}

/* Full Screen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fullscreen-modal.show {
    opacity: 1;
    visibility: visible;
}

.fullscreen-modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.fullscreen-instructions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

 