/*
Theme Name: Poseidon Child
Template: poseidon
Version: 1.0
*/

/* ========================================
   FOOTER
   ======================================== */
#footer .site-info,
#footer .site-info span,
#footer .site-info .credit-link {
    float: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo */
.custom-logo-link img,
.site-branding img,
img.custom-logo {
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
}

/* ========================================
   CONTENT
   ======================================== */
.entry-content p {
    text-align: justify;
    line-height: 1.7;
}

/* Titluri de pagină mai oficiale */
.entry-title,
.page-title,
.archive-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2d3d;
}

/* ========================================
   DESKTOP
   ======================================== */
@media (min-width: 900px) {

    .primary-navigation > ul {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    .primary-navigation > ul > li {
        float: none !important;
        position: relative;
    }

    .primary-navigation > ul > li > a {
        display: block;
        padding: 12px 16px;
        font-weight: 600;
        letter-spacing: 0.3px;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
        border-radius: 4px;
    }

    /* Dropdown inchis implicit */
    .primary-navigation ul ul {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: #fff;
        border: 1px solid #ddd;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .primary-navigation ul ul li {
        display: block;
        float: none !important;
        width: 100%;
    }

    .primary-navigation ul ul a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
        white-space: normal;
        border-radius: 0;
    }

    .primary-navigation ul ul li:last-child a {
        border-bottom: none;
    }

    .primary-navigation li:hover > ul,
    .primary-navigation li:focus-within > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .primary-navigation ul ul ul {
        top: 0;
        left: 100%;
    }

    /* Hover desktop mai oficial */
    .primary-navigation > ul > li > a:hover,
    .primary-navigation > ul > li > a:focus {
        background: rgba(0, 51, 102, 0.08);
        color: #003366;
    }

    .primary-navigation ul ul a:hover,
    .primary-navigation ul ul a:focus {
        background: rgba(0, 51, 102, 0.05);
        color: #003366;
    }
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 899px) {

    .site-header {
        padding: 12px 0 !important;
    }

    /* Header compact */
    .site-branding {
        display: block;
        position: relative;
        padding-right: 70px;
    }

    .site-title,
    .site-title a {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .custom-logo-link img,
    .site-branding img,
    img.custom-logo {
        max-height: 70px !important;
    }

    /* Ascunde imaginea mare pe mobil */
    #headimg,
    .header-image,
    .custom-header {
        display: none !important;
    }

    /* Buton meniu sus dreapta */
    .menu-toggle,
    .nav-toggle {
        position: absolute !important;
        top: 20px !important;
        right: 15px !important;
        margin: 0 !important;
    }

    .primary-navigation li {
        float: none !important;
        width: 100%;
    }

    .primary-navigation a {
        display: block;
        width: 100%;
        padding: 14px;
        border-bottom: 1px solid #eee;
        font-weight: 600;
    }

    .primary-navigation ul ul {
        padding-left: 15px;
    }

    .entry-content {
        padding-top: 10px;
    }

    .entry-content p {
        text-align: left;
        line-height: 1.75;
    }

    /* Titluri mai curate pe mobil */
    .entry-title,
    .page-title,
    .archive-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
}