/*
Theme Name: Astra Child - Exyde
Template: astra
Version: 1.0
Description: Custom dark theme for Exyde with 11x.ai inspired styling
*/

/* =====================================================
   GOOGLE FONTS - Inter (like 11x.ai)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =====================================================
   CSS VARIABLES - Dark Theme
   ===================================================== */
:root {
    --exyde-bg-dark: #0a0a0f;
    --exyde-bg-card: #12121a;
    --exyde-bg-card-hover: #1a1a25;
    --exyde-purple: #6B21A8;
    --exyde-purple-light: #8B5CF6;
    --exyde-blue: #3B82F6;
    --exyde-magenta: #EC4899;
    --exyde-cyan: #06B6D4;
    --exyde-text-primary: #ffffff;
    --exyde-text-secondary: #a1a1aa;
    --exyde-text-muted: #71717a;
    --exyde-border: #27272a;
    --exyde-gradient: linear-gradient(135deg, #6B21A8 0%, #3B82F6 50%, #EC4899 100%);
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: var(--exyde-bg-dark) !important;
    color: var(--exyde-text-primary) !important;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   TYPOGRAPHY - 11x.ai Style
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: var(--exyde-text-primary) !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

p {
    font-family: 'Inter', sans-serif !important;
    color: var(--exyde-text-secondary) !important;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* =====================================================
   HEADER / NAVIGATION - Centered like 11x.ai
   ===================================================== */
.ast-header-html-1,
header.site-header,
.ast-primary-header {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--exyde-border) !important;
}

/* Center the navigation */
.ast-primary-header-bar,
.ast-builder-grid-row {
    justify-content: center !important;
}

.main-header-bar {
    background: transparent !important;
}

.main-header-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem;
}

.main-header-menu .menu-item a {
    color: var(--exyde-text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease !important;
    border-radius: 8px;
}

.main-header-menu .menu-item a:hover {
    color: var(--exyde-text-primary) !important;
    background: var(--exyde-bg-card) !important;
}

/* Logo styling */
.site-title,
.site-title a {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: var(--exyde-text-primary) !important;
    letter-spacing: -0.02em;
}

/* =====================================================
   BUTTONS - Gradient & Glow Effects
   ===================================================== */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"],
.elementor-button {
    background: var(--exyde-gradient) !important;
    border: none !important;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.3);
    text-transform: none !important;
}

.wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.5);
}

/* Secondary/Outline button */
.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--exyde-purple-light) !important;
    color: var(--exyde-purple-light) !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--exyde-purple-light) !important;
    color: white !important;
}

/* =====================================================
   CSS ANIMATIONS - Pulse & Motion Effects
   ===================================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(107, 33, 168, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(107, 33, 168, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to elements */
.exyde-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.exyde-float {
    animation: float 6s ease-in-out infinite;
}

.exyde-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Hero section animation */
.wp-block-cover,
.hero-section {
    animation: fadeInUp 1s ease-out;
}

