﻿/* assets/style.css */

/* Basis – farver kommer fra :root-variabler sat i PHP */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg, #fdf9f7);
    color: var(--text, #333);
    line-height: 1.5;
}

/* Forside hero */

.hero {
    aspect-ratio: 720 / 91;
    min-height: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


.hero-overlay {
    display: none;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2.4rem;
}

.hero-sub {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.hero-meta {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.main {
    max-width: 960px;
    margin: 20px auto 40px;  /* eller 0 auto 40px; hvis du vil have den tættere på */
    padding: 0 16px;
}


.card {
    background: #fff;
    border-radius: 0px;
    padding: 20px 20px 24px;
    box-shadow: none;
    margin-bottom: 16px;
}

/* Layout */

.flex {
    display: flex;
    flex-direction: column;   /* ← vigtig */
    gap: 16px;
}

.flex > div {
    flex: 1 1 260px;
}

.image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-rounded {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Formularer */

.form input,
.form textarea,
.form select,
.login-card input,
.login-card textarea,
.login-card select {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-family: inherit;
}

.form textarea {
    resize: vertical;
}

button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: var(--primary, #E8B4BC);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.98rem;
}

button:hover {
    background: var(--secondary, #D4A5A5);
}

/* Alerts */

.alert {
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e3f5e8;
    border-left: 4px solid #2e7d32;
}

.alert-error {
    background: #ffe5e5;
    border-left: 4px solid #c62828;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
}

/* Gaveønsker */

.gift-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 4px;
}

.gift-list li {
    margin-bottom: 6px;
}

.account {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Footer */

.footer {
    text-align: center;
    padding: 20px 16px 30px;
    background: var(--accent, #F2D7D9);
    color: #333;
}

.footer .small {
    font-size: 0.85rem;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

/* Admin-bar på forsiden */

.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 50;
}

.admin-bar a {
    color: #fff;
    text-decoration: underline;
}

/* Login-sider */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    max-width: 380px;
    width: 100%;
}

/* Adminlayout */

.admin-body {
    background: #f5f5f7;
}

.admin-header {
    background: var(--primary, #E8B4BC);
    color: #fff;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9rem;
}

.admin-main {
    max-width: 1120px;
    margin: 20px auto 40px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 2fr);
    gap: 16px;
}

.admin-panel {
    margin-bottom: 0;
}

.admin-panel label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

.admin-panel input[type="text"],
.admin-panel textarea,
.admin-panel input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin: 4px 0 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.img-preview {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.table-wrap {
    max-height: 320px;
    overflow: auto;
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.guest-table th,
.guest-table td {
    border-bottom: 1px solid #eee;
    padding: 4px 4px;
    text-align: left;
    vertical-align: top;
}

.guest-table th {
    font-weight: 600;
    background: #fafafa;
}

.small {
    font-size: 0.8rem;
    color: #666;
}

.page-header-simple {
    text-align: left;
    padding: 40px 16px 10px;
    background: #ffffff;
    max-width: 960px;
    margin: 0 auto;
}

.page-header-simple h1 {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.page-header-simple p {
    margin: 4px 0;
    font-size: 1rem;
    color: #444;
}

.page-meta {
    font-size: 0.95rem;
    color: #666;
}


/* Responsiv */

@media (max-width: 700px) {
    .hero {
        padding: 110px 12px 80px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .main {
        margin-top: -40px;
    }
    .admin-main {
        grid-template-columns: minmax(0, 1fr);
    }
}
