:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --primary-color: #d81b60;
    --primary-hover: #ad1457;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
    font-weight: 300;
}

/* Buttons */
.btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn:hover {
    background: var(--glass-bg);
}

.btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
    margin-left: 0;
    padding: 12px;
    margin-top: 15px;
    font-weight: 600;
}

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

.hidden {
    display: none !important;
}

/* Gallery Layout */
main {
    padding: 40px;
    min-height: calc(100vh - 80px);
}

.gallery {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .gallery { column-count: 3; }
}

@media (max-width: 800px) {
    .gallery { column-count: 2; }
}

@media (max-width: 500px) {
    .gallery { column-count: 1; }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    padding: 30px;
    width: 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modals (Glassmorphism) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    background: rgba(25, 25, 25, 0.8);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    position: relative;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

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

.modal h2 {
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: var(--primary-color);
}

.error {
    color: #ff5252;
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
    min-height: 20px;
}

/* File Upload Area */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 30px;
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
    margin-top: 10px;
}

.file-drop-area:hover, .file-drop-area.is-active {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--primary-color);
}

.choose-file-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.file-message {
    font-size: 14px;
    color: #aaa;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.preview {
    margin-top: 15px;
    text-align: center;
}

.preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: none;
}

/* Mobile App Design (PWA) */
@media (max-width: 768px) {
    header {
        display: none !important; /* Hide top header */
    }

    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    /* Top branding for mobile */
    .mobile-topbar {
        display: block !important;
        padding: 15px 20px;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 100;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-item {
        color: #888;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .nav-item.active {
        color: var(--primary-color);
    }
    
    .nav-icon {
        font-size: 24px;
    }
}

.mobile-topbar, .bottom-nav {
    display: none;
}
