/* ===============================================
   AMMAN ROYAL SWORDS LIONS CLUB — MAIN STYLESHEET
   =============================================== */

:root {
    --lions-purple: #4B2D8A;
    --lions-purple-dark: #3a2070;
    --lions-purple-light: #f3eeff;
    --lions-gold: #F5A623;
    --lions-gold-dark: #d4891c;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Roboto', system-ui, sans-serif; color: var(--text-dark); background: #fff; }
body.font-arabic { font-family: 'Cairo', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }

/* ── COLOURS ── */
.text-purple { color: var(--lions-purple) !important; }
.text-gold   { color: var(--lions-gold) !important; }
.bg-purple   { background-color: var(--lions-purple) !important; }
.bg-gold     { background-color: var(--lions-gold) !important; }
.bg-purple-light { background-color: var(--lions-purple-light) !important; }

/* ── BUTTONS ── */
.btn-purple {
    background: var(--lions-purple);
    color: #fff;
    border: 2px solid var(--lions-purple);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-purple:hover { background: var(--lions-purple-dark); border-color: var(--lions-purple-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(75,45,138,0.3); }
.btn-gold {
    background: var(--lions-gold);
    color: var(--text-dark);
    border: 2px solid var(--lions-gold);
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-gold:hover { background: var(--lions-gold-dark); border-color: var(--lions-gold-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-purple {
    border: 2px solid var(--lions-purple);
    color: var(--lions-purple);
    border-radius: 8px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}
.btn-outline-purple:hover { background: var(--lions-purple); color: #fff; }

/* ── TOP BAR ── */
.topbar {
    background: var(--lions-purple-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 6px 0;
}
.topbar-right { gap: 12px; }
.lang-form { display: flex; align-items: center; gap: 6px; }
.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active-lang { color: var(--lions-gold); }
.topbar-user, .topbar-btn {
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
    transition: var(--transition);
}
.topbar-user:hover, .topbar-btn:hover { color: var(--lions-gold); }

/* ── NAVBAR ── */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.brand-name { font-size: 1rem; font-weight: 800; color: var(--lions-purple); line-height: 1.2; }
.brand-sub  { font-size: 0.72rem; color: var(--lions-gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.lions-logo-wrapper svg { filter: drop-shadow(0 2px 6px rgba(75,45,138,0.25)); }
.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lions-gold);
    box-shadow: 0 2px 8px rgba(75,45,138,0.3);
    transition: var(--transition);
}
.navbar-logo:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(75,45,138,0.4); }
.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
    padding: 6px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--lions-purple) !important; background: var(--lions-purple-light); }
.admin-link { color: var(--lions-purple) !important; background: var(--lions-purple-light); }
.admin-link:hover { background: var(--lions-purple) !important; color: #fff !important; }

/* ── HERO SECTION ── */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--lions-purple) 0%, #2d1a5e 40%, #1a0f3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 80%, rgba(245,166,35,0.15) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(75,45,138,0.3) 0%, transparent 50%);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 2; padding: 80px 20px 40px; }
.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,0.2);
    border: 1px solid rgba(245,166,35,0.4);
    color: var(--lions-gold);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-title-accent { color: var(--lions-gold); }
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 8px; }
.hero-slogan { color: rgba(255,255,255,0.6); font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 32px; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} 60%{transform:translateY(-4px)} }

/* ── STATS SECTION ── */
.stats-section { background: var(--lions-purple); }
.stat-card {
    padding: 32px 20px;
    text-align: center;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,0.05); }
.stat-icon { font-size: 1.5rem; color: var(--lions-gold); margin-bottom: 8px; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ── SECTION HELPERS ── */
.section-tag {
    display: inline-block;
    background: var(--lions-gold);
    color: var(--text-dark);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }

/* ── ABOUT / CLUB INFO ── */
.club-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.club-info-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--lions-purple-light); border-radius: 10px; }
.club-info-item i { font-size: 1.3rem; width: 24px; text-align: center; }

/* Lions Info Card */
.lions-info-card {
    background: linear-gradient(135deg, var(--lions-purple) 0%, var(--lions-purple-dark) 100%);
    border-radius: 16px;
    padding: 28px;
    color: #fff;
}
.lions-info-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.lions-info-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lions-fact { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 16px; text-align: center; }
.lions-fact-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--lions-gold); }
.lions-fact-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ── CAUSES ── */
.cause-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--lions-purple); }
.cause-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--lions-purple-light); }
.cause-icon i { font-size: 1.6rem; }
.cause-card h5 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.cause-card p { font-size: 0.88rem; line-height: 1.6; }
.cause-link { font-size: 0.85rem; font-weight: 600; }

/* ── ACTIVITY CARDS ── */
.activity-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    color: var(--text-dark);
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-card-full { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.activity-card-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-img-wrapper { position: relative; height: 200px; overflow: hidden; }
.activity-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.activity-card:hover .activity-img, .activity-card-full:hover .activity-img { transform: scale(1.05); }
.activity-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--lions-purple-light), #e8deff);
    display: flex; align-items: center; justify-content: center;
}
.activity-cause-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--lions-purple);
    color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.activity-featured-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--lions-gold); color: var(--text-dark);
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
}
.activity-cause-badge-hero { display: inline-block; background: var(--lions-gold); color: #000; padding: 4px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 700; margin-bottom: 12px; }
.activity-body { padding: 20px; }
.activity-date { font-size: 0.8rem; color: var(--lions-purple); font-weight: 600; margin-bottom: 6px; }
.activity-location { margin-bottom: 4px; }
.activity-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; line-height: 1.4; color: var(--text-dark); }
.activity-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.activity-stats-mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.activity-stats-mini span { display: flex; align-items: center; gap: 4px; }

