/* ============================================================
   page.css — الصفحات الداخلية (learn, about, etc.)
   يستورد: variables.css → base.css → common.css → هذا الملف
   ============================================================ */

/* ═══════════════════════════════════════════
   Navbar (نسخة الصفحات الداخلية)
═══════════════════════════════════════════ */
.navbar {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.navbar .nav-link { color: var(--text-muted) !important; font-weight: 500; padding: 0.5rem 1rem !important; transition: color 0.3s; font-size: 0.95rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text-light) !important; }

.navbar .dropdown-menu {
    background: rgba(20, 20, 35, 0.95); backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 16px;
    padding: 12px; min-width: 240px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-top: 15px; transition: all 0.3s ease; animation: fadeInDropdown 0.3s ease;
}
.navbar .dropdown-item {
    color: #e5e7eb; border-radius: 12px; padding: 10px 14px;
    transition: all 0.25s ease; font-weight: 500;
}
.navbar .dropdown-item:hover { background: linear-gradient(135deg, #7C3AED, #A855F7); color: #fff; transform: translateX(-4px); }
@media (min-width: 992px) { .nav-item.dropdown:hover .dropdown-menu { display: block; } }

/* ═══════════════════════════════════════════
   Page Hero
═══════════════════════════════════════════ */
.page-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.page-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(102,126,234,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(118,75,162,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero .breadcrumb            { background: none; padding: 0; margin-bottom: 1.5rem; }
.page-hero .breadcrumb-item a     { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.page-hero .breadcrumb-item.active { color: var(--primary-color); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); content: "‹"; }

/* ═══════════════════════════════════════════
   Content Cards
═══════════════════════════════════════════ */
.content-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; overflow: hidden;
}
.content-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--primary-gradient); opacity: 0; transition: opacity 0.3s;
}
.content-card:hover { transform: translateY(-6px); border-color: rgba(102,126,234,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.content-card:hover::before { opacity: 1; }
.content-card .card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.content-card .card-icon.blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.content-card .card-icon.green  { background: rgba(34,197,94,0.15);   color: #4ade80; }
.content-card .card-icon.purple { background: rgba(168,85,247,0.15);  color: #a855f7; }
.content-card .card-icon.gold   { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.content-card .card-icon.red    { background: rgba(220,38,38,0.15);   color: #f87171; }
.content-card h4 { font-weight: 700; margin-bottom: 0.75rem; }
.content-card p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.content-card .card-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; font-weight: 600; margin-top: 1rem; transition: all 0.3s; }
.content-card .card-link:hover { color: #fff; gap: 0.75rem; }

/* ═══════════════════════════════════════════
   Article Content
═══════════════════════════════════════════ */
.article-content { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 3rem; }
.article-content h2 { color: var(--primary-color); font-weight: 800; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); }
.article-content h3 { color: #ffffff; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-content h4 { color: #e2e8f0; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.article-content p  { color: #cbd5e1; line-height: 2; margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { color: #cbd5e1; padding-right: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: 0.75rem; line-height: 1.8; color: #cbd5e1; }
.article-content strong, .article-content b { color: #f1f5f9; font-weight: 700; }

/* ═══════════════════════════════════════════
   Info Boxes
═══════════════════════════════════════════ */
.info-box          { border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-right: 4px solid; }
.info-box.tip      { background: rgba(34,197,94,0.12);  border-color: #4ade80; }
.info-box.warning  { background: rgba(245,158,11,0.12); border-color: #fbbf24; }
.info-box.danger   { background: rgba(220,38,38,0.12);  border-color: #f87171; }
.info-box.info     { background: rgba(59,130,246,0.12); border-color: #60a5fa; }
.info-box p        { margin: 0; color: #e2e8f0; font-size: 0.95rem; line-height: 1.8; }
.info-box strong, .info-box b { color: #ffffff; font-weight: 700; }

/* ═══════════════════════════════════════════
   Sidebar
═══════════════════════════════════════════ */
.sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h5 { font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); color: #ffffff; }
.sidebar-nav     { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li  { margin-bottom: 0.25rem; }
.sidebar-nav a   { display: block; padding: 0.6rem 1rem; color: #cbd5e1; text-decoration: none; border-radius: 10px; transition: all 0.3s; font-size: 0.9rem; border-right: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(102,126,234,0.15); color: #ffffff; padding-right: 1.25rem; border-right: 3px solid transparent; }
.sidebar-nav a.active { background: rgba(102,126,234,0.25); color: #ffffff; font-weight: 600; padding-right: 1.25rem; border-right: 3px solid var(--primary-color); }

/* ═══════════════════════════════════════════
   Analysis Cards
═══════════════════════════════════════════ */
.analysis-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: all 0.4s ease; }
.analysis-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); border-color: rgba(102,126,234,0.2); }
.analysis-card .card-header-custom { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.analysis-card .card-body   { padding: 1.5rem; }
.analysis-card .pair-name   { font-size: 1.2rem; font-weight: 700; }
.analysis-card .pair-badge  { padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.analysis-card .pair-badge.bullish { background: rgba(34,197,94,0.15);  color: #4ade80; }
.analysis-card .pair-badge.bearish { background: rgba(220,38,38,0.15);  color: #f87171; }
.analysis-card .pair-badge.neutral { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* ═══════════════════════════════════════════
   Price Level + Date Badge + Divider + CTA
═══════════════════════════════════════════ */
.price-level         { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.price-level:last-child { border-bottom: none; }
.price-level .label  { color: var(--text-muted); }
.price-level .value  { font-weight: 700; font-family: 'Courier New', monospace; }

.date-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(102,126,234,0.1); color: var(--primary-color); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }

.section-divider { height: 1px; background: linear-gradient(to left, transparent, var(--border-color), transparent); margin: 3rem 0; }

.cta-banner { background: var(--primary-gradient); border-radius: 20px; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.cta-banner h3 { font-weight: 800; margin-bottom: 1rem; }
.cta-banner p  { opacity: 0.9; margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════
   استجابة الشاشات
═══════════════════════════════════════════ */
@media (max-width: 992px) {
    .page-hero     { padding: 120px 0 60px; }
    .article-content { padding: 2rem; }
    .sidebar       { position: static; margin-top: 2rem; }
}
@media (max-width: 576px) {
    .content-card, .analysis-card, .article-content, .sidebar-card { padding: 1.25rem; }
    .page-hero     { padding: 100px 0 50px; }
    .btn-gradient  { padding: 0.5rem 1.5rem; font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════
   جداول المقارنة (sessions-table) — مشتركة بين صفحات learn
═══════════════════════════════════════════ */
/* ✅ Sessions table */
.sessions-table {
    border-collapse: collapse;
    margin: 20px auto;
    width: 100%;
}
.sessions-table th,
.sessions-table td {
    border: 1px solid #374151;
    text-align: center;
    min-width: 25px;
    height: 25px;
    font-size: 13px;
     color: #e2e8f0;
    background: rgba(255,255,000,0.04);
    padding: 0.1rem 0.2rem;
    vertical-align: middle;
}

.sessions-title {
    background-color: #cfd8c3 !important;
    font-weight: bold;
    font-size: 16px;
    color: #000 !important;
}
.sessions-gmt {
    background-color: #d9e2cf !important;
    font-weight: bold;
    color: #000 !important;
}
.sh-blue   { background: #9fc5e8 !important; color: #000 !important; }
.sh-orange { background: #f6b200 !important; color: #000 !important; }
.sh-red    { background: #e06666 !important; color: #000 !important; }
.s-london  { background: #e6b8b7 !important; font-weight: bold; color: #000 !important; }
.s-newyork { background: #b6d7a8 !important; font-weight: bold; color: #000 !important; }
.s-sydney  { background: #b4c6e7 !important; font-weight: bold; color: #000 !important; }
.s-tokyo   { background: #ead9b9 !important; font-weight: bold; color: #000 !important; }
.s-empty   { background: #1a1a2e !important; }
@media (max-width: 768px) {
    .sessions-table th, .sessions-table td { font-size: 10px; min-width: 15px; height: 20px; }
}

/* إصلاح specificity — عناوين الجدول */
.sessions-table tr.sessions-title th,
.sessions-table tr.sessions-title td,
.sessions-table .sessions-title th,
.sessions-table .sessions-title td {
    background-color: #3a4a5c !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
}
.sessions-table tr.sessions-gmt th,
.sessions-table tr.sessions-gmt td,
.sessions-table .sessions-gmt th,
.sessions-table .sessions-gmt td {
    background-color: #2d3748 !important;
    color: #cbd5e1 !important;
    font-weight: 600;
}