﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.home-page {
    min-height: 100vh;
    background: #FCE1ED;
    color: #DE5959;
    font-family: Georgia, "Times New Roman", serif;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 25px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 80px);
    font-weight: normal;
    line-height: 1;
}

.wedding-date {
    margin: 25px 0 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
}

.divider {
    width: 50px;
    height: 1px;
    margin: 35px 0;
    background: #DE5959;
}

.intro-text {
    max-width: 420px;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.6;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-button,
.gallery-link {
    width: 220px;
    padding: 14px 25px;
    border: 1px solid #DE5959;
    background: transparent;
    color: #DE5959;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-link {
    margin-top: 15px;
    text-decoration: none;
}

    .upload-button:hover,
    .gallery-link:hover {
        background: #DE5959;
        color: #f5f1ea;
    }

#status {
    min-height: 20px;
    margin: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-item {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

    .gallery-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    color: white;
    text-shadow: 0 2px 8px black;
    pointer-events: none;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .lightbox.open {
        display: flex;
    }

#lightboxContent img,
#lightboxContent video {
    max-width: 90vw;
    max-height: 90vh;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.file-picker {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #DE5959;
    border-radius: 50%;
    cursor: pointer;
}

.plus-icon {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: 200;
    line-height: 1;
}

.file-picker-text,
.selected-files {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.choose-again {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: underline;
    cursor: pointer;
}

.upload-success {
    margin-top: 24px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #DE5959;
}

.login-box {
    width: min(350px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

    .login-box input {
        padding: 15px;
        border: 1px solid #DE5959;
        background: white;
        color: #DE5959;
        font-size: 16px;
        text-align: center;
        outline: none;
    }

        .login-box input::placeholder {
            color: #DE5959;
        }

    .login-box button {
        padding: 15px;
        border: none;
        background: #DE5959;
        color: white;
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
    }

.login-error {
    border: 2px solid #DE5959 !important;
    animation: shake 0.35s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.back-link {
    margin-bottom: 35px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    gap: 20px;
    margin: 20px 0 50px;
}

.stat-card {
    height: 190px;
    padding: 30px;
    border: 1px solid #DE5959;
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-value {
    font-family: "Segoe UI", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    margin-top: 18px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-actions .upload-button,
.dashboard-actions .gallery-link {
    margin: 0;
}

.dashboard-page {
    padding-top: 80px;
    padding-bottom: 80px;
}

.stat-size {
    font-size: 40px;
}

.gallery-item.selected {
    border: 5px solid #DE5959;
    transform: scale(0.97);
}

.selection-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #DE5959;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.selected-counter {
    margin-bottom: 30px;
}

.admin-gallery {
    margin-top: 30px;
}

.gallery-item.selected .selection-check {
    display: flex;
}

.gallery-item.selected img {
    filter: brightness(45%);
}

.gallery-item {
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.selection-check {
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
    transform: scale(0.6);
}

.gallery-item.selected .selection-check {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.access-message {
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.invisible {
    visibility: hidden;
}

#uploadFeedback {
    margin-top: 15px;
    text-align: center;
}

#uploadFeedback button {
    margin-top: 15px;
}

#uploadProgress {
    width: 220px;
    height: 8px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: rgba(222,89,89,.15);
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #DE5959;
    transition: width .15s linear;
}

#progressText {
    margin-top: 10px;
    font-family: Arial;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.upload-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}