/*
Theme Name: Caldira Basketball Hub
Author: Caldira Media Group
Description: Das ultimative Basketball-Portal für tiefe Analysen, NBA-Insights und europäische Ligen. Praezision und Leidenschaft für den Sport der Giganten.
Version: 1.1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Jost:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary: #FF6D00;
    --secondary: #311B92;
    --accent: #FFD600;
    --black: #121212;
    --white: #FFFFFF;
    --bg-main: #FDFDFD;
    --text-main: #1A1A1A;
    --text-muted: #757575;
    --border: rgba(49, 27, 146, 0.08);
    
    --container-width: 1400px;
    --content-width: 900px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    --section-pad: clamp(4rem, 12vw, 10rem);
    --hero-pad: clamp(6rem, 18vw, 12rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Jost', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, .logo, .footer-logo {
    overflow-wrap: break-word;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-wrap: balance;
    hyphens: auto;
    word-break: normal;
}

/* Rule 14: Safe h1 threshold 1.8rem */
h1 { font-size: clamp(1.8rem, 8vw, 5.5rem); line-height: 1.1; margin-bottom: 2rem; color: var(--secondary); }
h2 { font-size: clamp(1.6rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 3.5rem; position: relative; }
h3 { font-size: clamp(1.2rem, 3.5vw, 2.2rem); line-height: 1.2; margin-bottom: 1.5rem; }

.mono { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; color: var(--primary); }

img { max-width: 100%; height: auto; display: block; border-radius: 32px; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* DNA N-C: Always Hamburger Architecture */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.2rem 0;
    z-index: 9999;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    color: var(--secondary);
    z-index: 2100;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
}
.logo span { color: var(--primary); display: block; font-size: 0.65rem; letter-spacing: 0.2em; margin-top: 4px; font-family: 'Jost'; }

.nav-toggle {
    width: 56px; height: 56px;
    background: var(--secondary);
    border-radius: 16px !important;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2100;
    transition: var(--transition);
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.nav-toggle:hover { background: var(--primary); transform: scale(1.05); }

.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.main-nav.is-active { transform: translateY(0); }
.main-nav ul { list-style: none; text-align: center; }
.main-nav a { 
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}
.main-nav a:hover { color: var(--primary); transform: translateX(15px); }

/* DNA H-B: Split-screen Hero 50/50 */
.hero-basketball {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg-main);
    padding-top: 100px;
}
.hero-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero-text { padding: clamp(2rem, 8vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }

.btn-dunk {
    display: inline-block;
    padding: 1.2rem 4rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(255, 109, 0, 0.2);
}
.btn-dunk:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255, 109, 0, 0.3); }

/* DNA D-A: Diagonal Sections */
.skewed-divider {
    height: 10vw;
    background: var(--secondary);
    margin-top: -5vw;
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
    position: relative;
    z-index: 5;
}

.motion-strip { display: flex; gap: 1.5rem; padding: 0 2rem; overflow: hidden; margin: var(--section-pad) 0; }
.motion-strip img { height: 350px; flex: 1; object-fit: cover; border-radius: 32px !important; transition: var(--transition); }
.motion-strip img:hover { flex: 1.5; transform: scale(1.02); }

.basketball-features { padding: var(--section-pad) 0; background: var(--bg-main); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 40px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.02);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 25px 70px rgba(49, 27, 146, 0.08); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.feature-card h3 { color: var(--secondary); margin-bottom: 1rem; }

.posts-section { padding: var(--section-pad) 0; background: var(--white); }
.basketball-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 6rem; }

.post-card-overlay {
    position: relative;
    height: 500px;
    border-radius: 40px !important;
    overflow: hidden;
    transition: var(--transition);
}
.post-card-overlay .thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.post-card-overlay .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.post-card-overlay .overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,0.9) 10%, transparent 60%);
    padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; transition: var(--transition);
}
.post-card-overlay:hover .overlay { background: linear-gradient(to top, rgba(255,109,0,0.85) 10%, transparent 70%); }
.post-card-overlay h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 1.5rem; }
.btn-meta { font-family: 'JetBrains Mono'; font-weight: 700; color: var(--accent); font-size: 0.75rem; }

.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 5rem; }
.pagination .page-numbers {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); border-radius: 16px !important;
    font-weight: 800; color: var(--secondary); box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.pagination span.current { background: var(--primary); color: var(--white); }

.site-footer { background: var(--secondary); color: var(--white); padding: 8rem 0 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8rem; margin-bottom: 6rem; }
.footer-logo { font-size: 3rem; color: var(--white); margin-bottom: 2rem; overflow-wrap: anywhere; }
.footer-logo span { color: var(--primary); display: block; font-size: 0.8rem; letter-spacing: 0.3em; margin-top: 10px; font-family: 'Jost'; }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 1.1rem; line-height: 1.6; max-width: 500px; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-nav a { font-weight: 700; color: var(--white); text-transform: uppercase; font-size: 1rem; }
.footer-nav a:hover { color: var(--primary); transform: translateX(8px); }

.footer-bottom {
    padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; font-size: 0.8rem; font-family: 'JetBrains Mono'; opacity: 0.3;
}

.post-main { max-width: var(--content-width); margin: 8rem auto; padding: 0 2rem; }
.post-header { margin-bottom: 5rem; }
.post-meta { color: var(--primary); font-weight: 800; margin-bottom: 1.5rem; display: block; font-family: 'Syne'; text-transform: uppercase; }
.post-content h2, .post-content h3 { margin: 5rem 0 2.5rem; color: var(--secondary); background: linear-gradient(to right, var(--primary), transparent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.post-content p { font-size: 1.2rem; margin-bottom: 2.5rem; }
.post-content table { width: 100%; border-radius: 32px !important; overflow: hidden; margin: 4rem 0; border: 1px solid var(--border); }
.post-content th { background: var(--secondary); color: var(--white); padding: 2rem; text-align: left; }
.post-content td { padding: 2rem; border-bottom: 1px solid var(--border); }

@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-image { height: 400px; order: -1; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .basketball-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .basketball-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .motion-strip { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
