/* Plasma Man - Custom Styles */
/* Matching the original WordPress theme design */

/* Custom Font */
/* To use the custom font, place Plasmaprinting2025-Regular.otf in /fonts/ folder */
@font-face {
    font-family: 'PlasmaPrinting2025';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Plasmaprinting2025-Regular.otf') format('opentype');
    font-display: swap;
}

/* Custom Properties - Plasma Man Color Scheme */
:root {
    --plasma-purple: #8224e3;
    --plasma-blue: #044de0;
    --plasma-white: #ffffff;
    --plasma-dark: #1a1a2e;
}

/* Body */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--plasma-purple);
    font-family: 'PlasmaPrinting2025', 'Hind', Arial, sans-serif;
    font-size: 1.65rem;
}

main {
    flex: 1;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--plasma-purple) !important;
}

.btn-primary {
    background-color: var(--plasma-blue);
    border-color: var(--plasma-blue);
}

.btn-primary:hover {
    background-color: #0339a8;
    border-color: #0339a8;
}

.text-primary {
    color: var(--plasma-purple) !important;
}

/* Header Banner */
.site-header {
    background: linear-gradient(90deg,
        var(--plasma-purple) 0%,
        #6b1cb8 15%,
        #5a18a0 25%,
        #4a1488 35%,
        #3a1070 45%,
        #3a1070 55%,
        #4a1488 65%,
        #5a18a0 75%,
        #6b1cb8 85%,
        var(--plasma-purple) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Subtle animated glow effect */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(130, 36, 227, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.header-banner {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .header-banner {
        max-height: 150px;
    }
}

@media (min-width: 1200px) {
    .header-banner {
        max-height: 180px;
    }
}

/* Navbar - Purple background with centered nav */
.navbar {
    background-color: var(--plasma-purple) !important;
    padding: 0;
}

.navbar-nav {
    gap: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: #d4a8ff;
    font-weight: 500;
    font-size: 1.8rem;
    padding: 1rem 0.5rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--plasma-white);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffa500;
}

/* Underline for active nav item */
.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ffa500;
}

/* Mobile menu toggle */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Content Areas */
.content-area {
    background-color: var(--plasma-blue);
    border-radius: 8px;
    padding: 1rem;
    color: white;
}

/* Comic Description - above the comic */
.comic-description {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.75rem;
}

/* Comic Display */
.comic-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.comic-page {
    max-width: 100%;
}

.comic-page img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.comic-page img:hover {
    transform: scale(1.01);
}

.comic-page a {
    display: block;
}

.page-indicator {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Comic Modal */
.comic-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

#comicModal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
}

#comicModal .modal-body {
    cursor: pointer;
}

#comicModal .btn-close {
    font-size: 1.5rem;
    opacity: 0.7;
}

#comicModal .btn-close:hover {
    opacity: 1;
}

/* Loading state */
.comic-book-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: white;
}

/* Comic Navigation */
.comic-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.comic-navigation a {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    font-size: 1.4rem;
}

.comic-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Comic Metadata Footer */
.comic-footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 1.2rem;
    color: white;
}

.comic-footer p {
    color: white;
    margin-bottom: 0.25rem;
}

.comic-footer b {
    color: white;
}

.comic-footer a {
    color: #a0d2ff;
}

.comic-footer a:hover {
    color: white;
}

/* Page Header */
.page-header {
    background-color: var(--plasma-purple);
    padding: 2rem 0;
}

.page-header h1 {
    font-family: 'PlasmaPrinting2025', sans-serif;
    color: white;
}

/* Section Titles */
.left-title {
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.left-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--plasma-white);
}

/* Sidebar Area (for other pages) */
.sidebar-area {
    background-color: var(--plasma-white);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--plasma-purple);
}

.sidebar-area h2,
.sidebar-area h3,
.sidebar-area h4,
.sidebar-area h5 {
    color: var(--plasma-purple);
    border-bottom: 3px solid var(--plasma-purple);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.comic-card,
.character-card,
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background-color: var(--plasma-white);
}

.comic-card:hover,
.character-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

