/* ===== ALGEMENE STIJLEN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #0a0a0a;
    color: #eee;
    min-height: 100vh;
}

/* ===== LOGINPAGINA (index.php) ===== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #1a1a1a;
    max-width: 420px;
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.2);
    border-top: 4px solid #800020;
    transition: all 0.2s ease;
}

.login-card h1 {
    color: #d4af37;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.login-card .sub {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    border-bottom: 1px dashed #800020;
    padding-bottom: 1rem;
}

.hint {
    background: #2c1a1a;
    border-left: 6px solid #d4af37;
    color: #f0e6d2;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hint span {
    color: #d4af37;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.input-group input {
    background: #2a2a2a;
    border: none;
    border-bottom: 2px solid #800020;
    padding: 1rem 1rem;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 8px 8px 0 0;
    outline: none;
    transition: 0.15s;
}

.input-group input:focus {
    border-bottom-color: #d4af37;
    background: #333;
}

button {
    background: #800020;
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    margin-top: 1rem;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 0 #4d0013;
}

button:hover {
    background: #a00028;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #4d0013;
}

button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #4d0013;
}

.footer-note {
    margin-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

.footer-note a {
    color: #d4af37;
    text-decoration: none;
}

/* ===== HOOFDPAGINA (yanou.php) ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #800020;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    z-index: 10;
}

.timer {
    background: #1a1a1a;
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    border: 1px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.timer span {
    color: white;
    font-weight: 300;
    margin: 0 4px;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem 5rem;
}

.title {
    text-align: center;
    margin-bottom: 3rem;
}

.title h2 {
    font-size: 2.5rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    border-bottom: 2px solid #800020;
    display: inline-block;
    padding-bottom: 0.5rem;
    padding-inline: 2rem;
}

.story-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-card {
    display: flex;
    background: #161616;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 20px 30px -10px black;
    transition: all 0.2s;
}

.story-card:nth-child(even) {
    flex-direction: row-reverse;
}

.story-card:hover {
    border-color: #800020;
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.5);
}

.story-img {
    flex: 1 1 40%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-right: 2px solid #800020;
}

.story-card:nth-child(even) .story-img {
    border-right: none;
    border-left: 2px solid #800020;
}

.story-content {
    flex: 1 1 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content h3 {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.story-content p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #ccc;
}

.story-content .date {
    margin-top: 1.2rem;
    font-style: italic;
    color: #800020;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.footer-heart {
    text-align: center;
    margin-top: 4rem;
    color: #d4af37;
    font-size: 1.2rem;
}

.logout-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #800020;
    color: #d4af37;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    border: 1px solid gold;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 20;
}

.logout-btn:hover {
    background: #a00028;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* ===== RESPONSIVE (mobiel) ===== */
@media (max-width: 700px) {
    .header {
        justify-content: center;
        padding: 0.8rem 1rem;
    }
    .timer {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    .timer span {
        margin: 0 2px;
    }
    .story-card, .story-card:nth-child(even) {
        flex-direction: column;
    }
    .story-img {
        min-height: 220px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 2px solid #800020;
    }
    .story-content {
        padding: 1.5rem;
    }
    .story-content h3 {
        font-size: 1.6rem;
    }
    .title h2 {
        font-size: 1.8rem;
        padding-inline: 1rem;
    }
    .logout-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .timer {
        font-size: 0.8rem;
    }
    .login-card {
        padding: 2rem 1.2rem;
    }
}

/* Ronde profielfoto op login */
.login-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;        /* goudkleurige rand */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); /* subtiele glow */
    transition: transform 0.2s ease;
}

.login-photo img:hover {
    transform: scale(1.02);
    border-color: #800020;             /* bordeaux bij hover */
}

/* Aanpassing voor kleine schermen */
@media (max-width: 480px) {
    .login-photo img {
        width: 90px;
        height: 90px;
    }
}

/* Klikbare story-cards */
.story-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.story-card-link:hover {
    transform: scale(1.02);
}

.story-card.clickable {
    cursor: pointer;
}

.story-card.no-link {
    cursor: default;
}

/* Detailpagina's (foto overzichten) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #800020;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-item p {
    padding: 1rem;
    text-align: center;
    color: #d4af37;
    font-style: italic;
}

.back-button {
    display: inline-block;
    margin: 1rem 0 2rem 0;
    background: #800020;
    color: #d4af37;
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    border: 1px solid gold;
    font-weight: 600;
    transition: 0.2s;
}

.back-button:hover {
    background: #a00028;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
