/* ═══════════════════════════════════════════════════════════════
   ALBUMS - Terminal Theme
   ═══════════════════════════════════════════════════════════════ */

/* Note: .info-card-dark and grid utilities now in utilities.css */

/* ═══════════════════════════════════════════════════════════════
   ALBUM DETAIL LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* Dual Column Layout: Images Left, Sidebar Right */
.album-dual-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Left Main Content: Images */
.album-images-main {
    min-height: 400px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 1rem;
    justify-content: start;
}

/* ═══════════════════════════════════════════════════════════════
   ALBUM SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.album-sidebar {
    position: sticky;
    top: 1rem;
}

/* Note: Use .info-card-dark from utilities.css for album-info-panel */

/* ═══════════════════════════════════════════════════════════════
   ALBUM INFO DISPLAY
   ═══════════════════════════════════════════════════════════════ */

.info-title {
    color: var(--phosphor-green);
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-section {
    margin-bottom: 1.25rem;
}

.info-section:last-of-type {
    margin-bottom: 1.5rem;
}

.info-label {
    display: block;
    color: rgba(0, 255, 65, 0.7);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--phosphor-green);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
    word-wrap: break-word;
}

.album-title-display {
    color: var(--phosphor-green);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.album-description {
    color: rgba(0, 255, 65, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.empty-description {
    color: rgba(0, 255, 65, 0.5);
    font-style: italic;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   ALBUM EDIT FORM (HTMX Inline)
   ═══════════════════════════════════════════════════════════════ */

.edit-form-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-form-inline .form-control {
    width: 100%;
}

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

.edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.edit-link {
    color: rgba(0, 255, 65, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-link:hover {
    color: var(--phosphor-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   ALBUM ACTIONS
   ═══════════════════════════════════════════════════════════════ */

.actions-section {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 255, 65, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.actions-section .w-full {
    width: auto;
    /* Override w-full for grid children */
}

.back-link {
    color: rgba(0, 255, 65, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--phosphor-green) !important;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .album-dual-layout {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, 140px);
    }
}

@media (max-width: 768px) {
    .album-dual-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .album-sidebar {
        position: static;
        order: -1;
        /* Show sidebar first on mobile */
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, 150px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ALBUMS LIST PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Container uses .container-wide utility */
/* Grid uses .grid-albums utility */

.pagination-info {
    color: rgba(0, 255, 65, 0.8);
}

.album-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 65, 0.3);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    border-color: var(--phosphor-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.album-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.album-header-text {
    flex: 1;
    margin-right: 1rem;
}

.album-header h4 {
    margin: 0 0 0.25rem 0;
    color: var(--phosphor-green);
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.album-description-preview {
    margin: 0;
    font-size: 0.7rem;
    color: rgba(0, 255, 65, 0.6);
    line-height: 1.3;
    font-style: italic;
}

.album-count {
    font-size: 0.8rem;
    color: rgba(0, 255, 65, 0.7);
    background: rgba(0, 255, 65, 0.1);
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.albums-count {
    font-size: 0.85rem;
    color: rgba(0, 255, 65, 0.7);
    background: rgba(0, 255, 65, 0.1);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    font-family: "Courier New", Courier, monospace;
}

.album-title {
    color: var(--phosphor-green);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.album-meta {
    color: rgba(0, 255, 65, 0.6);
    font-size: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.meta-separator {
    margin: 0 0.5rem;
}

.album-images-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 80px;
}

.album-preview-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.empty-album {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(0, 255, 65, 0.5);
    font-size: 0.8rem;
}

.album-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.album-link:hover {
    text-decoration: none !important;
}

.album-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

.no-albums {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(0, 255, 65, 0.7);
}

.no-albums p {
    margin: 0.5rem 0;
}

.panel-footer-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   ALBUM EDIT PAGE
   ═══════════════════════════════════════════════════════════════ */

.album-edit-container {
    max-width: 800px;
    margin: 0 auto;
}

.album-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 255, 65, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   ALBUMS LIST RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .album-images-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}