/*
Theme Name: ebawimy24
Author: AI
Description: Portal informacyjny, analizy bukmacherskie, poradniki, recenzje
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Quicksand:wght@400;600;700&display=swap');

:root {
    --primary: #1a237e;
    --secondary: #76ff03;
    --accent: #283593;
    --bg-main: #f5f5ff;
    --white: #ffffff;
    --text-main: #1a1a2e;
    --border: #76ff03;
    
    --container-width: 1200px;
    --content-width: 800px;
    --transition: all 0.3s ease;
    --radius: 0px;
    --border-width: 3px;
    --section-pad: 5rem;
}

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

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    position: relative;
}

h1, h2, h3, .logo, .btn-arc {
    font-family: 'Alfa Slab One', cursive;
    font-weight: 400;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

.btn-arc {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary);
    color: var(--primary);
    border: var(--border-width) solid var(--text-main);
    box-shadow: 4px 4px 0px var(--text-main);
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-arc:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-main);
}

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

/* N-C Hamburger always overlay */
.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--bg-main);
    border-bottom: var(--border-width) solid var(--text-main);
}
.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 2rem; color: var(--primary); text-transform: uppercase; }
.logo span { color: var(--secondary); -webkit-text-stroke: 1px var(--primary); }

.main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
body.menu-open .main-nav { display: flex; }
.main-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 2rem; }
.main-nav a { font-size: 3rem; font-family: 'Alfa Slab One'; color: var(--secondary); text-transform: uppercase; }
.main-nav a:hover { color: var(--white); }

.nav-toggle {
    display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 10001; background: none; border: none;
}
.nav-toggle span { width: 30px; height: var(--border-width); background: var(--text-main); transition: 0.3s; }
body.menu-open .nav-toggle span { background: var(--secondary); }
body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* H-B Split-screen 50/50 */
.hero-arc {
    min-height: 100vh;
    display: flex;
    padding-top: 80px;
}
.hero-split {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1 1 50%;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border-width) solid var(--text-main);
    background: var(--bg-main);
    position: relative;
    z-index: 2;
}
.hero-image {
    flex: 1 1 50%;
    position: relative;
    border-bottom: var(--border-width) solid var(--text-main);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* C-F Timeline + 3x3 Grid */
.posts-section { padding: var(--section-pad) 0; position: relative; z-index: 2; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 3rem;
}
.post-card-arc {
    background: var(--white);
    border: var(--border-width) solid var(--text-main);
    box-shadow: 6px 6px 0px var(--border);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.post-card-arc::before {
    content: '';
    position: absolute;
    top: -3rem; left: 2rem;
    width: var(--border-width); height: 3rem;
    background: var(--text-main);
}
.post-card-arc::after {
    content: '';
    position: absolute;
    top: -3rem; left: 1.25rem;
    width: 1.5rem; height: 1.5rem;
    background: var(--secondary);
    border: var(--border-width) solid var(--text-main);
    border-radius: 50%;
}
.post-card-arc .thumb {
    height: 200px;
    margin-bottom: 1.5rem;
    border: var(--border-width) solid var(--text-main);
}
.post-card-arc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.post-card-content p { margin-bottom: 1.5rem; }

/* U-E Number infographic */
.infographic-section { 
    padding: var(--section-pad) 0; 
    background: var(--primary); 
    color: var(--secondary); 
    border-top: var(--border-width) solid var(--text-main); 
    border-bottom: var(--border-width) solid var(--text-main); 
    position: relative;
    z-index: 2;
}
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.info-item {
    border: var(--border-width) solid var(--secondary);
    padding: 2rem;
    box-shadow: 4px 4px 0px var(--text-main);
    background: var(--primary);
}
.info-item h3 { font-size: 3rem; margin-bottom: 0.5rem; color: var(--secondary); }
.info-item p { font-family: 'Quicksand'; font-size: 1rem; font-weight: 700; color: var(--white); }

/* FT-B Two-column Footer */
.site-footer {
    background: var(--bg-main);
    border-top: var(--border-width) solid var(--text-main);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; font-weight: 600; }
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: var(--border-width) solid var(--text-main);
    text-align: center;
    font-weight: 700;
}

/* D-D SVG patterns opacity: 0.04 */
.pattern-bg {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a2e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 4rem 0; position: relative; z-index: 2; }
.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: var(--border-width) solid var(--text-main);
    box-shadow: 2px 2px 0px var(--text-main);
    font-weight: 700; color: var(--text-main);
}
.pagination .page-numbers.current { background: var(--secondary); color: var(--primary); }

@media (max-width: 768px) {
    .hero-split { flex-direction: column; }
    .hero-text { padding: 2rem; border-right: none; border-bottom: var(--border-width) solid var(--text-main); }
    .hero-image { height: 40vh; border-bottom: var(--border-width) solid var(--text-main); }
    .posts-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Misc overrides */
.single-post-content { position: relative; z-index: 2; padding: var(--section-pad) 0; background: var(--white); border-bottom: var(--border-width) solid var(--text-main); }

/* RULE 21 FIX */
.post-card-arc {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.post-card-arc .thumb {
    display: block !important;
    height: clamp(180px, 25vw, 300px) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-arc .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.post-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.post-card-content h3 {
    flex-grow: 1 !important;
}
.btn-read, .read-more-link {
    margin-top: auto !important;
}

.logo, .footer-logo { flex-wrap: wrap !important; }

/* FIX HERO OVERLAP RULE 16 */
.site-main > section:first-child {
    padding-top: clamp(140px, 15vh, 180px) !important;
}
.hero-split {
    padding-top: 0 !important;
}
.hero-split .hero-text {
    padding-top: clamp(140px, 15vh, 180px) !important;
}


.hero-arc {
    height: auto !important;
    min-height: max(400px, 50vh) !important;
}


/* FIX BACKGROUND VISIBILITY BUG (STACKING CONTEXT) */
section, .hero-arc, .hero-split, .site-main > section {
    isolation: isolate;
}
.hero-content, .hero-text {
    position: relative;
    z-index: 1;
}

