/*
Theme Name: Omouma Royal Maternal Theme
Theme URI: https://omouma.almostakbal24.ma/
Author: Omouma Team
Description: Official WordPress Theme for Omouma - Maternal Portal, Pregnancy Calculator, Full Sidebar, Navigation Bar & AdSense Integration
Version: 1.2.0
Text Domain: omouma-theme
*/

:root {
    --primary-pink: #ec4899;
    --primary-dark-pink: #be185d;
    --bg-rose: #fff1f2;
    --border-rose: #fbcfe8;
    --text-rose: #831843;
    --primary-blue: #0284c7;
    --primary-dark-blue: #0369a1;
    --bg-sky: #f0f9ff;
    --border-sky: #bae6fd;
    --text-sky: #0c4a6e;
    --surface-white: #ffffff;
    --slate-text: #334155;
    --slate-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: #faf7f8;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #fecdd3;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main-bar {
    padding: 12px 20px;
    border-bottom: 1px solid #fdf2f8;
}

.header-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
    flex-shrink: 0;
}

.logo-text-box .site-title {
    font-size: 21px;
    font-weight: 900;
    color: #9d174d;
    line-height: 1.2;
    margin: 0;
}

.logo-text-box .site-tagline {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin: 2px 0 0 0;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #ec4899;
    background: #fff0f5;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #fbcfe8;
    text-decoration: none;
    transition: all 0.2s;
}

.live-status-pill:hover {
    background: #fdf2f8;
    transform: translateY(-1px);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- NAVIGATION BAR --- */
.main-navigation {
    background: #ffffff;
    border-top: 1px solid #fce7f3;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 800;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #be185d;
    background: #fdf2f8;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(236,72,153,0.25);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: #fff0f5;
    border: 1px solid #fbcfe8;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    color: #be185d;
    font-weight: 800;
    font-family: inherit;
}

.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #be185d;
    border-radius: 2px;
    margin: 3px 0;
}

/* --- TWO-COLUMN LAYOUT WITH SIDEBAR --- */
.layout-container {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 16px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.main-content-col {
    min-width: 0; /* Prevents grid blowout */
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1.5px solid #fecdd3;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.widget-ad-label {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ADS UNITS --- */
.ad-slot-wrapper {
    margin: 16px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ARTICLES CARDS --- */
.article-card {
    background: #ffffff;
    border: 2px solid #fce7f3;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236,72,153,0.08);
}

.article-card h2 {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 12px;
}

.article-card h2 a {
    color: #9d174d;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h2 a:hover {
    color: #ec4899;
}

.article-card p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.85;
}

/* --- FOOTER --- */
.site-footer {
    background: #ffffff;
    border-top: 2px solid #fecdd3;
    padding: 32px 20px;
    margin-top: 60px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9d174d;
    text-decoration: none;
    font-weight: 800;
    font-size: 14.5px;
    transition: color 0.2s;
}

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

.footer-disclaimer {
    max-width: 780px;
    margin: 14px auto 0 auto;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-col {
        margin-top: 20px;
    }
    .sticky-ad-widget {
        position: static !important;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
        border-top: 1px solid #fce7f3;
    }
    .nav-menu.is-active {
        display: flex;
    }
    .nav-container {
        flex-wrap: wrap;
        padding: 8px 16px;
    }
    .nav-action-wrap {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo-wrap {
        flex-direction: column;
        text-align: center;
    }
}
