/* Gallery Page Specific Styles */

/* ===== PAGE LAYOUT ===== */
body {
    padding-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* ===== GALLERY NAVIGATION ===== */
.gallery-nav {
    background: var(--background-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--primary-color);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.gallery-tab:hover,
.gallery-tab.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== GALLERY SECTIONS ===== */
.gallery-content {
    padding: 5rem 0;
}

.gallery-section {
    margin-bottom: 5rem;
}

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

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

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== JOURNAL COVERS GALLERY ===== */
.covers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.cover-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.cover-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #ff6b6b);
}

.cover-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cover-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.cover-item:hover .cover-image {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cover-item:hover .cover-overlay {
    opacity: 1;
}

.cover-overlay-content {
    text-align: center;
    padding: 1rem;
}

.cover-overlay-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cover-overlay-journal {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cover-details {
    padding: 2rem;
}

.cover-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cover-journal {
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
}

.cover-year {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cover-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cover-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cover-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== MANGA SECTION ===== */
.manga-section {
    background: var(--background-light);
    padding: 4rem 0;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.manga-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.manga-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.manga-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.manga-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.manga-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.manga-caption {
    padding: 1.5rem;
    text-align: center;
}

.manga-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

/* ===== PDB STRUCTURES SECTION ===== */
.pdb-section {
    padding: 5rem 0;
}

.pdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pdb-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.pdb-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pdb-visual {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
}

.pdb-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.pdb-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pdb-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.pdb-info {
    padding: 1.5rem;
}

.pdb-id {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pdb-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pdb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.pdb-tag {
    background: var(--background-light);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.lightbox-image {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* ===== WORK IN PROGRESS SECTION ===== */
.wip-section {
    background: var(--background-light);
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.wip-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.wip-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.wip-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.wip-note {
    background: var(--primary-light);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .gallery-content {
        padding: 3rem 0;
    }

    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }

    .covers-grid,
    .pdb-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .manga-grid {
        grid-template-columns: 1fr;
    }

    .cover-details,
    .pdb-info {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cover-details,
    .pdb-info,
    .manga-caption {
        padding: 1rem;
    }

    .cover-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .manga-image {
        height: 300px;
    }

    .pdb-visual {
        height: 150px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .wip-icon {
        font-size: 3rem;
    }

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

/* ===== ANIMATION CLASSES ===== */
.gallery-item-enter {
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.cover-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.cover-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* ===== LOADING STATES ===== */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}