/* Toria's 21st Birthday - Photo Upload Service */
/* Inspired by octopus.energy - bold dark theme with neon accents */

:root {
    --primary-dark: #100030;
    --secondary-dark: #180048;
    --accent-pink: #f050f8;
    --accent-cyan: #60f0f8;
    --accent-azure: #bdf2ff;
    --text-light: #bdf2ff;
    --text-white: #ffffff;
    --text-muted: #a090c0;
    --border: rgba(189, 242, 255, 0.15);
    --success: #18f0b8;
    --error: #ff0074;
    --radius: 1.2rem;
    --shadow: 0 4px 20px rgba(240, 80, 248, 0.15);
    --shadow-lg: 0 8px 40px rgba(240, 80, 248, 0.25);
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a0018 100%);
    min-height: 100vh;
    color: var(--text-white);
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(ellipse at top, #1a0050 0%, var(--primary-dark) 60%);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--secondary-dark);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.birthday-header {
    text-align: center;
    margin-bottom: 32px;
}

.birthday-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--accent-azure);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 4px;
}

.tagline {
    color: var(--accent-pink);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.login-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: none;
    border-bottom: 2px solid rgba(189, 242, 255, 0.3);
    border-radius: 0;
    background: transparent;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 300;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-pink);
    box-shadow: 0 4px 12px rgba(240, 80, 248, 0.2);
}

.form-group input::placeholder {
    color: rgba(189, 242, 255, 0.4);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-pink);
    color: #000000;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #ff6ef9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(240, 80, 248, 0.5);
}

.error-message {
    background: rgba(255, 0, 116, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 14px;
    border-radius: 0.8rem;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Gallery Page */
.gallery-page {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a0018 100%);
    padding-bottom: 60px;
}

.site-header {
    background: rgba(16, 0, 48, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.date-badge {
    color: var(--accent-azure);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn, .logout-btn {
    padding: 12px 20px;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    background: rgba(24, 0, 72, 0.8);
    color: var(--text-white);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.icon-btn:hover, .logout-btn:hover {
    background: var(--accent-pink);
    color: #000;
    border-color: var(--accent-pink);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 48px;
}

.upload-area {
    border: 2px dashed rgba(189, 242, 255, 0.3);
    border-radius: var(--radius);
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--secondary-dark);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-pink);
    background: rgba(240, 80, 248, 0.05);
    box-shadow: var(--shadow);
}

.upload-area.dragover {
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.upload-area h2 {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-white);
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

.file-types {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--accent-azure);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.upload-progress {
    margin-top: 24px;
    padding: 24px;
    background: var(--secondary-dark);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.progress-bar {
    height: 6px;
    background: rgba(189, 242, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
    width: 0%;
    transition: width 0.3s;
    border-radius: 3px;
}

.upload-results {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.result-item {
    padding: 14px 18px;
    border-radius: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.result-success {
    background: rgba(24, 240, 184, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.result-error {
    background: rgba(255, 0, 116, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Gallery Section */
.gallery-section {
    margin-top: 48px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-white);
}

.photo-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.photo-card {
    background: var(--secondary-dark);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: var(--shadow);
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(240, 80, 248, 0.4);
}

.photo-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 0, 72, 0.5);
    font-size: 3rem;
    opacity: 0.6;
}

.photo-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.photo-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 0, 116, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0;
    line-height: 1;
}

.photo-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

.delete-modal-content {
    text-align: left;
}

.delete-modal-content h3 {
    text-align: center;
    margin-bottom: 16px;
    font-weight: 300;
}

.delete-warning {
    color: var(--error);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.delete-filename {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 20px;
}

.delete-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.delete-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 0.8rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: rgba(189, 242, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(189, 242, 255, 0.2);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #ff3387;
    transform: translateY(-1px);
}

.empty-gallery {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 0, 48, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--secondary-dark);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.qr-image {
    width: 200px;
    height: 200px;
    margin: 24px auto;
    display: block;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
}

.qr-url {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    word-break: break-all;
    margin: 12px 0;
}

.qr-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 24px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .upload-area {
        padding: 48px 24px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .birthday-header h1 {
        font-size: 1.8rem;
    }
}
