/*
Theme Name: Kulisy Fikcji v5 ONE-PAGE
Theme URI: https://kulisyfikcji.pl
Author: Marcin
Description: Jednostronicowy motyw z wbudowaną sekcją wideo.
Version: 5.0
Text Domain: kulisy-fikcji
*/

:root {
    --bg-main: #090a0f;
    --bg-card: #12141d;
    --bg-glass: rgba(18, 20, 29, 0.75);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #e11d48;
    --accent-hover: #f43f5e;
    --border: #1e293b;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--text-main); text-decoration: none; transition: 0.3s ease; }
a:hover { color: var(--accent); }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-title span { color: var(--accent); }

.social-links { display: flex; gap: 12px; }
.social-links a {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-yt { background: #dc2626; color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,0.3); }
.btn-fb { background: #2563eb; color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.social-links a:hover { transform: translateY(-2px); color: #fff; }
.btn-yt:hover { box-shadow: 0 6px 20px rgba(220,38,38,0.5); }
.btn-fb:hover { box-shadow: 0 6px 20px rgba(37,99,235,0.5); }

.progress-container { width: 100%; height: 3px; background: transparent; position: absolute; bottom: -3px; left: 0; }
.progress-bar { height: 3px; background: var(--accent); width: 0%; box-shadow: 0 0 10px var(--accent); }

.hero-article { margin: 60px 0; padding: 0; }
.hero-header { text-align: center; margin-bottom: 50px; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 450px;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}
.hero-image-wrapper:hover .hero-image { transform: scale(1.05); }

.article-content { font-size: 1.15rem; color: #cbd5e1; }
.first-p::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding: 0.1em 0.1em 0 0;
    color: var(--accent);
    font-weight: 900;
}
.article-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 50px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.article-content h3::before { content: ''; display: block; width: 30px; height: 4px; background: var(--accent); border-radius: 2px; }
.article-content p { margin-bottom: 2rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.ai-note {
    background: rgba(225, 29, 72, 0.05);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-left: 4px solid var(--accent);
    padding: 30px;
    margin: 60px 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.05);
}
.ai-note::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.1), transparent);
    animation: scan 4s infinite linear;
}
@keyframes scan { 100% { left: 150%; } }
.ai-note h4 { color: var(--accent-hover); margin-bottom: 15px; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; }
.ai-note p { font-size: 1rem; margin-bottom: 1rem; color: #94a3b8; }
.ai-note p:last-child { margin-bottom: 0; }
.ai-note strong { color: #fff; }

/* Sekcja Wideo */
.video-section {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.video-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}
.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.2);
    border-color: var(--accent);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 50px 0; text-align: center; color: var(--text-muted); }

/* Rozbudowana stopka */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 30px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; text-align: left; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.footer-grid h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; }
.footer-grid p { font-size: 0.95rem; margin-bottom: 15px; line-height: 1.7; }
.contact-email { display: inline-block; margin-top: 15px; padding: 12px 24px; background: rgba(225, 29, 72, 0.1); border: 1px solid var(--accent); color: #fff; font-weight: bold; border-radius: 4px; transition: all 0.3s; letter-spacing: 1px; }
.contact-email:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 25px; text-align: center; font-size: 0.85rem; }
.ai-credit { color: #64748b; margin-top: 8px; font-style: italic; }