/* ============================================================
   Wedding Page – app.css
   Color scheme: Burgundy, Cherry Blossom Pink, Misty Rose,
                 Silver Lake Blue, Lapis Lazuli
   Mobile-first responsive design
   ============================================================ */

:root {
    --burgundy:       #6C0820;
    --burgundy-light: #8a0a28;
    --cherry-blossom: #F2AEBC;
    --misty-rose:     #F2DCDB;
    --silver-blue:    #5A86CB;
    --lapis-lazuli:   #3D5D91;
    --white:          #ffffff;
    --text-dark:      #2d1520;
    --text-medium:    #6b4050;
    --nav-height:     60px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--misty-rose);
    color: var(--text-dark);
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Blazor Loading Progress ===== */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--misty-rose) 0%, var(--cherry-blossom) 100%);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: var(--cherry-blossom);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--burgundy);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0;
    color: var(--burgundy);
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Laden...");
}

/* ===== Blazor Error UI ===== */
#blazor-error-ui {
    background: var(--burgundy);
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 12px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--white);
    font-size: 0.9rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 1.1rem;
}

/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 16px;
    background: linear-gradient(160deg, var(--misty-rose) 0%, var(--cherry-blossom) 60%, var(--misty-rose) 100%);
}

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

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 28px 32px;
    box-shadow: 0 12px 40px rgba(108, 8, 32, 0.18);
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-rings {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 3px solid var(--cherry-blossom);
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(108, 8, 32, 0.15);
}

.login-title {
    font-size: 1.75rem;
    color: var(--burgundy);
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-medium);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-input {
    padding: 15px 18px;
    border: 2px solid var(--cherry-blossom);
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    background: var(--misty-rose);
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.login-input:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(108, 8, 32, 0.1);
}

.login-input-error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
}

.login-error {
    color: #d32f2f;
    font-size: 0.82rem;
    margin-top: -4px;
}

.login-button {
    padding: 15px;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(108, 8, 32, 0.3);
}

.login-button:hover {
    background: var(--burgundy-light);
    box-shadow: 0 6px 20px rgba(108, 8, 32, 0.4);
}

.login-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(108, 8, 32, 0.3);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
}

.impressum-link {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.impressum-link:hover {
    opacity: 0.9;
}

/* Impressum Modal */
.impressum-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 21, 32, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(2px);
}

@media (min-width: 480px) {
    .impressum-overlay {
        align-items: center;
        padding: 20px;
    }
}

.impressum-modal {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 460px;
}

@media (min-width: 480px) {
    .impressum-modal {
        border-radius: 16px;
    }
}

.impressum-modal h2 {
    color: var(--burgundy);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.impressum-modal p {
    font-size: 0.84rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.6;
}

.impressum-close {
    margin-top: 16px;
    padding: 11px 28px;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.impressum-close:hover {
    background: var(--burgundy-light);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-title {
    color: var(--misty-rose);
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    font-weight: normal;
    font-style: italic;
}

/* Hamburger button */
.navbar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--misty-rose);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (slide down) */
.navbar-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--burgundy);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, border-top 0.35s ease;
    z-index: 199;
}

.navbar-menu.open {
    max-height: 480px;
    border-top: 1px solid rgba(242, 174, 188, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--misty-rose);
    text-decoration: none;
    padding: 16px 20px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(242, 174, 188, 0.1);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
    background: rgba(242, 174, 188, 0.15);
    color: var(--cherry-blossom);
}

.nav-link.active {
    background: rgba(242, 174, 188, 0.2);
    color: var(--white);
    border-left: 3px solid var(--cherry-blossom);
}

/* Desktop: horizontal nav */
@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        position: static;
        flex-direction: row;
        max-height: none;
        overflow: visible;
        background: transparent;
        border-top: none;
        box-shadow: none;
        gap: 2px;
    }

    .nav-link {
        padding: 8px 12px;
        border-bottom: none;
        border-left: none !important;
        font-size: 0.88rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .nav-link.active {
        background: rgba(242, 174, 188, 0.2);
    }
}

/* ===== Main Layout ===== */
.main-layout {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.page-content {
    min-height: calc(100vh - var(--nav-height));
}

/* ===== Page Container ===== */
.page-container {
    max-width: 960px;
    margin: 0 auto;
}

/* ===== Slideshow ===== */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--text-dark);
    cursor: pointer;
}

.slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
}

.slideshow-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.slideshow-caption a {
    pointer-events: all;
    color: var(--white);
    font-size: 0.72rem;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.slideshow-caption a:hover {
    background: rgba(0, 0, 0, 0.65);
}

@media (min-width: 600px) {
    .slideshow-container {
        aspect-ratio: 16 / 7;
    }
}

@media (min-width: 960px) {
    .slideshow-container {
        aspect-ratio: 16 / 6;
    }
}

/* ===== Image Container (full-width) ===== */
.image-container {
    width: 100%;
    overflow: hidden;
}

.full-width-img {
    width: 100%;
    max-height: 55vh;
    object-fit: cover;
    display: block;
}

/* ===== Page Text ===== */
.page-text {
    padding: 28px 16px 48px;
}

.section-title {
    color: var(--burgundy);
    font-size: 1.7rem;
    font-weight: normal;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cherry-blossom);
}

.page-text p {
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 14px;
    font-size: 0.97rem;
}

@media (min-width: 600px) {
    .page-text {
        padding: 36px 28px 56px;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-text p {
        font-size: 1rem;
    }
}

/* ===== Guest List ===== */
.guest-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

@media (min-width: 420px) {
    .guest-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .guest-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.guest-item {
    background: var(--white);
    border: 1px solid var(--cherry-blossom);
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.3;
    transition: box-shadow 0.2s;
}

.guest-item.visible {
    box-shadow: 0 2px 8px rgba(108, 8, 32, 0.12);
    background: linear-gradient(135deg, var(--white) 0%, var(--misty-rose) 100%);
    font-weight: bold;
    color: var(--burgundy);
}

.guest-item.blurred {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

/* ===== Playlist Hero ===== */
.playlist-hero {
    width: 100%;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--lapis-lazuli) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 48px 24px;
}

@media (min-width: 600px) {
    .playlist-hero {
        min-height: 280px;
    }
}

.playlist-hero-inner {
    text-align: center;
    color: var(--misty-rose);
}

.music-note-icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.playlist-hero-text {
    font-size: 1.25rem;
    letter-spacing: 3px;
    font-style: italic;
    color: var(--cherry-blossom);
}

/* ===== Playlist ===== */
.playlist {
    margin-top: 28px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cherry-blossom);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(108, 8, 32, 0.08);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 16px;
    border-bottom: 1px solid var(--misty-rose);
    transition: background 0.15s;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: var(--misty-rose);
}

.playlist-number {
    color: var(--cherry-blossom);
    font-size: 0.82rem;
    min-width: 22px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'Arial', sans-serif;
}

.playlist-song-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.playlist-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-artist {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-style: italic;
}

/* ===== Utility ===== */
.mt-4 {
    margin-top: 16px;
}