/* Activity detail */
.activity-detail-img { max-height: 480px; object-fit: cover; }
.photo-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.7; transition: var(--transition); border: 2px solid transparent; }
.photo-thumb:hover { opacity: 1; border-color: var(--lions-purple); }

/* Stats cards */
.activity-stats-card, .activity-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.activity-stats-card h5, .activity-info-card h5 { font-weight: 700; margin-bottom: 16px; color: var(--lions-purple); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item-sm { background: var(--lions-purple-light); border-radius: 10px; padding: 16px 12px; text-align: center; }
.stat-item-sm i { font-size: 1.2rem; margin-bottom: 6px; display: block; }
.stat-value-sm { font-size: 1.1rem; font-weight: 800; color: var(--lions-purple); }
.stat-label-sm { font-size: 0.72rem; color: var(--text-muted); }
.activity-info-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.activity-info-list i { width: 18px; flex-shrink: 0; margin-top: 2px; }

/* Filters */
.activities-filter { background: #f8f9fa; border-radius: 16px; padding: 24px; }
.cause-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cause-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
    color: var(--text-muted);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}
.cause-pill:hover, .cause-pill.active {
    background: var(--lions-purple);
    color: #fff;
    border-color: var(--lions-purple);
}

/* ── MEMBERS ── */
.member-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    color: var(--text-dark);
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border: 2px solid var(--lions-purple); }
.member-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; background: var(--lions-purple-light); display: flex; align-items: center; justify-content: center; }
.member-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-size: 1.4rem; font-weight: 800; color: var(--lions-purple); }
.member-info h6 { font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.member-role-badge { display: inline-block; background: var(--lions-purple); color: #fff; font-size: 0.68rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; margin-bottom: 8px; }
.member-meta { display: flex; justify-content: center; gap: 12px; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }

/* Member mini card (home page) */
.member-mini-card { display: block; text-align: center; padding: 16px 8px; border-radius: 12px; transition: var(--transition); }
.member-mini-card:hover { background: var(--lions-purple-light); transform: translateY(-3px); }
.member-mini-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; overflow: hidden; background: var(--lions-purple-light); display: flex; align-items: center; justify-content: center; border: 3px solid var(--lions-purple); }
.member-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-mini-name { font-weight: 700; font-size: 0.8rem; color: var(--text-dark); line-height: 1.3; }
.member-mini-role { font-size: 0.7rem; color: var(--lions-purple); font-weight: 600; }

/* Profile */
.profile-card { background: #fff; border-radius: 16px; padding: 32px 24px; box-shadow: var(--shadow); }
.profile-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 0.9rem; text-align: start; }
.profile-avatar-lg, .profile-avatar-xl { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--lions-purple-light); display: flex; align-items: center; justify-content: center; border: 4px solid var(--lions-purple); }
.profile-avatar-xl { width: 160px; height: 160px; }
.profile-avatar-img-lg, .profile-avatar-img-xl { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-initials-lg, .avatar-initials-xl { font-size: 2.5rem; font-weight: 800; color: var(--lions-purple); }
.avatar-initials-xl { font-size: 3.5rem; }
.member-detail-info { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 0.9rem; }

/* Avatar sm (admin table) */
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--lions-purple-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-sm-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials-sm { font-size: 0.75rem; font-weight: 700; color: var(--lions-purple); }

/* ── PAGE HERO ── */
.page-hero {
    background: linear-gradient(135deg, var(--lions-purple) 0%, #2d1a5e 100%);
    color: #fff;
    padding: 60px 0 50px;
}
.page-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,0.8); }

/* ── AUTH ── */
.auth-section { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 60px 0; background: var(--lions-purple-light); }
.auth-card { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); }
.auth-header h2 { font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.auth-footer { padding-top: 16px; }

/* ── ADMIN ── */
.admin-stat-card { background: #fff; border-radius: 16px; padding: 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bg-purple-soft { background: var(--lions-purple-light); }

/* ── FOOTER ── */
.site-footer { background: #0f0a1e; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-brand p { font-size: 0.85rem; }
.footer-heading { font-weight: 700; color: var(--lions-gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--lions-gold); padding-left: 4px; }
.footer-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-info li { font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.footer-info i { width: 16px; color: var(--lions-gold); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 40px 0 24px; }
.footer-bottom { padding-bottom: 24px; }
.lions-acronym { font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.lions-letter { color: var(--lions-gold); font-weight: 800; }

/* ── UPLOAD PREVIEW ── */
.photo-preview-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-preview-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 2px solid var(--lions-purple); }

/* ── EMPTY STATE ── */
.empty-state { padding: 60px 20px; }

/* ── PAGINATION ── */
.pagination .page-link { border-color: var(--lions-purple); color: var(--lions-purple); }
.pagination .page-item.active .page-link { background: var(--lions-purple); border-color: var(--lions-purple); }

/* ── LIONS ACRONYM FOOTER ── */

/* ── RTL ADJUSTMENTS ── */
[dir="rtl"] .nav-link { }
[dir="rtl"] .activity-cause-badge { left: auto; right: 12px; }
[dir="rtl"] .activity-featured-badge { right: auto; left: 12px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .stat-card { border-right: none; border-left: 1px solid rgba(255,255,255,0.1); }
[dir="rtl"] .stat-card:last-child { border-left: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-section { min-height: 75vh; }
    .club-info-grid { grid-template-columns: 1fr; }
    .lions-info-body { grid-template-columns: 1fr 1fr; }
    .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .topbar-left { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── BADGE OVERRIDE ── */
.badge.bg-purple { background-color: var(--lions-purple) !important; }
