/* Soviet red palette:
   primary:   #CC0000  (soviet red)
   dark:      #8B0000  (deep red)
   accent:    #F5C518  (gold/star)
   bg:        #1A1A1A  (near black)
   surface:   #2A2A2A  (dark card)
   text:      #F0EAD6  (warm cream)
   muted:     #A09070  (muted cream)
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1A1A1A;
    background-image: url('/static/cpa_logo.png');
    background-repeat: no-repeat;
    background-position: center 80px;
    background-size: 320px 320px;
    background-attachment: fixed;
    color: #F0EAD6;
    min-height: 100vh;
}

/* Header */
header {
    background: #CC0000;
    padding: 1rem 1rem 0.75rem;
    text-align: center;
    border-bottom: 3px solid #F5C518;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #F0EAD6;
}

.header-date {
    font-size: 1rem;
    font-weight: 600;
    color: #F5C518;
    margin-top: 0.3rem;
    letter-spacing: 0.12em;
}

/* Main layout */
main {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card */
.card {
    background: rgba(26, 26, 26, 0.88);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #3A3A3A;
    backdrop-filter: blur(2px);
}

.card.center {
    text-align: center;
}

.mt {
    margin-top: 1rem;
}

/* No dinner state */
.big-msg {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F0EAD6;
    margin-bottom: 0.25rem;
}

.sub-msg {
    font-size: 0.9rem;
    color: #A09070;
    margin-bottom: 1.25rem;
}

/* Badge */
.badge {
    display: inline-block;
    background: #CC0000;
    color: #F0EAD6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.card h2 {
    font-size: 1.15rem;
    color: #F0EAD6;
}

.card h2 strong {
    color: #F5C518;
}

.menu-comment {
    margin-top: 0.5rem;
    color: #A09070;
    font-style: italic;
    font-size: 0.9rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #3A3A3A;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #F5C518;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: #A09070;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Form */
h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #A09070;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #A09070;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #1A1A1A;
    border: 1.5px solid #3A3A3A;
    border-radius: 6px;
    font-size: 1rem;
    color: #F0EAD6;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A09070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CC0000;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: #CC0000;
    color: #F0EAD6;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover,
.btn-primary:active {
    background: #8B0000;
}

.hidden {
    display: none !important;
}

/* Reservation list */
.res-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.res-item {
    background: #1A1A1A;
    border: 1px solid #3A3A3A;
    border-radius: 6px;
    padding: 0.75rem;
}

.res-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.res-name {
    font-weight: 700;
    color: #F0EAD6;
}

.res-guests {
    font-size: 0.85rem;
    color: #A09070;
}

.res-tags {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.tag.std {
    background: #2A2A2A;
    color: #A09070;
    border: 1px solid #3A3A3A;
}

.tag.veg {
    background: #1B3A1B;
    color: #6DBF6D;
    border: 1px solid #2E5A2E;
}

.tag.gf {
    background: #3A2E00;
    color: #F5C518;
    border: 1px solid #5A4800;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
}

.btn-reset-trigger {
    background: none;
    border: none;
    color: #3A3A3A;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.btn-reset-trigger:hover {
    color: #A09070;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal {
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 10px;
    padding: 1.75rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F0EAD6;
    margin-bottom: 0.35rem;
}

.modal-sub {
    font-size: 0.8rem;
    color: #A09070;
    margin-bottom: 1.25rem;
}

.modal input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: #1A1A1A;
    border: 1.5px solid #3A3A3A;
    border-radius: 6px;
    font-size: 1.5rem;
    text-align: center;
    color: #F0EAD6;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.modal input[type="password"]:focus {
    outline: none;
    border-color: #CC0000;
}

.pin-error {
    font-size: 0.8rem;
    color: #CC0000;
    margin-bottom: 0.75rem;
}

.btn-danger {
    width: 100%;
    padding: 0.875rem;
    background: #8B0000;
    color: #F0EAD6;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #CC0000;
}

/* Mobile adjustments */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.4rem;
    }

    .stat-num {
        font-size: 1.6rem;
    }
}
