/*
Theme Name: Mozda Child
Theme URI: http://mozda.coolify.theupliftco.com
Template: mozda
Author: Your Name
Author URI: http://example.com
Description: Mozda child theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mozda-child
*/

/* Variables */
:root {
    --white: #fff;
    --gold: #edbf33;
    --dark-blue: #181c29;
}

/* Navbar Styles */
.navbar-container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.navbar-container.scrolled {
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    z-index: 2;
    padding-left: 1rem;
    width: 200px; /* Fixed width to help with centering */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-right: 1rem;
}

.brand-name {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    padding-right: 2rem;
    border-right: 1px solid white;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    padding: 0.5rem 0;
    transform: translateX(-50%);
    z-index: 1;
    margin: 0;
    padding: 0;
    left: 25%;
    justify-content: center;
    width: auto;
}

.nav-link {
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transform: scaleX(1);
    transform-origin: bottom;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(0);
}

/* Right Section */
.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    width: 200px; /* Fixed width to match logo section */
    justify-content: flex-end;
    padding-right: 1rem;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    color: var(--white);
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.icon-button:active {
    transform: translateY(0px);
}

/* Hamburger Icon */
.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger-icon.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Search Container */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #001838;
    overflow: hidden;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: height 0.4s ease-in-out;
    backdrop-filter: blur(10px);
}

.search-container.active {
    height: 100vh;
}

.search-form {
    width: 60%;
    max-width: 800px;
    position: relative;
    margin-top: 120px;
}

.search-input {
    width: 100%;
    font-size: 3.5rem;
    padding: 1.2rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    outline: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
    font-size: 3.2rem;
    opacity: 0.4;
}

.search-input:focus {
    border-bottom: 2px solid var(--gold);
}

.close-button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 65;
    padding: 0.5rem;
}

.close-button:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-content {
        padding: 1rem;
    }

    .logo {
        height: 36px;
    }

    .brand-name {
        display: none;
    }

    .nav-links {
        display: none;
    }
}

/* WordPress Admin Bar Adjustments */
.admin-bar .navbar-container {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar-container {
        top: 46px;
    }
}

#content {
    padding-top: 80px;
}

.admin-bar #content {
    padding-top: 112px;
}

@media screen and (max-width: 782px) {
    .admin-bar #content {
        padding-top: 126px;
    }
}