.comic-card .card-body,
.character-card .card-body {
    background-color: var(--plasma-white);
    color: var(--plasma-purple);
}

.comic-card .card-title,
.character-card .card-title {
    color: var(--plasma-purple);
    font-family: 'PlasmaPrinting2025', sans-serif;
}

/* Comic List (Archive style) */
.comic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comic-list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comic-list-item:hover {
    background-color: var(--plasma-white);
}

.comic-list-item:hover a,
.comic-list-item:hover p {
    color: var(--plasma-purple);
}

.comic-list-item a {
    color: white;
    text-decoration: none;
}

.comic-list-item .comic-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.comic-list-item .comic-number {
    font-weight: bold;
    color: var(--plasma-white);
}

.comic-list-item .comic-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Comic Image */
#comicModalImage {
    max-height: 85vh;
    width: auto;
}

/* Admin Navbar */
#admin-section > .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 56px;
}

/* Admin content wrapper */
#admin-section > .container-fluid {
    padding-top: 56px;
}

/* Admin Sidebar - Desktop (md and up) */
@media (min-width: 768px) {
    #adminSidebar {
        position: fixed !important;
        top: 56px;
        left: 0;
        bottom: 0;
        z-index: 100;
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
        overflow-y: auto;
    }
}

/* Admin Sidebar - Mobile offcanvas styling */
@media (max-width: 767.98px) {
    #adminSidebar {
        width: 280px;
    }

    #admin-section main {
        margin-left: 0 !important;
        padding: 1rem !important;
    }

    /* Mobile card-based table layout */
    #admin-section .table-responsive {
        overflow-x: visible;
    }

    #admin-section table {
        border: 0;
    }

    #admin-section table thead {
        display: none;
    }

    #admin-section table tr {
        display: block;
        margin-bottom: 1rem;
        background: white !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        padding: 1rem;
        --bs-table-striped-bg: transparent;
        --bs-table-bg: transparent;
    }

    #admin-section table td {
        background: transparent !important;
        --bs-table-striped-bg: transparent;
    }

    #admin-section table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #eee;
    }

    #admin-section table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 1rem;
    }

    #admin-section table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 1rem;
    }

    #admin-section table td:last-child::before {
        content: none;
    }

    /* Mobile header adjustments */
    #admin-section section > .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }

    #admin-section section > .d-flex h2 {
        margin-bottom: 0;
    }

    #admin-section section > .d-flex .btn {
        width: 100%;
    }
}

#adminSidebar .nav-link {
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    color: white;
}

#adminSidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#adminSidebar .nav-link.active {
    border-left-color: var(--plasma-purple);
    background-color: rgba(130, 36, 227, 0.3);
}

/* Admin Tables */
.table img {
    object-fit: cover;
}

/* Product Card */
.product-card {
    border: none;
}

.product-card .card-footer {
    border-top: none;
    padding-top: 0;
    background-color: white;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--plasma-dark) !important;
}

footer a {
    color: #a0d2ff;
}

footer a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-dark .navbar-nav .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    #comicModalImage {
        max-height: 60vh;
    }

    body {
        font-size: 1.4rem;
    }

    .comic-navigation a {
        padding: 0.5rem 0.75rem;
        font-size: 1.4rem;
    }
}

/* Loading States */
.spinner-border {
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
}

/* Image hover zoom effect */
.card-img-top img {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Badge styles */
.badge {
    font-weight: 500;
}

.badge.bg-info {
    background-color: var(--plasma-blue) !important;
}

/* Modal backdrop */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Form styling */
.form-label {
    font-weight: 500;
    font-size: 1.4rem;
}

.form-control,
.form-select {
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
}

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

.modal-body {
    font-size: 1.4rem;
}

.btn {
    font-size: 1.3rem;
}

/* Admin panel specific */
#admin-section main {
    padding-top: 1rem;
}

/* Character type badges */
.badge.bg-hero {
    background-color: var(--plasma-blue) !important;
}

.badge.bg-villain {
    background-color: #dc3545 !important;
}

.badge.bg-supporting {
    background-color: #6c757d !important;
}

