/*
Theme Name: ClubTechPZ Child
Description: Child theme for ClubTechPZ based on Astra.
Author: ClubTechPZ
Template: astra
Version: 1.0.0
Text Domain: clubtechpz-child
*/


/* =====================================
   CLUBTECH SIDEBAR
===================================== */

:root {
    --clubtech-sidebar-width: 84px;
    --clubtech-bg: #0b1020;
    --clubtech-bg-light: #121a32;
    --clubtech-blue: #1769e8;
    --clubtech-blue-light: #2583ff;
    --clubtech-text: #aebbd6;
}


/* Sidebar */

.clubtech-sidebar {
    position: fixed;

    left: 0;
    top: 0;

    width: var(--clubtech-sidebar-width);
    height: 100vh;

    background: linear-gradient(
        180deg,
        #0a0f1e 0%,
        #10172a 100%
    );

    z-index: 9998;

    border-right: 1px solid rgba(255,255,255,0.06);

    box-shadow: 5px 0 20px rgba(0,0,0,0.20);

    overflow: visible;
}


/* Ако сме логнати в WordPress */

body.admin-bar .clubtech-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}


/* =====================================
   LOGO
===================================== */

.clubtech-sidebar-logo {

    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.clubtech-sidebar-logo a {

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}


.clubtech-logo-image {

    width: 54px;
    height: 54px;

    object-fit: contain;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 0 2px rgba(255,255,255,0.20),
        0 5px 15px rgba(0,0,0,0.25);
}


.clubtech-logo-fallback {

    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--clubtech-blue);

    color: white;

    font-weight: 700;
}


/* =====================================
   MENU
===================================== */

.clubtech-sidebar-nav {
    padding-top: 12px;
}


.clubtech-side-menu {

    list-style: none;

    padding: 0;
    margin: 0;
}


.clubtech-side-menu > li {

    position: relative;

    margin: 5px 8px;
}


.clubtech-side-menu > li > a {

    min-height: 68px;

    padding: 8px 4px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    text-decoration: none;

    color: var(--clubtech-text);

    border-radius: 10px;

    transition:
        background 0.20s ease,
        color 0.20s ease,
        transform 0.20s ease;
}


.clubtech-side-menu > li > a:hover {

    color: white;

    background: rgba(37,131,255,0.16);
}


.clubtech-nav-icon {

    width: auto !important;
    height: auto !important;

    font-size: 25px !important;

    line-height: 1 !important;
}


.clubtech-nav-label {

    max-width: 70px;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.15;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 0.2px;
}


/* Active item */

.clubtech-side-menu > .current-menu-item > a,
.clubtech-side-menu > .current-menu-parent > a,
.clubtech-side-menu > .current-menu-ancestor > a,
.clubtech-side-menu > .current_page_item > a {

    background: linear-gradient(
        135deg,
        var(--clubtech-blue),
        var(--clubtech-blue-light)
    );

    color: white;

    box-shadow:
        0 6px 16px rgba(23,105,232,0.30);
}


/* =====================================
   SUBMENUS
===================================== */

.clubtech-side-menu .sub-menu {

    position: absolute;

    left: calc(100% + 8px);
    top: 0;

    width: 220px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #11182b;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


.clubtech-side-menu li:hover > .sub-menu,
.clubtech-side-menu li:focus-within > .sub-menu {

    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


.clubtech-side-menu .sub-menu li {

    margin: 0;
}


.clubtech-side-menu .sub-menu a {

    display: block;

    padding: 10px 12px;

    color: #c8d3e8;

    font-size: 14px;

    text-decoration: none;

    border-radius: 7px;

    transition: background .2s ease;
}


.clubtech-side-menu .sub-menu a:hover {

    color: white;

    background: rgba(37,131,255,0.16);
}


/* =====================================
   SHIFT WEBSITE CONTENT
===================================== */

/*
 * Засега НЕ крием оригиналния header.
 * Първо проверяваме sidebar менюто.
 */

@media (min-width: 901px) {

    #page {

        margin-left: var(--clubtech-sidebar-width);

        width: calc(
            100% - var(--clubtech-sidebar-width)
        );

    }

}


/* =====================================
   MOBILE BUTTON
===================================== */

.clubtech-menu-toggle {

    display: none;

    position: fixed;

    left: 14px;
    top: 14px;

    width: 48px;
    height: 48px;

    border: 0;

    border-radius: 12px;

    background: #10182d;

    color: white;

    cursor: pointer;

    z-index: 10000;

    box-shadow: 0 6px 18px rgba(0,0,0,.30);
}


.clubtech-menu-toggle .dashicons {

    font-size: 25px;

    width: 25px;
    height: 25px;
}


.clubtech-menu-overlay {

    display: none;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 900px) {

    #page {

        margin-left: 0;

        width: 100%;
    }


    .clubtech-sidebar {

        width: 280px;

        transform: translateX(-100%);

        transition: transform .25s ease;

        overflow-y: auto;
    }


    body.clubtech-menu-open .clubtech-sidebar {

        transform: translateX(0);
    }


    .clubtech-menu-toggle {

        display: flex;

        align-items: center;
        justify-content: center;
    }


    .clubtech-side-menu > li > a {

        min-height: auto;

        flex-direction: row;

        justify-content: flex-start;

        padding: 14px;

        gap: 14px;
    }


    .clubtech-nav-label {

        max-width: none;

        font-size: 14px;

        text-align: left;

        text-transform: none;
    }


    .clubtech-side-menu .sub-menu {

        position: static;

        width: auto;

        opacity: 1;
        visibility: visible;

        transform: none;

        margin: 3px 8px 8px 45px;

        box-shadow: none;
    }


    .clubtech-menu-overlay {

        position: fixed;

        inset: 0;

        background: rgba(0,0,0,.55);

        z-index: 9997;
    }


    body.clubtech-menu-open .clubtech-menu-overlay {

        display: block;
    }

}


