/* ============================================================
   HUMRAZ FAMILY APP — Additional Component Styles
   public/css/components.css
   (included by style.css via @import or separately in header)
   ============================================================ */

/* ---- Profile Cards ---- */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,122,110,.15);
}

.profile-photo-locked {
    position: relative;
    display: inline-block;
}
.profile-photo-locked .lock-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .7rem;
}
.profile-photo-locked .lock-overlay i { font-size: 1.2rem; }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(26,122,110,.1);
    color: var(--teal);
    border: 1px solid rgba(26,122,110,.3);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
.status-pending  { background: #FFF8E1; color: #E65100; }
.status-accepted,.status-confirmed { background: var(--teal-light); color: var(--teal); }
.status-declined,.status-cancelled { background: #FFEDED; color: var(--red-soft); }
.status-completed { background: #E8F5E9; color: #2E7D32; }

/* ---- Manzimyoor Badge ---- */
.manzimyoor-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--gold-light);
    color: var(--gold-dark);
    border: 1px solid rgba(200,151,43,.3);
    border-radius: 20px;
    padding: .25rem .7rem;
    font-size: .72rem;
    font-weight: 600;
}

/* ---- Condition Cards (Mental Health) ---- */
.condition-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
    display: block;
    color: var(--text-dark);
}
.condition-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.condition-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

/* ---- Mood Widget ---- */
.mood-widget {
    background: var(--teal-light);
    border: 1px solid rgba(26,122,110,.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.mood-btn {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}
.mood-btn:hover, .mood-btn.active {
    transform: scale(1.2);
    border-color: var(--teal);
    background: var(--teal-light);
}

/* ---- Crisis Banner ---- */
.crisis-banner {
    background: linear-gradient(135deg, #a32929, #c94040);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #fff;
}
.crisis-number { font-size: 1.3rem; font-weight: 800; }

/* ---- Timeline Steps ---- */
.timeline-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    position: relative;
}
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--teal-light);
    z-index: 0;
}
.timeline-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem 2rem;
}
.timeline-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(26,122,110,.3);
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: box-shadow .25s;
}
.testimonial-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.testimonial-quote {
    font-size: 4rem;
    color: var(--teal);
    opacity: .25;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-text { font-size: .9rem; line-height: 1.7; color: var(--text-muted); }
.testimonial-stars i { color: var(--gold); font-size: .85rem; }

/* ---- Step Progress ---- */
.step-progress {
    display: flex;
    gap: .5rem;
}
.step-item {
    flex: 1;
    text-align: center;
    padding: .75rem .5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid var(--border);
    opacity: .5;
    transition: all .3s;
}
.step-item.active {
    opacity: 1;
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal);
    font-weight: 700;
}
.step-item.completed {
    opacity: 1;
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    font-weight: 700;
}
.step-label { font-size: .8rem; }

/* ---- Profile Avatar ---- */
.profile-avatar {
    background: var(--teal-light);
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Admin Layout ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1A1A2E, #16213E);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform .3s;
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-brand .brand-name { font-weight: 800; font-size: 1rem; }
.admin-sidebar-brand .brand-tag { font-size: .7rem; opacity: .6; }
.admin-nav-section {
    padding: .75rem 1.25rem .4rem;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .5;
    font-weight: 700;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: background .2s, color .2s;
    font-size: .9rem;
}
.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(26,122,110,.25);
    color: var(--teal);
}
.admin-nav-link i { font-size: 1rem; flex-shrink: 0; }
.admin-main { flex: 1; margin-left: 250px; min-height: 100vh; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-content { padding: 1.5rem; }
.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.admin-stat-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ---- RTL Adjustments ---- */
[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
[dir="rtl"] .admin-main { margin-left: 0; margin-right: 250px; }
[dir="rtl"] .timeline-steps::before { left: 12.5%; right: 12.5%; }

/* ---- Responsive Admin ---- */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
    [dir="rtl"] .admin-sidebar.open { transform: translateX(0); }
    [dir="rtl"] .admin-main { margin-right: 0; }
}

@media (max-width: 576px) {
    .timeline-steps::before { display: none; }
    .timeline-step { min-width: 45%; }
}

/* ---- Section Styles ---- */
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.section-title-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1.1rem; color: var(--teal); display: none; }
[data-lang="ur"] .section-title-ur { display: block; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 4px; margin: .75rem auto 1rem; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ---- Hero ---- */
.home-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0F3460 50%, var(--teal) 100%);
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}
.home-hero-content { position: relative; z-index: 1; }
.home-hero-tagline { font-size: clamp(2.2rem,6vw,4rem); font-weight: 900; color: #fff; line-height: 1.1; }
.home-hero-tagline-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1.8rem; color: var(--gold); display: none; margin-bottom: .5rem; }
[data-lang="ur"] .home-hero-tagline-ur { display: block; }
.home-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.82); line-height: 1.7; max-width: 540px; margin-top: 1rem; }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    padding: 3rem 0 2.5rem;
    color: #fff;
}
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .25rem; }
.hero-subtitle-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1.1rem; color: var(--gold); display: none; }
[data-lang="ur"] .hero-subtitle-ur { display: block; }
.page-hero .breadcrumb { margin-top: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.95); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- Feature Card ---- */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
    color: var(--text-dark);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(26,122,110,.15); }

/* ---- Feature Icons ---- */
.feature-icon {
    width: 68px; height: 68px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}
.feature-icon-teal   { background: var(--teal-light); color: var(--teal); }
.feature-icon-gold   { background: var(--gold-light); color: var(--gold-dark); }
.feature-icon-purple { background: var(--purple-light); color: var(--purple); }
.feature-icon-red    { background: #FFEDED; color: var(--red-soft); }
.feature-icon-blue   { background: #E8F4FD; color: #1a6fa8; }

/* ---- Buttons ---- */
.btn-teal { background: var(--teal); color: #fff; border: 2px solid var(--teal); }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-teal { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold); color: var(--text-dark); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--text-dark); }

/* ---- Card ---- */
.card-humraz { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 4px rgba(0,0,0,.04); }

/* ---- Form ---- */
.required-star { color: var(--red-soft); font-size: .85rem; }

/* ---- Badges ---- */
.bg-teal-light { background: var(--teal-light) !important; }
.bg-gold-light { background: var(--gold-light) !important; }
.bg-purple-light { background: var(--purple-light) !important; }
.text-teal { color: var(--teal) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-dark { color: var(--gold-dark) !important; }
.text-purple { color: var(--purple) !important; }
.bg-teal { background: var(--teal) !important; color: #fff !important; }
.bg-purple { background: var(--purple) !important; color: #fff !important; }
.bg-gold { background: var(--gold) !important; }
.text-gold-dark { color: var(--gold-dark) !important; }
.bg-purple-light { background: var(--purple-light) !important; }
.bg-teal { background: var(--teal) !important; }