/* Store promo section */
.store-promo {
    background: linear-gradient(135deg, var(--plasma-purple) 0%, var(--plasma-blue) 100%) !important;
}

/* Collections/Categories */
.collection-badge {
    background-color: var(--plasma-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    body {
        background-color: white;
    }
}

/* ============================================
   VAULT STYLES
   ============================================ */

/* Vault Pages - Footer fix */
.vault-landing + footer,
.vault-body footer {
    background-color: #0a0a1a !important;
}

.vault-landing + footer .text-muted,
.vault-body footer .text-muted {
    color: #8888aa !important;
}

/* Vault Landing Page */
.vault-landing {
    min-height: 80vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
    position: relative;
    overflow: hidden;
}

.vault-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(130, 36, 227, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(4, 77, 224, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.vault-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(130, 36, 227, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(4, 77, 224, 0.3), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.min-vh-75 {
    min-height: 75vh;
}

/* Vault Icon */
.vault-icon-container {
    position: relative;
    display: inline-block;
}

.vault-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(130, 36, 227, 0.5);
    box-shadow:
        0 0 30px rgba(130, 36, 227, 0.3),
        inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.vault-icon i {
    font-size: 3.5rem;
    color: #d4a8ff;
    text-shadow: 0 0 20px rgba(130, 36, 227, 0.5);
}

.vault-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(130, 36, 227, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: vaultPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes vaultPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Vault Typography */
.vault-title {
    font-family: 'PlasmaPrinting2025', sans-serif;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 30px rgba(130, 36, 227, 0.5);
    letter-spacing: 2px;
}

.vault-subtitle {
    font-size: 1.4rem;
    color: #a8a8d0;
    max-width: 600px;
    margin: 0 auto;
}

.vault-description {
    color: #8888aa;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Enter Vault Button */
.vault-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--plasma-purple) 0%, #6b1cb8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-family: 'PlasmaPrinting2025', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 5px 20px rgba(130, 36, 227, 0.4),
        0 0 40px rgba(130, 36, 227, 0.2);
}

.vault-enter-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(130, 36, 227, 0.5),
        0 0 60px rgba(130, 36, 227, 0.3);
    color: white;
}

.vault-enter-btn .btn-icon {
    transition: transform 0.3s ease;
}

.vault-enter-btn:hover .btn-icon {
    transform: translateX(5px);
}

.vault-enter-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.vault-enter-btn:hover .btn-shine {
    left: 100%;
}

/* Category Preview Cards */
.category-preview-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(130, 36, 227, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-preview-card:hover {
    background: rgba(130, 36, 227, 0.1);
    border-color: rgba(130, 36, 227, 0.5);
    transform: translateY(-5px);
}

.category-preview-card i {
    font-size: 2.5rem;
    color: var(--plasma-purple);
    margin-bottom: 0.5rem;
    display: block;
}

.category-preview-card h5 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.category-preview-card p {
    color: #8888aa;
    margin-bottom: 0;
    font-size: 1rem;
}

/* ============================================
   VAULT BROWSE PAGE
   ============================================ */

.vault-body {
    background: linear-gradient(180deg, #0a0a1a 0%, var(--plasma-purple) 100%);
}

/* Vault Browse Header */
.vault-browse-header {
    background: linear-gradient(135deg, #1a1a3e 0%, #0a0a1a 100%);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(130, 36, 227, 0.3);
}

.vault-browse-header h1 {
    font-family: 'PlasmaPrinting2025', sans-serif;
    color: white;
    font-size: 2rem;
}

.vault-back-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vault-back-link:hover {
    background: var(--plasma-purple);
    color: white;
}

.vault-stats {
    display: flex;
    gap: 1.5rem;
}

.vault-stats .stat {
    color: #a8a8d0;
    font-size: 1.1rem;
}

.vault-stats .stat i {
    margin-right: 0.25rem;
}

/* Filter Section */
.vault-filter-section {
    background: rgba(0,0,0,0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.vault-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.vault-filter-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    color: #a8a8d0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vault-filter-tab:hover {
    background: rgba(130, 36, 227, 0.2);
    border-color: rgba(130, 36, 227, 0.5);
    color: white;
}

.vault-filter-tab.active {
    background: var(--plasma-purple);
    border-color: var(--plasma-purple);
    color: white;
    box-shadow: 0 0 20px rgba(130, 36, 227, 0.4);
}

/* Loading Animation */
.vault-loading-animation {
    width: 80px;
    height: 80px;
    background: rgba(130, 36, 227, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: vaultUnlock 1.5s ease-in-out infinite;
}

.vault-loading-animation i {
    font-size: 2.5rem;
    color: var(--plasma-purple);
}

@keyframes vaultUnlock {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(130, 36, 227, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px 10px rgba(130, 36, 227, 0.2); }
}

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

.vault-empty-state i {
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
    display: block;
}

.vault-empty-state h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.vault-empty-state p {
    color: #8888aa;
}

/* Vault Grid */
.vault-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Vault Item Card */
.vault-item {
    break-inside: avoid;
}

.vault-item-inner {
    background: linear-gradient(145deg, #1a1a3e 0%, #0f0f2a 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(130, 36, 227, 0.2);
    transition: all 0.3s ease;
}

.vault-item-inner:hover {
    transform: translateY(-5px);
    border-color: rgba(130, 36, 227, 0.5);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.3),
        0 0 30px rgba(130, 36, 227, 0.2);
}

.vault-item-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.vault-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vault-item-inner:hover .vault-item-image img {
    transform: scale(1.05);
}

.vault-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vault-item-inner:hover .vault-item-overlay {
    opacity: 1;
}

.vault-view-btn {
    background: var(--plasma-purple);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vault-view-btn:hover {
    background: #9b4ce8;
    transform: scale(1.05);
}

.vault-page-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vault-item-info {
    padding: 1rem;
}

.vault-item-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(130, 36, 227, 0.2);
    color: #d4a8ff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.vault-item-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: 'PlasmaPrinting2025', sans-serif;
}

.vault-item-date {
    color: #6666aa;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.vault-item-date i {
    margin-right: 0.25rem;
}

/* Vault Modal */
.vault-modal-content {
    background: linear-gradient(145deg, #1a1a3e 0%, #0f0f2a 100%);
    border: 1px solid rgba(130, 36, 227, 0.3);
    color: white;
}

.vault-modal-content .modal-header {
    border-bottom: 1px solid rgba(130, 36, 227, 0.2);
    padding: 1.25rem 1.5rem;
}

.vault-modal-content .modal-title {
    font-family: 'PlasmaPrinting2025', sans-serif;
    font-size: 1.8rem;
}

.vault-modal-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(130, 36, 227, 0.2);
    color: #d4a8ff;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.vault-modal-gallery {
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-modal-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.vault-modal-image:hover {
    transform: scale(1.02);
}

.vault-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.vault-page-nav .page-indicator {
    color: #a8a8d0;
    font-size: 1rem;
}

.vault-modal-info {
    padding: 1rem 0;
}

.vault-modal-description {
    color: #c8c8e0;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vault-modal-meta {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.vault-modal-meta p {
    color: #8888aa;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.vault-modal-meta i {
    margin-right: 0.5rem;
    color: var(--plasma-purple);
}

/* Lightbox */
.lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 767.98px) {
    .vault-title {
        font-size: 2.5rem;
    }

    .vault-subtitle {
        font-size: 1.2rem;
    }

    .vault-description {
        font-size: 1.1rem;
    }

    .vault-enter-btn {
        padding: 0.875rem 2rem;
        font-size: 1.3rem;
    }

    .vault-icon {
        width: 100px;
        height: 100px;
    }

    .vault-icon i {
        font-size: 2.8rem;
    }

    .vault-browse-header h1 {
        font-size: 1.5rem;
    }

    .vault-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .vault-filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vault-masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .category-preview-card {
        padding: 1rem;
    }

    .category-preview-card i {
        font-size: 2rem;
    }

    .category-preview-card h5 {
        font-size: 1.1rem;
    }
}
