/* AWJ Website - Main Stylesheet */
/* Brand Colors: Teal #13a89e | Purple #662d91 */

:root {
    --primary: #13a89e;
    --primary-dark: #0d8a81;
    --accent: #662d91;
    --accent-dark: #4f2270;
    --gradient: linear-gradient(135deg, #13a89e 0%, #662d91 100%);
    --gradient-reverse: linear-gradient(135deg, #662d91 0%, #13a89e 100%);
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --radius: 0.625rem;
    --radius-lg: 1rem;
}

/* ===================== GLOBAL ===================== */
* { box-sizing: border-box; }

body {
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
    color: #111827;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.bg-primary   { background-color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background .2s, transform .1s;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================== HEADER ===================== */
.awj-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 1030;
}

.awj-header .navbar {
    padding: .5rem 0;
    min-height: 72px;
}

.awj-header .nav-link {
    color: #374151;
    font-weight: 500;
    font-size: .875rem;
    padding: .45rem .75rem;
    border-radius: var(--radius);
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.awj-header .nav-link:hover,
.awj-header .nav-link.active {
    color: var(--primary);
    background: rgba(19,168,158,.07);
}

.lang-btn {
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 600;
    min-width: 44px;
}

/* ===================== HERO ===================== */
.awj-hero {
    background: var(--gradient);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.awj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
}

.awj-hero .container { position: relative; z-index: 1; }

.awj-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.awj-hero p {
    font-size: 1.125rem;
    opacity: .9;
    line-height: 1.7;
}

.hero-page {
    padding: 4rem 0;
}
.hero-page h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }

/* ===================== CARDS ===================== */
.awj-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s, border-color .2s, transform .2s;
    overflow: hidden;
}

.awj-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-circle-sm {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(19,168,158,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(19,168,158,.15);
    transform: translateY(-3px);
}

.service-card h3 { font-weight: 700; color: #111827; }
.service-card p { color: var(--text-muted); font-size: .9rem; flex-grow: 1; }

.service-features {
    list-style: none;
    padding: 0;
    margin: .75rem 0 1.25rem;
}
.service-features li {
    font-size: .85rem;
    color: var(--text-muted);
    padding: .2rem 0;
}
.service-features li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
}
[dir="rtl"] .service-features li::before { margin-left: .25rem; }
[dir="ltr"] .service-features li::before { margin-right: .25rem; }

/* ===================== STATS ===================== */
.stats-section { background: var(--gradient); }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; }

/* ===================== VALUES ===================== */
.value-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s;
}
.value-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* ===================== EVENTS ===================== */
.event-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    display: flex; flex-direction: column;
}
.event-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.event-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.event-card-placeholder {
    height: 200px;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.5rem;
}
.event-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex; flex-direction: column;
}
.event-meta { font-size: .8rem; color: var(--text-muted); }

.badge-category {
    background: rgba(19,168,158,.1);
    color: var(--primary);
    border: 1px solid rgba(19,168,158,.3);
    font-size: .75rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: .5rem;
}

/* ===================== TEAM ===================== */
.team-card {
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
}
.team-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient);
    background-clip: padding-box;
    margin-bottom: 1rem;
}
.team-avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem;
    margin-bottom: 1rem;
}
.team-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem;
    margin: 0 .2rem;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.team-social a:hover { opacity: .85; transform: scale(1.1); }

/* ===================== PARTNERS ===================== */
.partner-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.partner-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.partner-logo { max-height: 80px; max-width: 100%; object-fit: contain; }

/* ===================== FORMS ===================== */
.awj-form .form-control,
.awj-form .form-select {
    border-radius: var(--radius);
    border-color: var(--border-color);
    padding: .625rem .875rem;
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
}
.awj-form .form-control:focus,
.awj-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19,168,158,.15);
}
.awj-form label { font-weight: 500; font-size: .875rem; margin-bottom: .35rem; }

/* ===================== FOOTER ===================== */
.awj-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.footer-heading {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: .75rem;
}
.footer-links {
    list-style: none; padding: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact {
    list-style: none; padding: 0;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .6rem;
    font-size: .875rem;
    color: var(--text-muted);
}
.footer-contact i { margin-top: .15rem; flex-shrink: 0; }
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--primary); }

.footer-divider { border-color: var(--border-color); }

.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity .2s, transform .15s;
}
.social-btn:hover { opacity: .85; transform: scale(1.1); color: #fff; }

/* ===================== WHATSAPP WIDGET ===================== */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37,211,102,.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    animation: pulse 2s infinite;
}
.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,.5);
    color: #fff;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 20px rgba(37,211,102,.7); }
}

/* ===================== SECTION HEADERS ===================== */
.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .75rem;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===================== CATEGORY FILTER ===================== */
.category-filter .btn {
    border-radius: 999px;
    font-size: .875rem;
    padding: .4rem 1.25rem;
}
.category-filter .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===================== BREADCRUMB ===================== */
.awj-breadcrumb {
    background: var(--bg-light);
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .85rem;
}
.awj-breadcrumb a { color: var(--primary); text-decoration: none; }

/* ===================== CONSULTATION FORM ===================== */
.consultation-tabs .nav-link {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    margin-bottom: .5rem;
    transition: all .2s;
}
.consultation-tabs .nav-link.active {
    border-color: var(--primary);
    background: rgba(19,168,158,.08);
    color: var(--primary);
}

/* ===================== ADMIN STYLES ===================== */
.admin-sidebar {
    height: 100vh;
    background: #1e293b;
    color: #e2e8f0;
    width: 240px;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    transition: transform .3s;
}

.admin-sidebar .sidebar-logo {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}

.admin-sidebar nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
    padding-bottom: .5rem;
}
.admin-sidebar nav::-webkit-scrollbar { width: 4px; }
.admin-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: .45rem 1rem;
    border-radius: .4rem;
    margin: .05rem .6rem;
    font-size: .82rem;
    display: flex; align-items: center; gap: .55rem;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.admin-sidebar .nav-link i { font-size: .9rem; width: 1.1rem; text-align: center; flex-shrink: 0; }

.sidebar-section-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: .6rem 1rem .2rem;
    margin-top: .2rem;
}
.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,.07);
    margin: .35rem .8rem;
}
.admin-sidebar .sidebar-footer {
    flex-shrink: 0;
    padding: .6rem .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .sidebar-footer .nav-link {
    font-size: .78rem;
    padding: .4rem .75rem;
    margin: .05rem 0;
}

.admin-content {
    margin-inline-start: 240px;
    min-height: 100vh;
    background: #f8fafc;
    transition: margin .3s;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: .875rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}

.admin-main { padding: 1.5rem; }

.admin-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.stat-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-table th { font-size: .8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.admin-table td { vertical-align: middle; font-size: .875rem; }

.badge-status-new { background: #dbeafe; color: #1d4ed8; }
.badge-status-read { background: #dcfce7; color: #15803d; }
.badge-status-responded { background: #d1fae5; color: #065f46; }
.badge-status-archived { background: #f3f4f6; color: #6b7280; }
.badge-status-published { background: #dcfce7; color: #15803d; }
.badge-status-draft { background: #fef9c3; color: #92400e; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .awj-hero { padding: 4rem 0; }
    .admin-sidebar { transform: translateX(-100%); }
    [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-inline-start: 0; }
}
