/* app.css - App Specific Styles (Dark Mode) */

:root {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --primary-color: #64b5f6;
    --primary-hover: #42a5f5;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar.glass-nav {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* JS Masonry Layout */
.masonry-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stagger even columns on larger screens to bring back the masonry feel for uniform images */
@media (min-width: 600px) {
    .masonry-col:nth-child(even) {
        margin-top: 2rem;
    }
}

.photo-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.photo-tags {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Lightbox */
.lightbox {
    border: none;
    background: transparent;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 2rem;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 4rem;
    padding: 0 1.5rem;
    cursor: pointer;
    line-height: 1;
    height: 30%;
    display: flex;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.lightbox-content:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Mobile responsive navbar and lightbox tweaks */
@media (max-width: 900px) {
    .nav-btn {
        display: none !important; /* Hide arrows on mobile to prevent obscuring image */
    }

    .navbar {
        flex-wrap: wrap;
        padding-bottom: 0;
        justify-content: space-between;
    }
    .navbar .nav-brand {
        order: 1;
        margin-bottom: 0.5rem;
    }
    .navbar .nav-actions {
        order: 2;
        margin-bottom: 0.5rem;
    }
    .navbar .nav-links {
        order: 3;
        display: flex;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 1rem;
        gap: 0.5rem;
    }
    .navbar .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .navbar .nav-links a {
        background: rgba(255, 255, 255, 0.05);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        margin: 0;
    }
    .navbar .nav-links a.active {
        background: rgba(100, 181, 246, 0.15);
    }
}
