/* assets/css/style.css */
:root {
    --bg-color: #0f0d12;
    --card-bg: #1a1720;
    --text-main: #f5f0ff;
    --text-muted: #9e8fa8;
    --accent: #c9a0dc;
    --accent-hover: #b07fd4;
    --gold: #d4a94e;
    --gold-light: #f0d080;
    --error: #cf6679;
    --success: #03dac6;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(180, 120, 220, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 169, 78, 0.06) 0%, transparent 60%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: linear-gradient(160deg, #211e2a, #1a1720);
    border: 1px solid rgba(201, 160, 220, 0.15);
    padding: 36px 30px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 169, 78, 0.07);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* ---- Wedding Header ---- */
.wedding-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 169, 78, 0.2);
}

.wedding-names {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #c8883a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.wedding-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

.wedding-divider {
    margin-top: 14px;
    font-size: 20px;
    opacity: 0.8;
}

h1 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

p.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: var(--text-main);
    font-size: 16px;
    transition: var(--transition);
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.file-drop-area {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background-color: #252525;
}

.file-drop-area:hover,
.file-drop-area.dragover {
    border-color: var(--accent);
    background-color: #2a2a35;
}

.file-drop-area svg {
    width: 40px;
    height: 40px;
    fill: var(--accent);
    margin-bottom: 10px;
}

.file-drop-area span {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

.file-drop-area small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.preview-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #444;
}

.btn-upload {
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-upload:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
}

.progress-container {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.progress-bar-bg {
    background-color: #333;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 0%;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

.status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.status-message.success {
    background-color: rgba(3, 218, 198, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.status-message.error {
    background-color: rgba(207, 102, 121, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    display: block;
}

/* ---- Fotos ansehen Link ---- */
.photos-link-wrapper {
    margin-top: 10px;
    padding-top: 20px;
    /*border-top: 1px solid rgba(255,255,255,0.07); */
}

.btn-view-photos {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #555;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.btn-view-photos:hover {
    border-color: #444;
    color: #666;
    background-color: rgba(255, 255, 255, 0.03);
}

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: linear-gradient(160deg, #231f2e, #1c1825);
    border: 1px solid rgba(201, 160, 220, 0.2);
    border-radius: 20px;
    padding: 36px 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.25s ease;
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.modal-box h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 127, 212, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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