/* =====================================================
   پلاگین ویژه هشت صبح - Stylesheet v1.4.0
   ===================================================== */

:root {
    --e8sobh-orange: #FF8C00;
    --e8sobh-dark: #BF360C;
    --e8sobh-light: #FFD89B;
    --e8sobh-accent: #FFB347;
}

body.e8sobh-active,
body.e8sobh-active * {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, sans-serif !important;
}

.e8sobh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ====== Header ====== */
.e8sobh-header-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to left, var(--e8sobh-light) 0%, var(--e8sobh-orange) 35%, var(--e8sobh-dark) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
}

/* ====== World Map SVG (real SVG file - pixel perfect) ====== */
/* Note: width and opacity are dynamically set via PHP inline CSS */
.e8sobh-world-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1100px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

/* Make sure paths inside use white */
.e8sobh-world-map path {
    fill: #ffffff !important;
}

.e8sobh-header-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-width: 90%;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18) 0%, rgba(255, 245, 220, 0.08) 30%, transparent 60%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}

.e8sobh-logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.e8sobh-logo-container > a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    text-decoration: none;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.e8sobh-logo-container img {
    height: auto !important;
    width: auto !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    display: block !important;
    background: transparent !important;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.e8sobh-logo-container a:hover img {
    transform: scale(1.05);
}

.e8sobh-text-logo {
    color: #ffffff !important;
    font-size: 48px;
    font-weight: 900;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
    text-align: center;
    width: 100%;
    background: transparent !important;
}

.e8sobh-site-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    direction: ltr;
}

.e8sobh-site-url::before,
.e8sobh-site-url::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.e8sobh-site-url span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.e8sobh-curved-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
    z-index: 5;
}

.e8sobh-curved-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ====== Navigation ====== */
.e8sobh-nav-wrapper {
    background: #f5f5f5;
    padding: 8px 12px 8px;
}

.e8sobh-nav {
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%) !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 8px;
    overflow: hidden;
}

/* Override Jannah's native Main Nav if it's visible */
body.e8sobh-active #main-nav,
body.e8sobh-active .main-nav,
body.e8sobh-active .main-nav.header-nav {
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%) !important;
    background-color: transparent !important;
}

.e8sobh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.e8sobh-search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.e8sobh-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.e8sobh-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.e8sobh-menu li a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.e8sobh-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.e8sobh-login-btn {
    background: #ffffff;
    color: var(--e8sobh-dark);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.e8sobh-login-btn:hover {
    background: #FFF3E0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.e8sobh-mobile-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    display: none;
}

.e8sobh-mobile-menu {
    display: none;
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
}

.e8sobh-mobile-menu.active {
    display: block;
}

.e8sobh-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.e8sobh-mobile-menu li a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.e8sobh-mobile-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.e8sobh-search-dropdown {
    background: #ffffff;
    border-top: 4px solid var(--e8sobh-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 16px 0;
}

.e8sobh-search-dropdown.active {
    display: block;
}

.e8sobh-search-dropdown form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.e8sobh-search-dropdown input {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.e8sobh-search-dropdown input:focus {
    border-color: var(--e8sobh-orange);
}

.e8sobh-search-dropdown button {
    background: var(--e8sobh-orange);
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.e8sobh-search-dropdown button:hover {
    background-color: var(--e8sobh-dark);
}

.e8sobh-date-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 12px;
    padding: 6px 16px;
}

.e8sobh-date-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .e8sobh-header-wrapper {
        min-height: 220px;
        padding: 40px 20px 60px;
    }
    .e8sobh-menu {
        display: none;
    }
    .e8sobh-mobile-toggle {
        display: flex;
        align-items: center;
    }
    .e8sobh-mobile-menu.active {
        display: block;
    }
    .e8sobh-login-btn span,
    .e8sobh-search-btn span {
        display: none;
    }
}

/* ====== Override Theme ====== */
body.e8sobh-active #theme-header { display: none !important; }
body.e8sobh-active .e8sobh-replacement-header { display: block !important; }
.e8sobh-replacement-header { display: none; }

/* ====== Breaking News ====== */
.e8sobh-breaking-news {
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%) !important;
    color: #ffffff !important;
    font-size: 13px;
    padding: 8px 0;
    overflow: hidden;
}

/* Also override Jannah's native breaking news bar if plugin header is disabled */
body.e8sobh-active #top-nav,
body.e8sobh-active .top-nav,
body.e8sobh-active .breaking-news,
body.e8sobh-active .topbar-wrapper {
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%) !important;
    background-color: #FF9D2E !important;
}

.e8sobh-breaking-news-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.e8sobh-breaking-label {
    background: #dc2626;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.e8sobh-ticker {
    overflow: hidden;
    flex: 1;
}

.e8sobh-ticker-content {
    white-space: nowrap;
    animation: e8sobh-marquee 40s linear infinite;
}

.e8sobh-ticker-content span {
    display: inline-block;
    padding: 0 32px;
}

@keyframes e8sobh-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ====== Adexo Ad Placements ====== */
.e8sobh-adexo-sticky-top { position: sticky; top: 0; z-index: 9999; }
.e8sobh-adexo-sticky-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; text-align: center; }
.e8sobh-adexo-float { position: fixed; bottom: 10px; left: 10px; z-index: 9998; }
.e8sobh-adexo-native-box { margin: 20px 0; text-align: center; }
.e8sobh-adexo-before-content { margin-bottom: 20px; text-align: center; }
.e8sobh-adexo-middle-content { margin: 20px 0; text-align: center; }
.e8sobh-adexo-after-content { margin-top: 20px; text-align: center; }

/* ===================================================
   FOOTER STYLES - v1.4.0 (Simplified - No Social)
   =================================================== */

.e8sobh-footer {
    background: linear-gradient(to left, #FFD89B 0%, #FF9D2E 35%, #E65100 75%, #BF360C 100%);
    color: #ffffff;
    margin-top: 40px;
    display: block !important;
}

.e8sobh-footer-top {
    border-bottom: 1px solid #1f2937;
    padding: 48px 0;
}

.e8sobh-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
}

/* Footer Logo - keep original colors (NO invert) */
.e8sobh-footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    filter: none !important;
    display: block;
}

.e8sobh-footer-logo h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
}

.e8sobh-footer-about {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: right;
}

.e8sobh-footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    border-right: 4px solid #ffffff;
    padding-right: 12px;
}

.e8sobh-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.e8sobh-footer-links li {
    margin-bottom: 8px;
}

.e8sobh-footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.e8sobh-footer-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: background 0.2s;
}

.e8sobh-footer-links a:hover {
    color: #ffffff;
}

.e8sobh-footer-links a:hover::before {
    background: #ffffff;
}

.e8sobh-footer-copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 0;
}

.e8sobh-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.e8sobh-copyright-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.e8sobh-copyright-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.e8sobh-copyright-links a:hover {
    color: #ffffff;
}

/* Footer Responsive */
@media (max-width: 991px) {
    .e8sobh-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .e8sobh-footer-grid {
        grid-template-columns: 1fr;
    }
    .e8sobh-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    .e8sobh-copyright-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media print {
    .e8sobh-header-wrapper,
    .e8sobh-nav-wrapper,
    .e8sobh-breaking-news,
    .e8sobh-date-bar,
    .e8sobh-footer,
    .e8sobh-corner-ad,
    .e8sobh-inline-ad {
        display: none !important;
    }
}

/* ===================================================
   END OF STYLES - No Jannah theme overrides (v1.9.5 state)
   =================================================== */
