/* ==========================================================================
   GRAFTAGE MODALS & LIGHTBOX STYLES
   Lyrics Overlay & Photo Gallery Fullscreen Lightbox
   ========================================================================== */

/* 1. Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.88);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-backdrop.open {
    display: flex;
    opacity: 1;
}

/* 2. Lyrics Modal Card */
.lyrics-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--cyan-glow);
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.lyrics-modal-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.lyrics-title-group h3 {
    font-size: 1.6rem;
    color: var(--cyan);
    text-shadow: 0 0 16px var(--cyan-glow);
    margin-bottom: 0.25rem;
}

.lyrics-album-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-modal-close:hover {
    background: var(--red);
    color: #ffffff;
    border-color: var(--red);
    transform: rotate(90deg);
}

.lyrics-modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    white-space: pre-wrap;
    font-family: var(--font-body);
}

.lyrics-modal-body::-webkit-scrollbar {
    width: 6px;
}

.lyrics-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.lyrics-modal-body::-webkit-scrollbar-thumb {
    background: var(--cyan-dark);
    border-radius: 3px;
}

.lyrics-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* 3. Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 7, 0.95);
    backdrop-filter: blur(16px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px var(--cyan-glow);
    border: 1px solid var(--border-bright);
    object-fit: contain;
}

.lightbox-info {
    margin-top: 1rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lightbox-caption {
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-caption span {
    font-size: 0.85rem;
    color: var(--cyan);
    margin-left: 0.5rem;
}

.lightbox-counter {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(13, 17, 26, 0.8);
    border: 1px solid var(--border-bright);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close-btn { top: 1rem; right: 1rem; }
}
