/* ------------------------------------------------------------
   Ollato Eduversity - Header CSS
   File: assets/css/includes/header.css

   Purpose:
   - Style the top header section
   - Left side: phone and email
   - Right side: language switcher and social media icons
   - No logo
   - Bootstrap-compatible layout
   - Clean, simple and professional typography

   Related PHP file:
   includes/header.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Header Base
------------------------------------------------------------ */

.site-header {
    position: relative;
    z-index: 999;
    width: 100%;
    color: #ffffff;
    background-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(15, 35, 65, 0.1);
}

.header-top {
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #1f4f8f 0%,
        #2764a8 100%
    );
}

.header-top .container {
    position: relative;
    z-index: 2;
}


/* ------------------------------------------------------------
   Subtle Background Decoration
------------------------------------------------------------ */

.header-top::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.header-top::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -95px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}


/* ------------------------------------------------------------
   Bootstrap Layout Alignment
------------------------------------------------------------ */

.site-header .row {
    min-height: 50px;
    align-items: center;
}

.site-header .col-12,
.site-header .col-lg-6 {
    display: flex;
    align-items: center;
}

.site-header .col-12:first-child,
.site-header .col-lg-6:first-child {
    justify-content: flex-start;
}

.site-header .col-12:last-child,
.site-header .col-lg-6:last-child {
    justify-content: flex-end;
}


/* ------------------------------------------------------------
   Contact Area
------------------------------------------------------------ */

.header-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.header-contact-link:hover,
.header-contact-link:focus {
    color: #ffffff !important;
    opacity: 0.85;
}

.header-contact-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    border-radius: 6px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
}

.header-icon i {
    font-size: 13px;
    line-height: 1;
}

.header-contact-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

.header-contact-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 400;
}

.header-contact-text strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}


/* ------------------------------------------------------------
   Right Side Wrapper
------------------------------------------------------------ */

.header-language-switcher,
.header-social {
    display: inline-flex;
    align-items: center;
}

.header-language-switcher {
    gap: 8px;
}

.header-language-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ------------------------------------------------------------
   Language Switcher
------------------------------------------------------------ */

.header-language-switcher .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-language-switcher .btn-group > .btn {
    margin: 0 !important;
    border-radius: 50px !important;
}

.header-language-switcher .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.header-language-switcher .btn-outline-light {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);
}

.header-language-switcher .btn-outline-light:hover,
.header-language-switcher .btn-outline-light:focus {
    color: #1f4f8f;
    border-color: #ffffff;
    background-color: #ffffff;
}

.header-language-switcher .btn-light {
    color: #1f4f8f !important;
    border-color: #ffffff;
    background-color: #ffffff;
    font-weight: 500;
}


/* ------------------------------------------------------------
   Social Media Icons
------------------------------------------------------------ */

.header-social {
    gap: 6px;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.13);
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.header-social-link i {
    font-size: 14px;
    line-height: 1;
}

.header-social-link:hover,
.header-social-link:focus {
    color: #ffffff !important;
    background-color: #f39c12;
}

.header-social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   Desktop Layout
------------------------------------------------------------ */

@media (min-width: 992px) {
    .header-top .row {
        display: flex;
        flex-wrap: nowrap;
    }

    .header-top .col-lg-6 {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
    }

    .header-top .col-lg-6:first-child > div {
        justify-content: flex-start !important;
    }

    .header-top .col-lg-6:last-child > div {
        justify-content: flex-end !important;
    }

    .header-top .d-flex {
        flex-wrap: nowrap !important;
    }
}


/* ------------------------------------------------------------
   Tablet Layout
------------------------------------------------------------ */

@media (max-width: 991px) {
    .header-top {
        padding: 7px 0;
    }

    .site-header .row {
        min-height: auto;
        row-gap: 8px;
    }

    .site-header .col-12,
    .site-header .col-lg-6 {
        justify-content: center !important;
    }

    .header-contact-link {
        font-size: 13px;
    }

    .header-contact-label {
        font-size: 12px;
    }

    .header-contact-text strong {
        font-size: 13px;
    }

    .header-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .header-language-switcher .btn {
        min-width: 40px;
        min-height: 29px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .header-social-link {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }
}


/* ------------------------------------------------------------
   Mobile Layout
------------------------------------------------------------ */

@media (max-width: 767px) {
    .header-top {
        padding: 8px 0;
    }

    .header-top .d-flex {
        justify-content: center !important;
    }

    .header-contact-label,
    .header-language-title {
        display: none;
    }

    .header-contact-link {
        font-size: 12px;
    }

    .header-contact-text {
        gap: 0;
    }

    .header-contact-text strong {
        font-size: 12px;
        font-weight: 400;
    }

    .header-social {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
}


/* ------------------------------------------------------------
   Small Mobile Layout
------------------------------------------------------------ */

@media (max-width: 575px) {
    .header-top .d-flex {
        width: 100%;
        gap: 7px !important;
    }

    .header-contact-link {
        justify-content: center;
    }

    .header-language-switcher {
        width: 100%;
        justify-content: center;
    }

    .header-language-switcher .btn-group {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .header-language-switcher .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
    }

    .header-social {
        width: 100%;
        justify-content: center;
    }
}


/* ------------------------------------------------------------
   Print
------------------------------------------------------------ */

@media print {
    .site-header {
        display: none !important;
    }
}