/* Main Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary-purple: #b829e8;
    --primary-blue: #29b6e8;
    --accent-pink: #ff69b4;
    --accent-gold: #ffd700;
    --accent-red: #ff4747;
    --dark-bg: #010101;
    --header-color: #fff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Layout */
.site-main {
    padding-top: 120px; /* Increased to account for fixed header */
}

.site-main .content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.entry-header {
    order: 1;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--header-color);
}

.entry-meta {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.entry-content {
    order: 2;
    position: relative;
    width: 100%;
    line-height: 1.8;
}

.entry-content p, 
.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5rem;
}

/* 404 page specific styling */
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.error-404 .page-content {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.error-404 h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.error-404 h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .site-main {
        padding: 4rem 2rem;
    }
}

/* Header Styles */
.site-header {
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation */
.wp-block-navigation {
    font-family: var(--font-heading);
}

/* Post Styles */
.post-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Footer Styles */
.site-footer {
    background-color: #f8f8f8;
    padding: 3rem 1rem 1rem;
}

.footer-content{
    padding-bottom: 60px;
}

.site-footer-widgets {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto 2rem;
}

.site-footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Block Styles */
.wp-block-button__link {
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.wp-block-button__link:hover {
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 781px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 2rem;
    }
}

/* Header and Navigation styles */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
   /* background: #010101;*/
    height: 80px;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), background 0.3s ease;
}

/* Add these new classes for header scroll behavior */
header.scrolling-down {
    transform: translateY(-100%);
}

header.scrolling-up {
    transform: translateY(0);
    background: #010101;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size:16px;
    font-weight: 300;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.footer {
    background-color: rgba(18, 3, 24, 0.98);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(184, 41, 232, 0.3);
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 2px #fff,
            0 0 4px #fff,
            0 0 6px var(--primary-purple),
            0 0 10px var(--primary-purple),
            0 0 14px var(--primary-purple),
            0 0 18px var(--primary-blue),
            0 0 24px var(--primary-blue);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Keep Amsterdam Four for logo */
.logo .neon-text {
    display: block;
    font-size: 1.5rem;
    font-family: 'Amsterdam Four', cursive;
    font-weight: 400;
    color: #fff;
    letter-spacing: 4px;
    -webkit-text-stroke: 0.4px var(--primary-purple);
    text-shadow: 
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 6px var(--primary-purple),
        0 0 10px var(--primary-purple),
        0 0 14px var(--primary-purple),
        0 0 18px var(--primary-blue),
        0 0 24px var(--primary-blue);
    animation: flicker 1.5s infinite alternate;
}

.logo .neon-text a {
    color: inherit;
    text-decoration: none;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Body scroll prevention when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(18, 3, 24, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: 0.3s ease-in-out;
        gap: clamp(1.5rem, 4vh, 3rem);
        overflow-y: auto;
        padding: clamp(1rem, 3vh, 2rem) 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: clamp(0.5rem, 1.5vh, 1rem) 0;
    }

    .nav-links li a {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
}

/* Updated CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-blue));
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    color: white;
    border-color: transparent;
}

.cta-button:hover::before {
    width: 100%;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Updated neon effect for last menu item - borderless glow */
.nav-links li:last-child a {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    z-index: 1;
}

.nav-links li:last-child a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: radial-gradient(
        circle at center,
        rgba(184, 41, 232, 0.15) 0%,
        rgba(184, 41, 232, 0.05) 60%,
        transparent 80%
    );
    z-index: -1;
    animation: pulseGlow 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(184, 41, 232, 0.3), 0 0 20px rgba(184, 41, 232, 0.1);
        background: radial-gradient(
            circle at center,
            rgba(184, 41, 232, 0.15) 0%,
            rgba(184, 41, 232, 0.05) 60%,
            transparent 80%
        );
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(41, 182, 232, 0.3), 0 0 20px rgba(41, 182, 232, 0.1);
        background: radial-gradient(
            circle at center,
            rgba(41, 182, 232, 0.15) 0%,
            rgba(41, 182, 232, 0.05) 60%,
            transparent 80%
        );
    }
    100% {
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(184, 41, 232, 0.3), 0 0 20px rgba(184, 41, 232, 0.1);
        background: radial-gradient(
            circle at center,
            rgba(184, 41, 232, 0.15) 0%,
            rgba(184, 41, 232, 0.05) 60%,
            transparent 80%
        );
    }
}

/* Make sure the effect works well in mobile menu too */
@media screen and (max-width: 768px) {
    .nav-links li:last-child {
        margin-top: 1rem;
    }
    
    .nav-links li:last-child a {
        padding: 10px 20px;
    }
}

/* Fix for header gap with WordPress admin bar */
@media (max-width: 600px) {
  body.admin-bar header {
    top: 46px; /* WordPress mobile admin bar height */
  }
  
  body.admin-bar .hero {
    padding-top: 126px; /* 80px header height + 46px admin bar */
  }
  #wpadminbar{
    position: fixed;
  }
  
  
  /* When not logged in */
  body:not(.admin-bar) header {
    top: 0;
  }
  
  body:not(.admin-bar) .hero {
    padding-top: 80px;
  }
}

/* Fix for post content layout issues */
.site-main {
    padding-top: 120px;
}

/* Fix for post title and content positioning */
article {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ensure proper spacing for content */
.entry-content p:first-child {
    margin-top: 0;
}

/* Enhanced post styling */
.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--header-color);
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.entry-content a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.entry-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}