/*
Theme Name: Welcome No-Code - Future Tech Portal
Author: No-Code Media
Description: Innowacyjne aplikacje, gadżety и świat zakładów sportowych w zasięgu ręki.
Version: 8.0.0
*/

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

:root {
    --primary: #6c5ce7; /* Tech Purple */
    --secondary: #00cec9; /* Cyber Teal */
    --accent: #fd79a8; /* Hot Pink */
    --bg-main: #0f0c29; /* Dark Space */
    --white: #ffffff;
    --text-main: #f5f6fa;
    --text-muted: #a4b0be;
    --border: rgba(255, 255, 255, 0.1);
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);

    --section-pad: clamp(4rem, 10vw, 8rem);
}

* { 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: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, .logo, .btn-code {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2.5rem, 12vw, 7.5rem); margin-bottom: 2rem; color: var(--white); }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 3rem; text-align: center; }
h3 { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--secondary); }

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

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

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

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

/* Axis 1: N-C Hamburger Always */
.site-header {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: inline-flex !important;
    align-items: center;
    font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
    color: var(--white) !important;
    text-transform: uppercase; /* Forced uppercase for tech style */
    font-weight: 900;
}
.logo span { color: var(--secondary) !important; }

.main-nav { 
    position: fixed; inset: 0; background: var(--bg-main); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: 0.5s ease; visibility: hidden;
}
body.menu-open .main-nav { transform: translateX(0); visibility: visible; }
.main-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 2.5rem; }
.main-nav a { font-size: 2.5rem; font-weight: 800; color: var(--white); text-transform: uppercase; }
.main-nav a:hover { color: var(--secondary); letter-spacing: 0.1em; }

.nav-toggle { 
    display: flex !important; /* Force flex for all devices */
    flex-direction: column; gap: 6px; background: var(--primary); 
    padding: 12px; border: none; border-radius: 8px; cursor: pointer; z-index: 10001; 
}
.nav-toggle span { width: 25px; height: 2px; background: var(--white); transition: 0.3s; }

body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Axis 2: H-C Type-Only Hero */
.hero-code {
    padding: 12rem 0 8rem;
    text-align: center;
    background: radial-gradient(circle at center, #2d3436 0%, #0f0c29 100%);
}
.hero-code .container { max-width: 1000px; }

.btn-code {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    margin-top: 3rem;
}
.btn-code:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4); background: var(--secondary); }

/* Axis 3: F-F Numerical Counters */
.counters-section { padding: var(--section-pad) 0; background: rgba(255,255,255,0.02); }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem; text-align: center; }
.counter-item h3 { font-size: 4rem; color: var(--secondary); margin-bottom: 0.5rem; }
.counter-item p { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; color: var(--text-muted); }

/* Axis 5: U-B Method Block */
.method-section { padding: var(--section-pad) 0; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.method-image img { border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

/* Axis 4: C-A Vertical Cards & 21: 3x3 Grid */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.post-card-code { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    transition: 0.4s;
}
.post-card-code:hover { transform: translateY(-10px); border-color: var(--secondary); background: rgba(255,255,255,0.05); }
.post-card-code .thumb { height: 240px; overflow: hidden; }
.post-card-code .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.post-card-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-content .cat { color: var(--accent); font-weight: 800; font-size: 0.75rem; margin-bottom: 1rem; text-transform: uppercase; }
.post-card-content h3 { flex-grow: 1; font-size: 1.4rem; color: var(--white); margin-bottom: 1.5rem; }

/* Rule 8: Golden Standard Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 6rem 0; }
.pagination .page-numbers { 
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--border); font-weight: 800; color: var(--text-muted);
}
.pagination .page-numbers.current { background: var(--secondary); color: var(--bg-main); border-color: var(--secondary); }

/* Axis 6: FT-D CTA-footer */
.site-footer { padding: 8rem 0 4rem; background: #000; border-top: 1px solid var(--border); }
.footer-cta { text-align: center; margin-bottom: 6rem; border-bottom: 1px solid var(--border); padding-bottom: 6rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.footer-logo span { color: var(--secondary); }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; font-weight: 700; }
.footer-nav a:hover { color: var(--white); }

.footer-contact p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 3rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 1024px) {
    .counters-grid { grid-template-columns: 1fr 1fr; }
    .method-grid { grid-template-columns: 1fr; text-align: center; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .hero-code { padding-top: 8rem; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
