/*
Theme Name: Kidan
Theme URI: https://kidan.com
Author: Kidan Team
Author URI: https://kidan.com
Description: A modern, minimal WordPress theme built for Elementor with a stunning header design and flexible customization options.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kidan
Tags: elementor, custom-header, custom-menu, modern, minimal

Kidan Theme, Copyright 2024
Kidan is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
    --kidan-primary-bg: #00002C;
    --kidan-primary-blue: #0B39E0;
    --kidan-accent-blue: #0D41FF;
    --kidan-white: #FFFFFF;
    --kidan-white-75: rgba(255, 255, 255, 0.75);
    --kidan-white-50: rgba(255, 255, 255, 0.5);
    --kidan-font-primary: 'Gantari', sans-serif;
    --kidan-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Global Resets
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--kidan-font-primary);
    background: var(--kidan-white);
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--kidan-transition);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.kidan-header {
    background: var(--kidan-primary-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: var(--kidan-transition);
}

.kidan-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.kidan-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Mobile Menu Toggle */
.kidan-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.kidan-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--kidan-white);
    margin: 5px 0;
    transition: var(--kidan-transition);
}

.kidan-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.kidan-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.kidan-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo */
.kidan-logo {
    flex-shrink: 0;
}

.kidan-logo a {
    display: inline-block;
    line-height: 0;
}

.kidan-logo img {
    height: 32px;
    width: auto;
    transition: var(--kidan-transition);
}

.kidan-logo img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Navigation */
.kidan-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.kidan-nav-menu > li {
    position: relative;
}

.kidan-nav-menu > li > a {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--kidan-white-75);
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.02em;
    transition: var(--kidan-transition);
    padding: 8px 0;
}

.kidan-nav-menu > li > a:hover {
    color: var(--kidan-white);
}

/* Menu Item Number */
.kidan-menu-number {
    font-size: 9px;
    line-height: 160%;
    color: var(--kidan-white-75);
    opacity: 0.6;
    transition: var(--kidan-transition);
}

.kidan-nav-menu > li > a:hover .kidan-menu-number {
    opacity: 1;
    color: var(--kidan-accent-blue);
}

/* Changelog Badge */
.kidan-changelog-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kidan-changelog-link {
    color: var(--kidan-white-75);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
    transition: var(--kidan-transition);
}

.kidan-changelog-link:hover {
    color: var(--kidan-white);
}

.kidan-version-badge {
    background: var(--kidan-accent-blue);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 500;
    color: var(--kidan-white-75);
    line-height: 160%;
    letter-spacing: -0.02em;
    transition: var(--kidan-transition);
}

.kidan-changelog-link:hover .kidan-version-badge {
    background: var(--kidan-primary-blue);
    color: var(--kidan-white);
    transform: translateY(-2px);
}

/* Header CTA */
.kidan-header-cta {
    flex-shrink: 0;
}

.kidan-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    background: var(--kidan-primary-blue);
    color: var(--kidan-white);
    font-size: 15px;
    font-weight: 400;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--kidan-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.kidan-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.kidan-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.kidan-cta-button:hover {
    background: #0D41FF;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 57, 224, 0.4);
}

.kidan-cta-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .kidan-nav-menu {
        gap: 32px;
    }

    .kidan-header-container {
        padding: 0 30px;
    }
}

@media screen and (max-width: 992px) {
    .kidan-menu-toggle {
        display: block;
    }

    .kidan-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--kidan-primary-bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .kidan-navigation.active {
        right: 0;
    }

    .kidan-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .kidan-nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 16px;
    }

    .kidan-changelog-wrapper {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .kidan-header-cta {
        margin-top: 20px;
        width: 100%;
    }

    .kidan-cta-button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .kidan-header-container {
        padding: 0 20px;
    }

    .kidan-logo img {
        height: 28px;
    }

    .kidan-navigation {
        width: 100%;
        right: -100%;
    }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.elementor-kit-default {
    font-family: var(--kidan-font-primary);
}

/* Remove default Elementor header spacing */
.elementor-location-header {
    margin-bottom: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}