/* =========================================================
   GEEKBEATS — Main Stylesheet
   ========================================================= */

/* ── Variables ── */
:root {
    --bg:              #0a0a0a;
    --accent-magenta:  #ff2d78;
    --accent-cyan:     #00e5ff;
    --text:            #ffffff;
    --muted:           #aaaaaa;
    --header-height:   70px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 45, 120, 0.18);
    transition: background 0.3s;
}
.site-header.scrolled {
    background: rgba(10, 10, 10, 0.97);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.site-branding img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--accent-magenta); }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: rgba(10, 10, 10, 0.98);
        border-top: 1px solid rgba(255, 45, 120, 0.2);
        padding: 1.5rem 2rem 2rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.25s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav ul { flex-direction: column; gap: 1.25rem; }
    .main-nav a { font-size: 1rem; }
}

/* =========================================================
   SECTIONS — COMMON
   ========================================================= */
section { position: relative; }

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-fixed { background-attachment: fixed; }

.overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-inner {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.1;
}
.section-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.7rem auto 0;
    border-radius: 2px;
}
.heading-magenta::after { background: var(--accent-magenta); }
.heading-cyan::after    { background: var(--accent-cyan); }

/* =========================================================
   HERO
   ========================================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}
#hero::before { background: rgba(0, 0, 0, 0.5); }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}
.hero-logo {
    width: clamp(100px, 18vw, 180px);
    height: auto;
    filter: drop-shadow(0 0 24px rgba(255, 45, 120, 0.4));
}
.hero-name {
    font-size: clamp(2.8rem, 9vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.hero-tagline {
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    color: var(--accent-magenta);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 400;
}

.scroll-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    animation: arrowBounce 2s ease-in-out infinite;
}
.scroll-arrow:hover { color: var(--accent-magenta); }
.scroll-arrow svg { width: 36px; height: 36px; }

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 768px) {
    #hero { background-attachment: scroll; }
}

/* =========================================================
   MUSIC
   ========================================================= */
#music { background: var(--bg); }
#music .section-inner { padding-bottom: 7rem; }

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    justify-content: center;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s;
    white-space: nowrap;
}
.platform-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.platform-btn:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.platform-btn.apple:hover     { background: #fc3c44; }
.platform-btn.spotify:hover   { background: #1db954; }
.platform-btn.soundcloud:hover { background: #ff5500; }
.platform-btn.youtube:hover   { background: #ff0000; }

/* =========================================================
   REMIXES
   ========================================================= */
#remixes { background-color: #050505; }
#remixes::before { background: rgba(0, 0, 0, 0.6); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    background: #111;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.video-title {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    line-height: 1.4;
}
.soundcloud-embed {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.25);
}
.soundcloud-embed iframe { display: block; width: 100%; }

@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { #remixes { background-attachment: scroll; } }

/* =========================================================
   ABOUT
   ========================================================= */
#about { background-color: #080808; text-align: center; }
#about::before { background: rgba(0, 0, 0, 0.7); }

.about-bio {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.95;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) { #about { background-attachment: scroll; } }

/* =========================================================
   BLOG SECTION (homepage)
   ========================================================= */
#blog { background-color: #060606; }
#blog::before { background: rgba(0, 0, 0, 0.7); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
    min-width: 0;
}
.post-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 45, 120, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0; /* prevent grid blowout */
    width: 100%;
}
.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-magenta);
    box-shadow: 0 16px 40px rgba(255, 45, 120, 0.15);
}
.post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.post-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(255,45,120,0.08), rgba(0,229,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 3rem;
}
.post-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.35;
}
.post-card-date {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.post-card-link {
    color: var(--accent-magenta);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.post-card-link:hover { opacity: 0.75; }

.affiliate-badge {
    display: inline-block;
    background: #d4a017;
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.view-all-wrap { text-align: center; }
.btn-view-all {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 2px solid var(--accent-magenta);
    color: var(--text);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: all 0.3s;
}
.btn-view-all:hover {
    background: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.35);
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) {
    .posts-grid { grid-template-columns: 1fr; }
    #blog { background-attachment: scroll; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0a0a0a;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #ff2d78;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-social a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ff2d78;
}

.footer-copy {
  color: #aaaaaa;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-slogan {
  color: #ff2d78;
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* =========================================================
   BLOG PAGE (home.php / archive.php)
   ========================================================= */
.blog-page {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg);
}
.blog-page-banner {
    background: linear-gradient(180deg, rgba(255,45,120,0.12) 0%, transparent 100%);
    padding: 4rem 2rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 45, 120, 0.15);
}
.blog-page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}
.blog-page-banner h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent-magenta);
    margin: 0.7rem auto 0;
    border-radius: 2px;
}
.blog-page-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-no-posts {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    color: var(--muted);
    padding: 0 2rem;
}
@media (max-width: 900px) { .blog-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .blog-page-grid { grid-template-columns: 1fr; } }

