/* =====================================================
   8sobh Header Enhancer - Stylesheet
   Version: 1.0.0
   ===================================================== */

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

/* ====== Header Container ====== */
.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;
}

/* ====== Dotted World Map Background ====== */
.e8sobh-header-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 20% 30%, rgba(255, 224, 178, 0.4) 1px, transparent 1px),
        radial-gradient(circle 1px at 50% 50%, rgba(255, 224, 178, 0.3) 1px, transparent 1px),
        radial-gradient(circle 1px at 75% 40%, rgba(255, 224, 178, 0.35) 1px, transparent 1px),
        radial-gradient(circle 1px at 30% 70%, rgba(255, 224, 178, 0.3) 1px, transparent 1px),
        radial-gradient(circle 1px at 80% 75%, rgba(255, 224, 178, 0.4) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 90px 90px, 60px 60px, 80px 80px;
    pointer-events: none;
    opacity: 0.6;
}

/* ====== Soft Central Light Glow ====== */
.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;
}

/* ====== Logo Container ====== */
.e8sobh-logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.e8sobh-logo-container img {
    max-height: 160px;
    width: auto;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

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

/* ====== URL Display ====== */
.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);
}

/* ====== Curved Wave at Bottom ====== */
.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 Bar with Rounded Corners ====== */
.e8sobh-nav-wrapper {
    background: #f5f5f5;
    padding: 8px 12px 8px;
}

.e8sobh-nav {
    background-color: var(--e8sobh-dark);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 8px;
    overflow: hidden;
}

.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;
}

/* ====== Search Button ====== */
.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-search-btn svg {
    width: 20px;
    height: 20px;
}

/* ====== Main Menu ====== */
.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-menu li a::after {
    content: '▾';
    font-size: 10px;
    opacity: 0.7;
}

/* ====== Login Button ====== */
.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-login-btn svg {
    width: 16px;
    height: 16px;
}

/* ====== Mobile Menu Button ====== */
.e8sobh-mobile-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: none;
}

.e8sobh-mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* ====== Mobile Menu ====== */
.e8sobh-mobile-menu {
    display: none;
    background-color: #8B2807;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.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);
}

/* ====== Search Dropdown ====== */
.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);
}

/* ====== Date Bar ====== */
.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;
}

.e8sobh-date-bar svg {
    width: 14px;
    height: 14px;
    color: var(--e8sobh-orange);
    vertical-align: middle;
    margin-left: 6px;
}

/* ====== Responsive - Mobile ====== */
@media (max-width: 991px) {
    .e8sobh-header-wrapper {
        min-height: 220px;
        padding: 40px 20px 60px;
    }

    .e8sobh-logo-container img {
        max-height: 120px;
    }

    .e8sobh-menu {
        display: none;
    }

    .e8sobh-mobile-toggle {
        display: flex;
        align-items: center;
    }

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

    .e8sobh-login-btn span {
        display: none;
    }

    .e8sobh-search-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .e8sobh-header-wrapper {
        min-height: 180px;
        padding: 30px 15px 50px;
    }

    .e8sobh-logo-container img {
        max-height: 90px;
    }

    .e8sobh-site-url::before,
    .e8sobh-site-url::after {
        width: 40px;
    }

    .e8sobh-site-url span {
        font-size: 14px;
    }
}

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

body.e8sobh-active .e8sobh-replacement-header {
    display: block !important;
}

.e8sobh-replacement-header {
    display: none;
}

/* ====== Sticky Header ====== */
.e8sobh-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ====== Breaking News Ticker ====== */
.e8sobh-breaking-news {
    background: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    overflow: hidden;
}

.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;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.e8sobh-breaking-label svg {
    width: 12px;
    height: 12px;
}

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

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

.e8sobh-ticker-content:hover {
    animation-play-state: paused;
}

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

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

/* ====== Print Styles ====== */
@media print {
    .e8sobh-header-wrapper,
    .e8sobh-nav-wrapper,
    .e8sobh-breaking-news,
    .e8sobh-date-bar {
        display: none !important;
    }
}
