/* ══════════════════════════════════════
   Les Huches-Coucou | Périgny
   Stylesheet
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary: #2D6A4F;
    --primary-light: #40916C;
    --primary-lighter: #52B788;
    --primary-bg: #D8F3DC;
    --primary-dark: #1B4332;
    --accent: #D4A373;
    --accent-dark: #B07D4F;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --surface: #F8F9FA;
    --surface-alt: #F1F3F5;
    --border: #DEE2E6;
    --border-light: #E9ECEF;
    --text: #212529;
    --text-secondary: #6C757D;
    --text-light: #ADB5BD;
    --danger: #DC3545;
    --danger-light: #FFF5F5;
    --success: #28A745;
    --success-light: #F0FFF4;
    --warning: #FFC107;
    --info: #17A2B8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Layout ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    min-height: calc(100vh - var(--nav-height) - 300px);
    padding-top: var(--nav-height);
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-logo-icon {
    font-size: 1.6rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.nav-link-admin {
    color: var(--accent-dark) !important;
}

.nav-link-admin:hover,
.nav-link-admin.active {
    background: #FFF3E0 !important;
    color: var(--accent-dark) !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #1B4332 0%, #2D6A4F 35%, #40916C 60%, #52B788 80%, #95D5B2 100%);
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(1deg); }
    66% { transform: translate(-20px, 10px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-lighter);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ══════════════════════════════════════
   PAGE HEADER (for sub-pages)
   ══════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, #1B4332, #2D6A4F, #40916C);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: calc(var(--nav-height) + 60px);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(45,106,79,0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(45,106,79,0.4);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #C82333;
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* ── Feature cards (homepage) ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.feature-card p {
    font-size: 0.92rem;
}

/* ── Event cards ── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.event-card.event-past {
    opacity: 0.65;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 20px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-year {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.event-content {
    padding: 20px 24px;
    flex: 1;
}

.event-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ── Member cards ── */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.member-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.member-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(45,106,79,0.2);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.member-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.member-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Announcement cards ── */
.announcements-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    padding: 28px 32px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-lighter);
    transition: var(--transition);
}

.announcement-card:hover {
    box-shadow: var(--shadow);
}

.announcement-date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.announcement-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.announcement-card p {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.announcement-author {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary);
}

.badge-secondary {
    background: var(--surface-alt);
    color: var(--text-light);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 4px rgba(82,183,136,0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

/* ── Contact form ── */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-info-text h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-info-text p {
    font-size: 0.9rem;
}

.contact-form-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* ══════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    padding: 24px;
}

.login-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 8px;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.login-card .login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.login-card .form-group {
    text-align: left;
}

.login-card .btn {
    width: 100%;
    margin-top: 8px;
}

.login-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
}

.login-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col .footer-contact-item i {
    color: var(--primary-lighter);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════
   ADMIN DASHBOARD
   ══════════════════════════════════════ */

.admin-page {
    padding-top: var(--nav-height);
    min-height: 100vh;
    background: var(--surface);
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.admin-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user-name {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}

.admin-tabs-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--surface);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 32px 0;
}

.tab-content.active {
    display: block;
}

.admin-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-section-header h2 {
    font-size: 1.3rem;
}

/* Admin form */
.admin-form-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-form-container h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Admin list items */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.admin-item:hover {
    box-shadow: var(--shadow-sm);
}

.admin-item-info {
    flex: 1;
    min-width: 0;
}

.admin-item-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.admin-item-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
}

