/*
Theme Name:  Alésia 191 — Portail Résidents
Theme URI:   https://alesia191.fr
Description: Portail résidents privé pour la Résidence Alésia 191, Paris 14ème.
Version:     1.0.0
Author:      Résidence Alésia 191
Text Domain: alesia191
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
========================================================= */
:root {
    --stone:        #f5f0e8;
    --cream:        #fdfaf5;
    --navy:         #1a2a4a;
    --navy-mid:     #2c3e6b;
    --navy-light:   #3d5490;
    --gold:         #b8973a;
    --gold-light:   #d4b05a;
    --rust:         #c0522a;
    --text:         #2a2a2a;
    --text-muted:   #6b6b6b;
    --border:       #ddd8cc;
    --white:        #ffffff;
    --shadow-sm:    0 2px 8px rgba(26,42,74,0.08);
    --shadow-md:    0 4px 24px rgba(26,42,74,0.12);
    --shadow-lg:    0 8px 48px rgba(26,42,74,0.18);
    --radius:       8px;
    --radius-lg:    16px;
    --font:         Arial, Helvetica, sans-serif;
    --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: var(--font);
    font-size: 14px;
}

/* =========================================================
   LAYOUT UTILITIES
========================================================= */
.site-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-wrap {
    padding: 48px 0;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; }
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    gap: 0;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: 32px;
    flex-shrink: 0;
}

.nav-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.nav-brand-text { line-height: 1.2; }

.nav-brand-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
    display: block;
}

.nav-brand-sub {
    font-size: 10px;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover,
.nav-link.current-menu-item,
.nav-link.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.nav-link.current-menu-item { color: var(--gold-light); }

/* User menu */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition);
    position: relative;
}

.nav-user-btn:hover { background: rgba(255,255,255,0.18); }

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    overflow: hidden;
    z-index: 200;
}

.nav-user-btn.open .user-dropdown { display: block; }

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
}

.user-dropdown a:hover { background: var(--stone); }

.user-dropdown .dd-divider { height: 1px; background: var(--border); }

.user-dropdown .logout { color: var(--rust); }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy-mid);
        padding: 12px;
        gap: 4px;
        z-index: 99;
    }
    .nav-toggle { display: flex; }
    #site-header { position: relative; }
}

/* =========================================================
   BANNER
========================================================= */
#site-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 40%, #3d5490 70%, #1a2a4a 100%);
    background-size: cover;
    background-position: center;
}

.banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,42,74,0.85) 0%, rgba(26,42,74,0.45) 55%, rgba(26,42,74,0.2) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(184,151,58,0.2);
    border: 1px solid rgba(184,151,58,0.4);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.banner-greeting {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.banner-greeting .firstname { color: var(--gold-light); }

.banner-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    #site-banner { height: 240px; }
    .banner-greeting { font-size: 26px; }
    .banner-content { padding: 0 20px; }
}

/* =========================================================
   QUICK ACCESS GRID
========================================================= */
#quick-access {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) { .qa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qa-grid { grid-template-columns: 1fr; } }

.qa-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--cream);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.qa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(184,151,58,0.06) 100%);
}

