/* === Album Page Styles === */
:root {
    --album-color: #ff9500;
    --album-glow: rgba(255, 149, 0, 0.3);
    --bg-color: #050a15;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Noto Sans SC', sans-serif;
    color: #e0e6ed;
}

/* Background Canvas */
#portal-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* Glass Panel */
.glass-panel {
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(255, 149, 0, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header */
.album-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.album-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
}
.album-header .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Album Tabs */
.album-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.album-tabs-wrapper::-webkit-scrollbar { display: none; }

.album-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.album-tab {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.25);
    color: #ccc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Noto Sans SC', sans-serif;
}
.album-tab:hover {
    background: rgba(255, 149, 0, 0.15);
    color: #fff;
}
.album-tab.active {
    background: rgba(255, 149, 0, 0.2);
    border-color: var(--album-color);
    color: var(--album-color);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.2);
}
.new-album-btn {
    border-style: dashed;
    flex-shrink: 0;
}

/* Photo Grid */
.photo-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,149,0,0.3) transparent;
}

.photo-grid {
    column-count: 4;
    column-gap: 12px;
    padding-bottom: 20px;
}

@media (max-width: 1024px) { .photo-grid { column-count: 3; } }
@media (max-width: 768px) { .photo-grid { column-count: 2; } }

.empty-hint {
    column-span: all;
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding: 60px 20px;
}

/* Photo Card */
.photo-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    break-inside: avoid;
    margin-bottom: 12px;
    display: inline-block;
    width: 100%;
}
.photo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.25);
    border-color: rgba(255, 149, 0, 0.4);
    z-index: 2;
}
.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
}
.photo-card:hover img {
    filter: brightness(1.1);
}
.loading-sentinel {
    column-span: all;
    text-align: center;
    padding: 20px;
}
.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,149,0,0.2);
    border-top-color: var(--album-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.photo-card .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.photo-card:hover .photo-overlay {
    opacity: 1;
}
.photo-overlay .photo-caption {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.3;
}
.photo-overlay .photo-uploader {
    color: var(--album-color);
    font-size: 0.7rem;
    margin-top: 3px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}
.modal-card {
    max-width: 420px;
    width: 90%;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 149, 0, 0.3);
    background: rgba(10, 15, 25, 0.95);
    box-shadow: 0 0 40px rgba(255, 149, 0, 0.15);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity:0; transform:scale(0.9); }
    to { opacity:1; transform:scale(1); }
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 149, 0, 0.35);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 14px;
    color: #aaa;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--album-color);
    background: rgba(255, 149, 0, 0.06);
    color: #fff;
}

/* Lightbox */
.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 95vw;
    max-height: 75vh;
}
.lightbox-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 85vw;
    max-height: 70vh;
}
#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-nav {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: var(--album-color);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lightbox-nav:hover {
    background: rgba(255, 149, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.3);
}
.lightbox-info {
    text-align: center;
    margin-top: 14px;
    color: #ccc;
    font-size: 0.9rem;
}
#lightbox-meta {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 4px;
}
.lightbox-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* App Layout */
#app {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Auth (reuse from style.css) */
.cyber-auth {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 350px;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 149, 0, 0.3);
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(255, 149, 0, 0.15);
}
.cyber-auth h2 { font-family: 'Orbitron', sans-serif; margin-bottom: 20px; color: var(--album-color); }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-tabs button { flex:1; padding:8px; background:transparent; border:1px solid rgba(255,149,0,0.3); color:#aaa; border-radius:5px; cursor:pointer; transition:all 0.3s; }
.auth-tabs button.active { background:rgba(255,149,0,0.15); color:var(--album-color); border-color:var(--album-color); }
.input-group { margin-bottom: 12px; }
.input-group input { width:100%; padding:10px 15px; background:rgba(0,0,0,0.5); border:1px solid rgba(255,149,0,0.3); color:#fff; border-radius:5px; font-size:0.95rem; }
.input-group input:focus { outline:none; box-shadow: 0 0 12px rgba(255,149,0,0.3); }
.error-msg { color: #ff003c; font-size: 0.85rem; }
.success-msg { color: #00ff66; font-size: 0.85rem; }
.hidden { display: none !important; }
.highlight { color: var(--album-color); font-weight: bold; }

.cyber-select {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,149,0,0.3);
    color: #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .album-header .header-top { flex-direction: column; align-items: flex-start; }
    #user-info { display: flex; flex-wrap: wrap; gap: 6px; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .lightbox-nav { width: 36px; height: 36px; font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
