/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color-dark: #121212;
    --text-color-light: #f4f4f4;
    --accent-color: #64ffda;
    --card-bg-color: #1e1e1e;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color-dark);
    color: var(--text-color-light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
}

/* HEADER & SEARCH */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
}

.site-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #b0b0b0;
    margin-top: 0.25rem;
}

#search {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    background: var(--card-bg-color);
    border: 1px solid #333;
    border-radius: 50px;
    color: var(--text-color-light);
    max-width: 300px;
    transition: all 0.3s ease;
}

#search::placeholder {
    color: #888;
}

#search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

/* ALBUM GRID */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.album-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.album-card:hover img {
    filter: brightness(0.7);
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: left;
}

.album-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.is-visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-btn {
    position: absolute;
    background: none;
    border: none;
    color: #f4f4f4;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 1rem;
    user-select: none;
}

.lightbox-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.close-btn {
    top: 20px;
    right: 30px;
    font-size: 3rem;
}

.prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    #search {
        width: 100%;
        max-width: none;
    }
}