/* ==========================================================================
   ALBUM KENANGAN KKN - MODERN BRIGHT THEME
   Palette: Fresh Azure, Sky Blue, Sunset Coral, Emerald Green, Cloud White
   ========================================================================== */

:root {
    --primary: #0284c7;
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    --primary-subtle: #f0f9ff;
    --primary-glow: rgba(2, 132, 199, 0.18);

    --accent-coral: #f97316;
    --accent-coral-subtle: #fff7ed;
    --accent-emerald: #10b981;
    --accent-emerald-subtle: #ecfdf5;
    --accent-violet: #8b5cf6;
    --accent-amber: #f59e0b;

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #38bdf8;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(2, 132, 199, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 24px 45px -12px rgba(2, 132, 199, 0.22);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Decorative Background Glows */
body::before {
    content: '';
    position: fixed;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(2, 132, 199, 0.02) 70%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(245, 158, 11, 0.02) 70%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.nav-brand:hover .brand-icon {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-subtle);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.btn-admin-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    box-shadow: 0 6px 16px -4px var(--primary-glow);
    padding: 9px 20px;
}

.btn-admin-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -4px rgba(2, 132, 199, 0.4);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-heading);
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    padding: 60px 0 50px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(90deg, #e0f2fe 0%, #fef3c7 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-heading);
    line-height: 1.15;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Stats Counter Bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.coral { background: #ffedd5; color: #ea580c; }
.stat-icon.emerald { background: #d1fae5; color: #059669; }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Filter & Search Bar */
.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 768px) {
    .filter-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    font-size: 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-page);
    color: var(--text-heading);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.pill-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-subtle);
}

.pill-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 6px 14px -3px var(--primary-glow);
}

/* Album Card Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.album-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 132, 199, 0.3);
}

.album-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.album-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-thumb {
    transform: scale(1.06);
}

.category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-count-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.album-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.album-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.35;
    transition: var(--transition);
}

.album-card:hover .album-title {
    color: var(--primary);
}

.album-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-view-album {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.btn-view-album:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.album-views {
    font-size: 12px;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-light);
    grid-column: 1 / -1;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

/* Photos Masonry / Grid for Album Detail */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    group: relative;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.photo-img-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

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

.photo-card:hover .photo-img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: white;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-caption-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.photo-credits {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modern Lightbox / Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.lightbox-image-wrap {
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    user-select: none;
}

.lightbox-info {
    width: 100%;
    max-width: 700px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-top: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lightbox-caption {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.lightbox-author {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.lightbox-nav-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* Timeline Journey */
.timeline-section {
    position: relative;
    max-width: 860px;
    margin: 40px auto 80px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-coral) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow);
    z-index: 2;
}

.timeline-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-columns { column-count: 2; }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .brand-title {
        font-size: 15px;
        max-width: 220px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-light);
        display: none;
        gap: 10px;
    }
    .nav-menu.show { display: flex; }
    .nav-link { width: 100%; justify-content: center; padding: 12px; }
    
    .hero-section { padding: 40px 0 30px; }
    .hero-title { font-size: 28px; line-height: 1.25; }
    .hero-desc { font-size: 14px; }
    
    .category-filter-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .category-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .album-grid { grid-template-columns: 1fr; }
    .photo-columns { column-count: 1; }
    
    .timeline-line { left: 16px; }
    .timeline-item { flex-direction: row !important; margin-bottom: 30px; }
    .timeline-dot { left: 16px; }
    .timeline-content { width: calc(100% - 44px); margin-left: 44px; padding: 18px; }

    .album-detail-hero {
        padding: 30px 16px;
    }
    .album-detail-title {
        font-size: 24px;
    }
    
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    .lightbox-info {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .lightbox-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .brand-title {
        max-width: 160px;
        font-size: 13px;
    }
    .brand-subtitle {
        display: none;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-stats {
        gap: 14px;
    }
    .hero-stat-item {
        padding: 10px 14px;
    }
    .hero-stat-number {
        font-size: 20px;
    }
}