.qa-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.qa-icon.blue   { background: #e8eef8; }
.qa-icon.gold   { background: #f5f0d8; }
.qa-icon.green  { background: #e8f5ee; }
.qa-icon.rust   { background: #f8ede8; }
.qa-icon.purple { background: #eee8f5; }
.qa-icon.teal   { background: #e8f5f4; }

.qa-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    position: relative;
}

.qa-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
}

.qa-count {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--navy);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.qa-count.new { background: var(--rust); }

/* =========================================================
   CARDS
========================================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-action {
    font-size: 12.5px;
    color: var(--navy-light);
    text-decoration: none;
    cursor: pointer;
}

.card-action:hover { text-decoration: underline; }

/* =========================================================
   ANNOUNCEMENT ITEMS
========================================================= */
.annonce-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
}

.annonce-item:last-child { border-bottom: none; }
.annonce-item:hover { background: var(--stone); }

.annonce-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.annonce-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-urgent  { background: #fee2e2; color: #dc2626; }
.badge-event   { background: #d1fae5; color: #065f46; }
.badge-travaux { background: #fef3c7; color: #92400e; }
.badge-pending { background: #fef3c7; color: #92400e; }

.annonce-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.annonce-preview {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.annonce-footer {
    display: flex;
    gap: 14px;
    margin-top: 7px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* Full card (archive/single) */
.annonce-full-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.annonce-full-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.annonce-card-top {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    align-items: flex-start;
}

.annonce-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.annonce-author-block { flex: 1; }

.annonce-author {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
}

.annonce-date {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.annonce-body-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
    padding: 0 20px 20px;
}

.moderation-bar {
    background: #fef3c7;
    border-top: 1px solid #f59e0b;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #92400e;
}

/* =========================================================
   PAGE HEADER (inner pages)
========================================================= */
.page-header-block {
    background: var(--navy);
    padding: 36px 0;
    margin-bottom: 36px;
}

.page-header-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.page-header-block p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

/* =========================================================
   TOOLBAR / FILTERS
========================================================= */
.page-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white); }

.btn-secondary { background: var(--stone); color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--navy); }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); }

.btn-danger { background: var(--rust); color: var(--white); }
.btn-danger:hover { background: #a0421f; color: var(--white); }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* =========================================================
   FORMS
========================================================= */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-label .required { color: var(--rust); }

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(61,84,144,0.1);
}

.form-input.error { border-color: var(--rust); }

.form-input[readonly] { background: var(--stone); color: var(--text-muted); }

.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

.form-error {
    font-size: 11.5px;
    color: var(--rust);
    margin-top: 5px;
    display: none;
}

.form-error.visible { display: block; }

.form-row {
    display: grid;
    gap: 14px;
}

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 560px) {
    .form-row.cols-2,
    .form-row.cols-3 { grid-template-columns: 1fr; }
}

select.form-input {
    appearance: none;
    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='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-input { resize: vertical; min-height: 110px; }

/* =========================================================
   ALERTS
========================================================= */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
}

.alert-warning { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }
.alert-success { background: #d1fae5; border: 1px solid #10b981; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #dc2626; color: #991b1b; }
.alert-info    { background: #dbeafe; border: 1px solid #3b82f6; color: #1e3a8a; }

/* =========================================================
   APARTMENT VALIDATOR
========================================================= */
.apt-grid {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.apt-field { flex: 1; }

.apt-separator {
    font-size: 20px;
    font-weight: 300;
    color: var(--border);
    padding-bottom: 10px;
    flex-shrink: 0;
}

.apt-preview {
    background: var(--stone);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.apt-preview.valid   { border-color: #10b981; background: #f0fdf4; color: #065f46; }
.apt-preview.invalid { border-color: var(--rust); background: #fef2f2; color: var(--rust); }

/* =========================================================
   WORKS / TRAVAUX
========================================================= */
.travaux-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

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

.travaux-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.status-en-cours { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.status-planifie  { background: #3b82f6; box-shadow: 0 0 0 4px #dbeafe; }
.status-termine   { background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }

.travaux-info { flex: 1; min-width: 0; }

.travaux-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.travaux-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.fill-orange { background: linear-gradient(90deg, #f59e0b, #d97706); }
.fill-blue   { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.fill-green  { background: linear-gradient(90deg, #10b981, #059669); }

.travaux-right { text-align: right; flex-shrink: 0; }

.travaux-pct {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.travaux-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat counters */
.stat-counters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================
   DOCUMENTS
========================================================= */
.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--stone); }

.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.doc-info { flex: 1; min-width: 0; }

.doc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.doc-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
    line-height: 1.5;
}

.doc-meta { font-size: 11.5px; color: var(--text-muted); }

/* =========================================================
   INFO SIDEBAR
========================================================= */
.info-row {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-row:last-child { border-bottom: none; }

.info-icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; padding-top: 1px; }

.info-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value { font-size: 13.5px; color: var(--navy); font-weight: 500; }
.info-sub   { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Urgency list */
.urgency-list { list-style: none; padding: 0; }

.urgency-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.urgency-list li:last-child { border-bottom: none; }

.urgency-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.urgency-name { font-weight: 600; color: var(--navy); flex: 1; }
.urgency-num  { color: var(--rust); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }

/* =========================================================
   CALENDAR
========================================================= */
.cal-event-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.cal-event-item:last-child { border-bottom: none; }
.cal-event-item:hover { background: var(--stone); }

.cal-date-block {
    text-align: center;
    width: 52px;
    flex-shrink: 0;
}

.cal-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.cal-month {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.cal-event-info { flex: 1; }

.cal-event-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.cal-event-meta { font-size: 12.5px; color: var(--text-muted); }

/* =========================================================
   PILLS & BADGES
========================================================= */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pill-yellow { background: #fef3c7; color: #92400e; }
.pill-green  { background: #d1fae5; color: #065f46; }
.pill-blue   { background: #dbeafe; color: #1d4ed8; }
.pill-red    { background: #fee2e2; color: #991b1b; }

/* =========================================================
   MODAL
========================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,42,74,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.modal-header {
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.modal-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.modal-sub   { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.modal-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover { background: var(--stone); }

.modal-body   { padding: 22px 26px; }
.modal-footer { padding: 0 26px 22px; }

.modal-footer .btn-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* =========================================================
   LOGIN / REGISTER SCREEN
========================================================= */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 50%, #1a2a4a 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.auth-logo-icon {
    width: 52px;
    height: 52px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.auth-logo-title { font-size: 16px; font-weight: 800; color: var(--navy); }
.auth-logo-sub   { font-size: 11px; color: var(--text-muted); letter-spacing: 0.3px; margin-top: 2px; }

.auth-tabs {
    display: flex;
    background: var(--stone);
    border-radius: var(--radius);
    padding: 3px;
    gap: 3px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}

.auth-tab:hover { color: var(--navy); }
.auth-tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.auth-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.auth-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* =========================================================
   FOOTER
========================================================= */
#site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0 0;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-col a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.footer-nav { list-style: none; padding: 0; }

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--gold-light); }

.emergency-list { list-style: none; padding: 0; }

.emergency-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.emergency-list .e-name { font-size: 11px; color: rgba(255,255,255,0.5); }
.emergency-list .e-num  { font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: 1px; }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   WP ADMIN BAR COMPENSATION
========================================================= */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* =========================================================
   MISC / UTILITIES
========================================================= */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.owner-note {
    background: var(--stone);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.owner-note-icon { font-size: 28px; flex-shrink: 0; }
.owner-note-title { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.owner-note-body  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
