/* assets/css/album.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid #f0c14b;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f0c14b;
}

.loading-content p {
    color: #ccc;
}

/* Gallery Container */
#gallery-container {
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Header */
.gallery-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
    transition: transform 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-title {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #f0c14b;
}

.gallery-title i {
    margin-right: 15px;
    font-size: 2.2rem;
}

.header-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.control-btn i {
    margin-right: 8px;
}

.control-btn:hover {
    background: rgba(240, 193, 75, 0.2);
    border-color: rgba(240, 193, 75, 0.5);
    transform: translateY(-2px);
}

/* Category Selector */
.category-selector {
    position: fixed;
    top: 80px;
    right: 30px;
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-selector.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.selector-header h3 {
    color: #f0c14b;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1.1rem;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(240, 193, 75, 0.3);
    transform: translateX(5px);
}

.category-item.active {
    background: rgba(240, 193, 75, 0.2);
    border-color: rgba(240, 193, 75, 0.5);
}

/* Photo Wall */
.photo-wall {
    padding: 120px 20px 80px;
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 20px;
    grid-gap: 20px;
/* SBC moving photos   perspective: 1000px; */
    transition: all 0.3s ease;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform;
}

/* Floating animation for grid view */
.photo-wall:not(.list-view) .photo-item {
    animation: float 6s ease-in-out infinite;
}

.photo-wall:not(.list-view) .photo-item:nth-child(odd) {
    animation-delay: 0.5s;
}

.photo-wall:not(.list-view) .photo-item:nth-child(3n) {
    animation-delay: 1s;
}

.photo-wall:not(.list-view) .photo-item:nth-child(4n) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    }

    50% {
        transform: translateY(5px) rotateX(-5deg) rotateY(-5deg);
    }

    75% {
        transform: translateY(-5px) rotateX(3deg) rotateY(-3deg);
    }
}

/* Grid view hover effects */
.photo-wall:not(.list-view) .photo-item:hover {
    transform: translateY(-20px) scale(1.05) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 20px 40px rgba(240, 193, 75, 0.3);
    z-index: 10;
}

.photo-wall:not(.list-view) .photo-item:hover img {
    transform: scale(1.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.photo-info p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
}

.photo-meta .category {
    background: rgba(240, 193, 75, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
}

/* List View Styles */
.photo-wall.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.photo-wall.list-view .photo-item {
    display: flex;
    flex-direction: row;
    height: 200px;
    grid-row-end: auto;
    animation: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

/* List view hover effects */
.photo-wall.list-view .photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.photo-wall.list-view .photo-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.photo-wall.list-view .photo-item:hover img {
    transform: scale(1.05);
}

.photo-wall.list-view .photo-overlay {
    position: static;
    background: none;
    padding: 0;
    opacity: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    pointer-events: none;
}

.photo-wall.list-view .photo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f0c14b;
}

.photo-wall.list-view .photo-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-wall.list-view .photo-meta {
    justify-content: flex-start;
    margin-top: auto;
}

/* Photo Viewer Modal */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-viewer-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.photo-viewer-modal.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.photo-info {
    padding: 20px;
    text-align: center;
}

.photo-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #f0c14b;
}

.photo-info p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.photo-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-btn:hover {
    background: rgba(240, 193, 75, 0.3);
    transform: scale(1.1);
}

/* Stats Bar */
.stats-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 100;
}

.stats-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
}

/* Background Canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-title i {
        font-size: 1.8rem;
    }

    .header-controls {
        gap: 10px;
    }

    .control-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 100px 15px 70px;
    }

    .photo-wall.list-view {
        padding: 100px 15px 70px;
    }

    .photo-wall.list-view .photo-item {
        flex-direction: column;
        height: auto;
    }

    .photo-wall.list-view .photo-item img {
        width: 100%;
        height: 200px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .photo-info h2 {
        font-size: 1.4rem;
    }

    .photo-info p {
        font-size: 1rem;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #f0c14b;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
}