/*
Theme Name: Icon-arc - UI & Design Hub
Author: Icon-arc Creative
Description: Platforma poświęcona innowacyjnym rozwiązaniom graficznym, ikonom и designowi sportowemu.
Version: 10.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;500;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #2563eb; /* Electric Blue */
    --secondary: #06b6d4; /* Cyan */
    --accent: #f59e0b; /* Amber */
    --bg-main: #f8fafc;
    --white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(15, 23, 42, 0.1);
    
    --container-width: 1280px;
    --content-width: 800px;
    --transition: all 0.3s ease;
    --radius: 16px;

    --section-pad: clamp(5rem, 12vw, 10rem);
}

* { 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.6;
}

h1, h2, h3, .logo, .btn-arc {
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(1.8rem, 8vw, 5rem); margin-bottom: 2rem; word-break: break-word; }
h2 { font-size: clamp(1.6rem, 5vw, 3rem); margin-bottom: 4rem; text-align: center; word-break: break-word; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

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

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

/* Axis 7: V-C Glassmorphism */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Axis 1: N-A Classic Split Header */
.site-header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    transition: var(--transition);
}
.site-header.scrolled { height: 70px; }

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    gap: 3rem; /* Rule 1.4: Protection against clumping */
}

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 8px; /* Spacing between name parts */
    font-size: 1.8rem !important;
    color: var(--primary) !important;
    text-transform: lowercase;
    min-width: 180px;
    flex-shrink: 0;
}
.logo span { color: var(--secondary); font-weight: 300; }

.main-nav ul { display: flex; list-style: none; gap: 3rem; }
.main-nav a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); opacity: 0.8; }
.main-nav a:hover { color: var(--primary); opacity: 1; }

.nav-toggle { display: none; }

/* Axis 2: H-C Overlay Hero */
.hero-arc {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.95) 100%);
}

.hero-content { max-width: 900px; z-index: 1; }

.btn-arc {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    margin-top: 2rem;
}
.btn-arc:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3); background: var(--secondary); }

/* Axis 3: F-B Icons & Description */
.features-section { padding: var(--section-pad) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }
.feature-item { text-align: center; padding: 4rem 2rem; border-radius: var(--radius); }
.feature-icon { 
    width: 80px; height: 80px; background: var(--primary); color: var(--white); 
    border-radius: 24px; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 2.5rem; font-size: 2rem;
}

/* Axis 5: U-D Photo Strip (Showcase) */
.showcase-arc { padding: var(--section-pad) 0; overflow: hidden; background: var(--white); }
.strip-container { display: flex; gap: 2rem; animation: scrollStrip 40s linear infinite; width: fit-content; }
.strip-item { width: 400px; height: 500px; flex-shrink: 0; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.strip-item:hover img { transform: scale(1.05); }

@keyframes scrollStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Axis 4: C-B Card with Icons */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.post-card-arc { 
    border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.post-card-arc:hover { transform: translateY(-10px); }
.post-card-arc .thumb { height: 280px; position: relative; }
.post-card-arc .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card-arc .meta-tag { 
    position: absolute; top: 20px; left: 20px; background: var(--primary); 
    color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}

.post-card-content { padding: 2.5rem; }
.post-card-content h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1.5rem; }
.post-card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

/* 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); background: var(--white); 
    font-weight: 700; color: var(--text-main);
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Axis 6: FT-C Three-column Footer */
.site-footer { background: #0f172a; color: #f1f5f9; padding: 10rem 0 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6rem; }

.footer-logo { 
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem; 
    margin-bottom: 2rem; 
    color: #38bdf8; 
}
.footer-logo span { color: #f8fafc; font-weight: 300; }
.footer-desc { color: #94a3b8; line-height: 1.8; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1.2rem; }
.footer-nav a { color: #cbd5e1; font-weight: 500; }
.footer-nav a:hover { color: #38bdf8; padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 6rem; padding-top: 3rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: #64748b; }

/* Axis 8: D-A Geometric Accents */
.dot-grid {
    position: absolute;
    width: 200px; height: 200px;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -1;
}

@media (max-width: 1200px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { height: 80px; }
    .header-inner { border-radius: 0; margin-top: 0; padding: 1rem 2rem; }
    .main-nav { display: none; }
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10001; 
    }
    .nav-toggle span { width: 25px; height: 2px; background: var(--text-main); transition: 0.3s; }
    
    body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    body.menu-open .main-nav { 
        display: flex; position: fixed; inset: 0; background: var(--white); 
        z-index: 10000; align-items: center; justify-content: center;
    }
    body.menu-open .main-nav ul { flex-direction: column; text-align: center; gap: 2.5rem; }
    body.menu-open .main-nav a { font-size: 1.8rem; }

    .features-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
}

/* 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;
}