/* Animate images on scroll */
.wp-block-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 33, 168, 0.3);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.wp-block-cover {
    min-height: 90vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-cover__inner-container {
    max-width: 1200px;
    text-align: center;
}

/* =====================================================
   CARDS & CONTAINERS
   ===================================================== */
.wp-block-group,
.wp-block-column {
    background: var(--exyde-bg-card);
    border: 1px solid var(--exyde-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.wp-block-group:hover,
.wp-block-column:hover {
    background: var(--exyde-bg-card-hover);
    border-color: var(--exyde-purple);
    transform: translateY(-4px);
}

/* =====================================================
   GRADIENT TEXT
   ===================================================== */
.gradient-text,
.exyde-gradient-text {
    background: var(--exyde-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* =====================================================
   GLOWING ORB BACKGROUND EFFECT
   ===================================================== */
.exyde-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.exyde-orb-purple {
    background: var(--exyde-purple);
    width: 400px;
    height: 400px;
}

.exyde-orb-blue {
    background: var(--exyde-blue);
    width: 300px;
    height: 300px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer.site-footer,
.ast-footer-overlay-container {
    background: var(--exyde-bg-dark) !important;
    border-top: 1px solid var(--exyde-border);
}

footer a,
.ast-footer-copyright a {
    color: var(--exyde-text-secondary) !important;
}

footer a:hover {
    color: var(--exyde-purple-light) !important;
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--exyde-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--exyde-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--exyde-purple-light);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .main-header-menu {
        gap: 0.5rem;
    }
}

/* =====================================================
   ADDITIONAL FIXES
   ===================================================== */

/* Hide page title on front page */
.home .entry-title,
.page-id-7 .entry-title,
body.home h1.entry-title,
.ast-single-post .entry-title {
    display: none !important;
}

/* Fix hero cover to be full viewport */
.home .wp-block-cover.alignfull {
    margin-top: -100px !important;
    padding-top: 100px !important;
}

/* Better spacing for content area */
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

.ast-separate-container .ast-article-single {
    background: transparent !important;
    padding: 0 !important;
}

.ast-separate-container .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Full width sections */
.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Fix group backgrounds */
.wp-block-group.has-background {
    border: none !important;
    border-radius: 0 !important;
}

/* Columns should not have default card styling on homepage */
.home .wp-block-columns .wp-block-column {
    background: transparent !important;
    border: none !important;
}

.home .wp-block-columns .wp-block-column:hover {
    transform: none !important;
}

/* Card styling only for specific sections */
.feature-card {
    background: var(--exyde-bg-card) !important;
    border: 1px solid var(--exyde-border) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
}

/* Navigation sticky with blur */
header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* Compensate for fixed header */
.site-content {
    margin-top: 0 !important;
}

/* Fix button gradient */
.wp-block-button__link {
    background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 50%, #EC4899 100%) !important;
    color: white !important;
    border: none !important;
}

/* Hero button specifically */
.wp-block-cover .wp-block-button__link {
    background: linear-gradient(135deg, #6B21A8 0%, #3B82F6 50%, #EC4899 100%) !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
}

/* =====================================================
   HEADER LAYOUT - Logo Left, Nav Right
   ===================================================== */

/* Override centered nav - go back to logo left, nav right */
.ast-primary-header-bar .ast-builder-grid-row,
.ast-builder-grid-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Logo container - left side */
.ast-builder-layout-element.ast-site-identity {
    flex-shrink: 0;
}

/* Navigation - right side */
.ast-builder-menu-1,
.main-header-menu {
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* Header bar full width */
.ast-primary-header-bar {
    width: 100%;
}

/* Site branding/logo styling */
.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.site-title a {
    color: white !important;
    text-decoration: none !important;
}

/* Nav items styling */
.main-header-menu .menu-item {
    margin-left: 0.5rem;
}

.main-header-menu .menu-item a {
    color: var(--exyde-text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease !important;
}

.main-header-menu .menu-item a:hover {
    color: white !important;
    background: transparent !important;
}

/* Hide any remaining Home links just in case */
.menu-item a[href*="/home"],
.menu-item a[title="Home"] {
    display: none !important;
}

/* =====================================================
   FORCE HEADER LAYOUT - Logo Left, Nav Right
   ===================================================== */

/* Main header container */
header#masthead .ast-builder-grid-row,
.ast-primary-header .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0.75rem 3rem !important;
}

/* Left column - Logo */
.ast-builder-grid-row > .site-primary-header-wrap:first-child,
.ast-builder-grid-row > div:first-child {
    justify-self: start !important;
}

/* Right column - Navigation */
.ast-builder-grid-row > .site-primary-header-wrap:last-child,
.ast-builder-grid-row > div:last-child,
.ast-builder-menu {
    justify-self: end !important;
}

/* If using flex fallback */
.site-primary-header-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0.75rem 3rem !important;
}

/* Logo - force left */
.ast-site-identity {
    order: 1 !important;
    flex: 0 0 auto !important;
}

/* Spacer */
.site-primary-header-wrap::after {
    content: '';
    flex: 1 1 auto;
    order: 2;
}

/* Navigation - force right */
.ast-builder-menu-1,
.ast-header-primary-container nav {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* Menu items horizontal */
.main-header-menu,
.ast-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
}

/* Light background sections - dark text for headings */
.wp-block-group.has-background[style*="f8f9fa"] h2,
.wp-block-group.has-background[style*="f0f5fa"] h2 {
    color: #1a1a1a !important;
}

/* Logo sizing */
.site-logo-img,
.custom-logo,
.ast-site-identity .custom-logo-link img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
}

/* Hide site title text when logo is present */
.site-title,
.ast-site-identity .site-title,
.ast-site-identity .ast-site-title-wrap .site-title {
    display: none !important;
}

/* =====================================================
   FIX: Remove dark card styling from columns in light background sections
   ===================================================== */
.wp-block-group.has-background[style*="f0f5fa"] .wp-block-column,
.wp-block-group.has-background[style*="f8f9fa"] .wp-block-column,
.wp-block-group.has-background[style*="F0F5FA"] .wp-block-column,
.wp-block-group.has-background[style*="F8F9FA"] .wp-block-column {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.wp-block-group.has-background[style*="f0f5fa"] .wp-block-column:hover,
.wp-block-group.has-background[style*="f8f9fa"] .wp-block-column:hover,
.wp-block-group.has-background[style*="F0F5FA"] .wp-block-column:hover,
.wp-block-group.has-background[style*="F8F9FA"] .wp-block-column:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
}