@media (max-width: 782px) {

    body.admin-bar .clubtech-sidebar {

        top: 46px;

        height: calc(100vh - 46px);
    }


    body.admin-bar .clubtech-menu-toggle {

        top: 60px;
    }

}

/* =====================================
   REMOVE OLD ASTRA HEADER
===================================== */

#masthead,
.site-header,
.ast-primary-header-bar {
    display: none !important;
}

/* Премахва празното място след стария header */
.site-content,
#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Основното съдържание да започва веднага */
#page {
    min-height: 100vh;
}

/* Desktop */
@media (min-width: 901px) {

    #page {
        margin-left: var(--clubtech-sidebar-width);
        width: calc(100% - var(--clubtech-sidebar-width));
    }

}

/* Mobile */
@media (max-width: 900px) {

    #page {
        margin-left: 0;
        width: 100%;
    }

}
/* По-голямо лого в sidebar */

.clubtech-sidebar-logo {
    height: 100px;
}

.clubtech-logo-image {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    border-radius: 50%;
}
.clubtech-side-menu > li {
    margin: 6px 8px;
}

.clubtech-side-menu > li > a {
    min-height: 66px;
    border-radius: 12px;
}

.clubtech-side-menu > .current-menu-item > a,
.clubtech-side-menu > .current-menu-parent > a,
.clubtech-side-menu > .current-menu-ancestor > a,
.clubtech-side-menu > .current_page_item > a {
    background: linear-gradient(
        135deg,
        #1769e8,
        #2583ff
    );

    box-shadow:
        0 6px 18px rgba(23,105,232,0.35);
}
.clubtech-nav-icon {
    font-size: 26px !important;
    color: #b9cdf7;
}

.clubtech-side-menu > li > a:hover .clubtech-nav-icon,
.clubtech-side-menu > .current-menu-item > a .clubtech-nav-icon {
    color: #ffffff;
}
/* =====================================
   FULL WIDTH WEBSITE
===================================== */

/* Desktop */
@media (min-width: 901px) {

    /* Целият сайт използва мястото след sidebar-а */
    #page {
        margin-left: var(--clubtech-sidebar-width);
        width: calc(100% - var(--clubtech-sidebar-width));
        max-width: none !important;
    }

    #content,
    .site-content {
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Astra container */
    .ast-container,
    .site-content > .ast-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Основното съдържание */
    .site-main,
    #primary,
    .content-area {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Elementor - старите Section контейнери */
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Elementor - новите Container елементи */
    .e-con.e-con-boxed > .e-con-inner {
        max-width: 100% !important;
        width: 100% !important;
    }
}


/* Mobile */
@media (max-width: 900px) {

    #page,
    #content,
    .site-content,
    .ast-container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

}

/* =====================================
   CLUBTECH MODERN ICONS
===================================== */

.clubtech-nav-icon {
    width: 30px !important;
    height: 30px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #abc8ff;
}

.clubtech-nav-icon i {
    font-size: 25px;
    line-height: 1;

    transition:
        color .2s ease,
        transform .2s ease;
}

.clubtech-side-menu > li > a:hover
.clubtech-nav-icon {
    color: #ffffff;
}

.clubtech-side-menu > li > a:hover
.clubtech-nav-icon i {
    transform: scale(1.10);
}

.clubtech-side-menu >
.current-menu-item > a
.clubtech-nav-icon,

.clubtech-side-menu >
.current_page_item > a
.clubtech-nav-icon,

.clubtech-side-menu >
.current-menu-parent > a
.clubtech-nav-icon {
    color: #ffffff;
}