/* public/css/style.css */
body {
    background-color: #050505;
    color: #bfbfbf;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

/* --- Login / profile links (top right) --- */
.auth-bar {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    z-index: 1000;
}

.auth-bar a {
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
}

.auth-bar a:hover,
.auth-bar a.active {
    color: #fff;
}

header {
    background-color: #000;
    border-bottom: 2px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #eee;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid #333;
    padding: 15px 0;
    background-color: #080808;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0 20px;
    border-right: 1px solid #444;
    text-transform: uppercase;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:last-child {
    border-right: none;
}

.nav-links a:hover {
    color: #fff;
    background-color: #111;
}

.nav-links a.active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* --- Shortcuts (Drinks/FAQ) inside content --- */
.useful-links-container {
    display: flex;
    justify-content: flex-start; /* Aligns left instead of center */
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    background-color: transparent; /* Removed dark background strip */
    border: none;
    padding: 0;
}

.link-card {
    border: 1px solid #333;
    background-color: #080808;
    width: 140px; /* Reduced width */
    padding: 8px;
    text-align: center;
    cursor: pointer;
}

.link-card:hover {
    border-color: #777;
    background-color: #111;
}

.link-card a {
    text-decoration: none;
    color: #ccc;
    display: block;
}

.img-placeholder {
    width: 100%;
    height: 100px; /* Reduced height */
    background-color: #111;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.7rem;
}

.link-card span {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    padding-top: 5px;
    border-top: 1px solid #222;
}

/* --- Layout --- */
.main-layout {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.content-column {
    flex: 3;
    min-height: 400px;
}

.sidebar-column {
    flex: 1;
    min-width: 300px;
}

/* Status Boxes */
.status-box {
    background-color: #080808;
    border: 2px solid #333;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.status-box h2 {
    margin-top: 0;
    color: #ddd;
    text-transform: uppercase;
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

#happyHourStatus,
#fredagStatus,
#morgenfestStatus {
    font-size: 2rem;
    margin-top: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#countdownTimer,
#happyHourTimer,
#morgenfestTimer {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
        min-width: 0;
    }
}

/* --- Shared: hidden attribute, buttons, forms --- */
[hidden] { display: none !important; }

.btn { padding: 10px 20px; cursor: pointer; border: none; font-weight: bold; font-family: inherit; text-transform: uppercase; margin-right: 5px; }
.btn-primary { background: #eee; color: #000; }
.btn-secondary { background: #444; color: #fff; }
.btn-danger { background: #800; color: #fff; }
.btn-small { padding: 4px 10px; font-size: 0.7rem; }
a.btn { display: inline-block; text-decoration: none; }

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: #fff; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px; background: #111; border: 1px solid #444; color: #ddd; font-family: inherit; box-sizing: border-box;
}
.form-group input[type="checkbox"] { width: auto; margin-right: 8px; }

/* --- Avatars (toprammer profile pictures) --- */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #050505;
    box-sizing: border-box;
    flex-shrink: 0;
}

.avatar-initials,
.avatar-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
}

.avatar-initials { background-color: hsl(var(--avatar-hue, 0), 45%, 35%); }
.avatar-more { background-color: #333; }

/* --- Names that link to a profile --- */
a.tt-name,
a.earned-name,
a.tt-entry-author {
    color: #ddd;
    text-decoration: none;
}
a.tt-name:hover,
a.earned-name:hover,
a.tt-entry-author:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Repeat awards: "(3x)" on an avatar --- */
.avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.avatar-count {
    position: absolute;
    right: -8px;
    bottom: -6px;
    padding: 1px 4px;
    background-color: #080808;
    border: 1px solid #333;
    color: #ddd;
    font-size: 0.6rem;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
}

/* Backup reminder (admins) */
.backup-reminder { background: #111; border: 1px solid #333; padding: 15px; margin-top: 20px; }
.backup-reminder pre { overflow-x: auto; background: #000; padding: 10px; }
.backup-status { color: #6c6; }
.backup-status.backup-stale { color: #f5c542; }
