:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-lime: #ccff00;
    --bg-dark: #050505;
    --bg-panel: #111111;
    --text-main: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
}

h2 { 
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 4rem; 
    margin-bottom: 3rem; 
    text-align: center; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
}

@media (max-width: 768px) {
    h2 { font-size: 2.5rem; }
}

/* --- NAVIGATION --- */
/* WordPress Admin Bar Compatibility */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar nav { top: 46px; }
}

nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1rem 2rem; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent;
}

nav::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    z-index: -1;
}
.logo {
    z-index: 1101;
    display: flex;
    align-items: center;
}
.logo svg {
    height: 50px;
    width: auto;
    fill: white; /* Logon oletusväri */
    filter: drop-shadow(0 0 5px var(--neon-cyan));
    transition: all 0.3s ease;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; }
.nav-links li { position: relative; } /* For dropdowns */

.nav-links a {
    color: white; text-decoration: none; font-size: 18px;
    font-weight: 700; font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase; letter-spacing: 1px; position: relative;
    transition: all 0.3s;
    display: block;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links a.active { 
    color: var(--neon-pink); 
    text-shadow: 0 0 8px var(--neon-pink);
}

/* WordPress Sub-menu Support */
.nav-links ul.sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--bg-panel); border: 1px solid var(--neon-cyan);
    min-width: 200px; padding: 1rem; flex-direction: column; gap: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.nav-links li:hover > ul.sub-menu {
    display: flex;
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 1100; }
.hamburger span {
    display: block; position: absolute; height: 3px; width: 100%;
    background: var(--neon-cyan); border-radius: 0; transition: .25s ease-in-out;
    box-shadow: 0 0 5px var(--neon-cyan);
}
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; 
        top: 0; 
        right: 0;
        width: 100%; 
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        border-left: 2px solid var(--neon-pink);
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        gap: 2rem; 
        transition: transform 0.4s ease-in-out;
        transform: translateX(100%);
        z-index: 1000;
    }
    .nav-links.active { 
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(255, 0, 255, 0.2);
    }
    .nav-links a { font-size: 2rem; }
    
    /* Mobile Sub-menus */
    .nav-links ul.sub-menu {
        position: static; background: transparent; border: none; padding: 0.5rem 0; text-align: center;
    }
}

/* --- SOCIAL ICONS (Footer & Nav) --- */
.social-links {
    display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0; flex-wrap: wrap;
}
.social-icon {
    display: block; width: 32px; height: 32px;
    color: white; transition: all 0.3s ease;
}
.social-icon svg {
    width: 100%; height: 100%;
    fill: currentColor; /* Perii värin a-tagilta */
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}
.social-icon:hover {
    color: var(--neon-pink);
    transform: scale(1.1);
}
.social-icon:hover svg {
    filter: drop-shadow(0 0 8px var(--neon-pink));
}

/* --- SECTIONS --- */
.section { 
    padding: 4rem 2rem; 
    position: relative; 
    width: 90%; 
    max-width: 1200px;
    margin: 4rem auto;
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
}

.section-light { 
    border-left: 4px solid var(--neon-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
}
.section-dark { 
    border-left: 4px solid var(--neon-pink);
    filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.3));
}
.section-accent { 
    border-left: 4px solid var(--neon-lime);
    filter: drop-shadow(0 0 5px rgba(204, 255, 0, 0.3));
}

.section-content { max-width: 1200px; margin: 0 auto; }
.section[id] { scroll-margin-top: 80px; }

.section-dark h2 { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.section-light h2 { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.section-accent h2 { color: var(--neon-lime); text-shadow: 0 0 10px var(--neon-lime); }

.section-dark h3 { color: var(--neon-pink); }
.section-light h3 { color: var(--neon-cyan); }

/* Components */
.shop-btn {
    display: inline-block; padding: 1.5rem 4rem; 
    background: transparent; color: var(--neon-lime);
    border: 2px solid var(--neon-lime);
    text-decoration: none; font-size: 1.5rem; font-family: 'Rajdhani', sans-serif;
    font-weight: 800; 
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--neon-lime);
    box-shadow: inset 0 0 10px rgba(204, 255, 0, 0.2);
}
.shop-btn span { display: block; }
.shop-btn:hover { 
    background: var(--neon-lime); color: black;
    box-shadow: 0 0 20px var(--neon-lime);
    text-shadow: none;
}

.instagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.insta-post { 
    aspect-ratio: 1; background: #222; 
    border: 1px solid var(--neon-pink);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    display: flex; align-items: center; justify-content: center; color: white; transition: transform 0.3s; 
}
.insta-post:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3); }
.insta-post img { width: 100%; height: 100%; object-fit: cover; }

.gig-item { 
    background: rgba(255,255,255,0.03); padding: 2rem; margin: 1rem 0; 
    border-left: 4px solid var(--neon-pink); 
    border-right: 1px solid rgba(255,0,255,0.3);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 98% 100%, 0 100%);
    transition: all 0.3s; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; 
}
.gig-item:hover { background: rgba(255, 0, 255, 0.1); box-shadow: 0 0 15px rgba(255, 0, 255, 0.1); }
.gig-date { color: var(--neon-pink); font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; text-shadow: 0 0 5px var(--neon-pink); }
.gig-venue { font-size: 2rem; font-weight: 700; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }

.gig-link {
    display: inline-block;
    color: var(--neon-cyan); text-decoration: none;
    font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.2rem;
    transition: color 0.3s;
    border: 1px solid var(--neon-cyan); padding: 0.5rem 1rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.gig-link:hover { background: var(--neon-cyan); color: black; box-shadow: 0 0 10px var(--neon-cyan); }

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden; 
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1); background: #000;
}
.responsive-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

footer { 
    text-align: center; padding: 4rem 2rem; 
    background: #000; color: white; position: relative; z-index: 1; 
    border-top: 1px solid var(--neon-cyan);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    section { width: 95%; padding: 3rem 1.5rem; margin: 2rem auto; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; } /* TÄRKEÄ: Estää sivun heilumisen */
body {
    background-color: var(--bg-dark);
    /* Cyberpunk grid-tausta */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden; /* Varmistus */
    width: 100%;
}

/* --- WORDPRESS BLOCK THEME ADAPTERS --- */

/* Make anchor scrolling account for the fixed nav */
:root { scroll-padding-top: 90px; }

/* Ensure Group blocks used as sections behave like the original <section> */
.wp-site-blocks main { padding-top: 90px; } /* space under fixed nav */

/* Recommended: add class="section" to every Group block section */
.wp-block-group.section { display: block; }

/* Links inherit per-section link styles via color variables; keep default underline off like nav/footer */
a { text-decoration-skip-ink: auto; }

/* Navigation: scope original rules to our template part */
.site-nav nav { width: 100%; }


/* WP block wrapper resets for full-width header */
.site-nav.wp-block-group,
.wp-block-group.site-nav {
    width: 100%;
    max-width: none;
}

/* Prevent default WP button styling affecting hamburger */
.site-nav button,
.site-nav .hamburger {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.site-nav .hamburger span { display: block; }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