/* Pagination */
.geekbeats-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 2rem 3rem;
}
.geekbeats-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 5px;
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}
.geekbeats-pagination .page-numbers.current,
.geekbeats-pagination .page-numbers:hover {
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
    color: #fff;
}
.geekbeats-pagination .dots { border: none; background: none; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-page {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg);
}
.post-hero-thumb {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.post-content-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}
.post-header { margin-bottom: 2rem; }
.post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.post-meta {
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}
.post-meta a { color: var(--muted); transition: color 0.2s; }
.post-meta a:hover { color: var(--accent-magenta); }

.affiliate-banner {
    background: #d4a017;
    color: #000;
    padding: 0.8rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}
.affiliate-banner-icon { flex-shrink: 0; font-style: normal; }

.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.88);
}
.post-body h2, .post-body h3, .post-body h4 {
    margin: 2rem 0 0.75rem;
    color: var(--text);
    font-weight: 700;
}
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }
.post-body p  { margin-bottom: 1.25rem; }
.post-body a  { color: var(--accent-magenta); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { opacity: 0.8; }
.post-body img { border-radius: 8px; margin: 1rem 0; max-width: 100%; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
    border-left: 3px solid var(--accent-magenta);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-style: italic;
    background: rgba(255,45,120,0.05);
    border-radius: 0 6px 6px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.back-to-blog:hover { opacity: 0.75; }

/* =========================================================
   GENERIC PAGE
   ========================================================= */
.generic-page {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg);
}
.generic-page-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}
.generic-page-inner h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 2rem;
}
.generic-page-inner h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent-magenta);
    margin-top: 0.7rem;
    border-radius: 2px;
}

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.geekbeats-admin-wrap {
    max-width: 920px;
    padding: 1rem 0;
}
.geekbeats-admin-wrap .gb-page-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: #ff2d78;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.gb-section {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.gb-section label {
    display: block;
    color: #bbb;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gb-section input[type="text"],
.gb-section select {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #444;
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.gb-section input[type="text"]:focus,
.gb-section select:focus { border-color: #ff2d78; }
.gb-section select { height: 120px; }
.gb-field-hint {
    color: #666;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}
.gb-affiliate-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.gb-affiliate-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #ff2d78;
}
.gb-affiliate-row .gb-check-label {
    margin: 0;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ddd;
    letter-spacing: 0;
}
.gb-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.gb-btn-publish {
    background: #ff2d78;
    color: #fff;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.gb-btn-publish:hover { background: #e0256a; }
.gb-btn-draft {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #555;
    padding: 0.8rem 2.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.gb-btn-draft:hover { background: #333; }
.gb-notice-success {
    background: #112211;
    border-left: 4px solid #4caf50;
    color: #81c784;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.gb-notice-error {
    background: #221111;
    border-left: 4px solid #f44336;
    color: #e57373;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.gb-thumb-preview img {
    max-width: 200px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid #444;
}