.admin-item-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Admin message item */
.admin-message {
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.admin-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.admin-message-from {
    font-weight: 600;
}

.admin-message-email {
    color: var(--primary);
    font-size: 0.88rem;
}

.admin-message-date {
    font-size: 0.82rem;
    color: var(--text-light);
}

.admin-message-subject {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.admin-message-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Admin stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ══════════════════════════════════════
   NOTIFICATION
   ══════════════════════════════════════ */

.notification {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.notification-show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success);
    color: var(--white);
}

.notification-error {
    background: var(--danger);
    color: var(--white);
}

.notification-info {
    background: var(--info);
    color: var(--white);
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 8px;
    opacity: 0.8;
}

.notification button:hover {
    opacity: 1;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════ */

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 1rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .event-card {
        flex-direction: column;
    }

    .event-date-badge {
        flex-direction: row;
        gap: 8px;
        padding: 14px 20px;
        min-width: auto;
    }

    .event-day {
        font-size: 1.3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Admin responsive */
    .admin-header-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .admin-item {
        flex-direction: column;
        gap: 12px;
    }

    .admin-item-actions {
        width: 100%;
    }

    .admin-item-actions .btn {
        flex: 1;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-tabs-inner {
        gap: 0;
    }

    .tab-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .contact-form-card {
        padding: 24px;
    }

    .login-card {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-form-container {
        padding: 20px;
    }
}

/* ══════════════════ QUILL EDITOR ══════════════════ */

.ql-toolbar.ql-snow {
    border-radius: 10px 10px 0 0;
    border-color: #DEE2E6;
    background: #F8F9FA;
}

.ql-container.ql-snow {
    border-radius: 0 0 10px 10px;
    border-color: #DEE2E6;
    min-height: 180px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

/* ══════════════════ UPLOAD INLINE ══════════════════ */

.upload-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.upload-inline .form-input {
    flex: 1;
}

.upload-preview {
    margin-top: 10px;
}

.upload-preview img {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #DEE2E6;
    object-fit: cover;
}

/* ══════════════════ USER ROLE BADGE ══════════════════ */

.user-role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role-badge.role-admin {
    background: #FFE8CC;
    color: #E67700;
}

.user-role-badge.role-editor {
    background: #D3F9D8;
    color: #2B8A3E;
}

.user-role-badge.role-viewer {
    background: #E3FAFC;
    color: #1098AD;
}

/* ══════════════════ RICH CONTENT ══════════════════ */

.rich-content h1, .rich-content h2, .rich-content h3 {
    margin: 12px 0 6px;
    line-height: 1.3;
}

.rich-content p {
    margin: 0 0 8px;
}

.rich-content ul, .rich-content ol {
    margin: 0 0 8px;
    padding-left: 24px;
}

.rich-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.rich-content a {
    color: #2D6A4F;
    text-decoration: underline;
}

.rich-content blockquote {
    border-left: 3px solid #2D6A4F;
    margin: 8px 0;
    padding: 8px 16px;
    background: #F1F3F5;
    border-radius: 0 8px 8px 0;
}

/* ══════════════════ ANALYTICS ══════════════════ */

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.analytics-stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #E9ECEF;
}

.analytics-stat-icon {
    font-size: 1.4rem;
    color: #2D6A4F;
    margin-bottom: 8px;
}

.analytics-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1B4332;
}

.analytics-stat-label {
    font-size: 0.85rem;
    color: #6C757D;
    margin-top: 4px;
}

/* Bar chart */
.analytics-chart {
    padding: 16px 0;
    overflow-x: auto;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 200px;
    padding-bottom: 28px;
    position: relative;
}

.chart-bar-col {
    flex: 1;
    min-width: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: default;
}

.chart-bar-value {
    font-size: 0.65rem;
    color: #6C757D;
    margin-bottom: 3px;
    min-height: 14px;
}

.chart-bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, #2D6A4F, #52B788);
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease, opacity 0.2s;
    min-height: 2px;
}

.chart-bar-col:hover .chart-bar {
    opacity: 0.8;
}

.chart-bar-label {
    font-size: 0.6rem;
    color: #868E96;
    margin-top: 6px;
    white-space: nowrap;
    position: absolute;
    bottom: -22px;
}

.analytics-chart-hours .chart-bars {
    height: 140px;
}

/* Top pages */
.top-page-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F3F5;
}

.top-page-row:last-child {
    border-bottom: none;
}

.top-page-info {
    min-width: 140px;
}

.top-page-name {
    font-weight: 600;
    color: #1B4332;
    display: block;
}

.top-page-path {
    font-size: 0.8rem;
    color: #868E96;
}

.top-page-bar-bg {
    flex: 1;
    background: #F1F3F5;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.top-page-bar {
    height: 100%;
    background: linear-gradient(90deg, #2D6A4F, #52B788);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.top-page-count {
    font-weight: 700;
    color: #2D6A4F;
    min-width: 40px;
    text-align: right;
}

@media (max-width: 768px) {
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .chart-bar-label {
        display: none;
    }
    .chart-bars {
        padding-bottom: 4px;
    }
}
