/*!
Theme Name: TeleBot Theme
Theme URI: https://telebot.systems
Author: HMS Digital Solutions
Description: Modern AI Voice & Chat Assistant Theme
Version: 2.0
*/

/* ============================================
   GLOBAL VARIABLES & RESET
   ============================================ */
:root {
    --header-height: 80px;
    --container-max-width: 1600px;
    --navy-darker: #060b1a;
    --navy-dark: #0a1128;
    --cyan-primary: #06b6d4;
    --cyan-light: #22d3ee;
    --purple-primary: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--navy-darker);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

#page,
.site-content {
    padding: 0;
    margin: 0;
}

/* ============================================
   HEADER - FIXED FOR ALL PAGES
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: var(--header-height);
}

.header-container {
    width: 100%;
    height: 100%;
}

.header-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
    z-index: 10;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: var(--cyan-primary);
}

/* Dashboard Button */
.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--cyan-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-dashboard:hover {
    background: var(--cyan-light);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-dashboard svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.625rem;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 11, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.625rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 1.25rem 0;
    font-size: 1.125rem;
}

.mobile-nav-menu a:hover {
    color: var(--cyan-primary);
}

.mobile-dashboard-btn {
    display: inline-flex;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--cyan-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    margin-top: auto;
}

/* Header Spacing - IMPORTANT! */
.site-header + #page,
.site-header + .hero-section,
body.page .site-content,
body.home .site-content {
    padding-top: var(--header-height);
}

/* For pages with hero sections */
.hero-section {
    padding: 60px 10px 80px 10px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .header-inner {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-inner {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .btn-dashboard span {
        display: none;
    }
    
    .btn-dashboard {
        padding: 0.625rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

.back-to-top, #back-to-top{
    left: 2rem !important;
    right: auto !important;
}