/*
Theme Name: HRL Amoled Premium Child
Description: Child theme for HRL Amoled Premium. Override template-parts, add custom CSS, extend functionality.
Template: hrl-theme
Version: 3.1.0
*/

/* ═══════════════════════════════════════════════════════
   CHILD THEME — Custom overrides go here.
   All parent template-parts can be overridden by
   copying them into this theme's template-parts/ folder.
   ═══════════════════════════════════════════════════════ */

/* Example: override accent color */
:root {
  --gold: #D4AF37;
  --gold-light: #F0D878;
}

/* Example: custom hero section */
.hrl-custom-hero {
  background: linear-gradient(135deg, #000 0%, #1a0a00 100%);
  padding: 120px 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   FIX: .reading-progress nie miał stylu na żywej stronie
   (był zdefiniowany tylko w nieużywanym assets/css/style-v5.css).
   Dotyczy single.php oraz page-sync-licensing-guide.php.
   ═══════════════════════════════════════════════════════ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gold);
    z-index: var(--z-max, 9999);
    transition: width 0.1s ease-out;
}

/* ═══════════════════════════════════════════════════════
   STRONA GŁÓWNA v7 — sekcje sprzedażowe
   ═══════════════════════════════════════════════════════ */

.hrl-hero-headline {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: var(--space-5);
}
.hrl-hero-accent {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pasek przekreślonych OZZ */
.hrl-ozz-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-6) 0;
}
.hrl-ozz-chip {
    position: relative;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
}
.hrl-ozz-chip::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: var(--color-error);
    transform: rotate(-8deg);
    border-radius: 2px;
}
.hrl-ozz-verdict {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--accent-gold);
}

/* Sekcja porównania kosztów */
.hrl-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-10);
}
.hrl-compare-col {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}
.hrl-compare-us {
    border-color: var(--border-active);
    box-shadow: var(--shadow-gold);
}
.hrl-compare-col h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-5);
}
.hrl-compare-us h3 { color: var(--accent-gold); }
.hrl-compare-list { list-style: none; padding: 0; margin: 0; }
.hrl-compare-list li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}
.hrl-compare-list li:last-child { border-bottom: none; }
.hrl-compare-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--color-error);
    font-weight: var(--font-bold);
}
.hrl-compare-list-yes li::before {
    content: "✓";
    color: var(--color-success);
}
.hrl-compare-note {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: var(--leading-relaxed);
}
.hrl-compare-note-gold { color: var(--accent-gold-light); }

.hrl-legal-note {
    margin-top: var(--space-6);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

/* Sekcja eventowa */
.hrl-event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-10);
}
.hrl-event-card { position: relative; padding-top: var(--space-10); }
.hrl-event-num {
    position: absolute;
    top: var(--space-5);
    left: var(--space-8);
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--accent-gold);
    opacity: 0.35;
    line-height: 1;
}
.hrl-event-card h4 { margin-bottom: var(--space-3); }
.hrl-event-card p { font-size: var(--text-sm); margin-bottom: 0; }
.hrl-event-cta { text-align: center; margin-top: var(--space-10); }

/* Jak to działa */
.hrl-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-10);
}
.hrl-step { text-align: center; }
.hrl-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-5);
}
.hrl-step h4 { margin-bottom: var(--space-3); }
.hrl-step p { font-size: var(--text-sm); }

@media (max-width: 980px) {
    .hrl-event-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hrl-compare-grid,
    .hrl-event-grid,
    .hrl-steps { grid-template-columns: 1fr; }
    .hrl-compare-col { padding: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════
   CMLP v7 — tabela kosztów, cennik, FAQ
   ═══════════════════════════════════════════════════════ */

/* Tabela porównania kosztów */
.hrl-cost-table-wrap { overflow-x: auto; margin-top: var(--space-10); }
.hrl-cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 640px;
}
.hrl-cost-table th,
.hrl-cost-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.hrl-cost-table thead th {
    color: var(--accent-gold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-bottom: 1px solid var(--border-default);
}
.hrl-cost-table tbody th {
    color: var(--text-primary);
    font-weight: var(--font-medium);
}
.hrl-cost-table td { color: var(--text-secondary); }
.hrl-cost-table .hrl-cost-ours {
    background: rgba(200, 169, 110, 0.06);
    color: var(--accent-gold-light);
}
.hrl-cost-table thead .hrl-cost-ours {
    background: rgba(200, 169, 110, 0.12);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.hrl-cost-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.hrl-cost-table tbody tr:hover .hrl-cost-ours { background: rgba(200, 169, 110, 0.1); }

/* Cennik */
.hrl-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-10);
    align-items: stretch;
}
.hrl-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
}
.hrl-price-featured {
    border: 2px solid var(--accent-gold);
    background: rgba(200, 169, 110, 0.05);
    box-shadow: var(--shadow-gold);
}
.hrl-price-event { border-color: var(--border-active); }
.hrl-price-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 3px 14px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
}
.hrl-price-badge-alt {
    background: var(--bg-primary);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}
.hrl-price-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.hrl-price-for { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: var(--space-5); }
.hrl-price-value {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: var(--space-6);
}
.hrl-price-value span {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-tertiary);
}
.hrl-price-value-sm { font-size: var(--text-xl); }
.hrl-price-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); flex: 1; }
.hrl-price-list li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.hrl-price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: var(--font-bold);
}
.hrl-price-note {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}
.hrl-price-btn { width: 100%; text-align: center; }

/* FAQ */
.hrl-faq-group { margin-bottom: var(--space-10); }
.hrl-faq-group-title {
    color: var(--accent-gold);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-active);
}
.hrl-faq-item { border-bottom: 1px solid var(--border-subtle); }
.hrl-faq-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.hrl-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-4) var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}
.hrl-faq-question:hover { color: var(--accent-gold); }
.hrl-faq-question:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.hrl-faq-icon {
    flex-shrink: 0;
    color: var(--accent-gold);
    font-size: var(--text-xl);
    line-height: 1;
}
.hrl-faq-answer { padding: 0 var(--space-2) var(--space-5); }
.hrl-faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .hrl-price-card { padding: var(--space-6) var(--space-5); }
}

/* ═══════════════════════════════════════════════════════
   RADIO HRL — lista kroków technicznych
   ═══════════════════════════════════════════════════════ */
.hrl-radio-steps {
    counter-reset: rstep;
    list-style: none;
    padding: 0;
    max-width: 820px;
    margin: var(--space-8) auto 0;
}
.hrl-radio-steps li {
    counter-increment: rstep;
    position: relative;
    padding: var(--space-4) 0 var(--space-4) var(--space-12);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}
.hrl-radio-steps li:last-child { border-bottom: none; }
.hrl-radio-steps li::before {
    content: counter(rstep);
    position: absolute;
    left: 0;
    top: var(--space-4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-active);
    color: var(--accent-gold);
    font-weight: var(--font-bold);
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   HRL BLOGCAST — indeks wpisów
   ═══════════════════════════════════════════════════════ */

.hrl-blog { padding: var(--space-12) 0 var(--space-16); }

/* Winieta */
.hrl-blog-masthead { text-align: center; margin-bottom: var(--space-10); }
.hrl-blog-kicker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.hrl-blog-rule { width: 32px; height: 1px; background: var(--accent-gold); opacity: 0.4; }
.hrl-blog-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    letter-spacing: var(--tracking-wide);
    margin: 0 0 var(--space-3);
}
.hrl-blog-title-accent { color: var(--accent-gold); }
.hrl-blog-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
    font-size: var(--text-base);
    max-width: 560px;
    margin: 0 auto;
}

/* Kategorie */
.hrl-blog-cats { margin-bottom: var(--space-10); }
.hrl-blog-cats ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}
.hrl-blog-cats a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.hrl-blog-cats a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.hrl-blog-cat-count {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    padding: 1px 7px;
}

/* Materiał wyróżniony */
.hrl-featured { margin-bottom: var(--space-12); }
.hrl-featured-link {
    display: block;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 440px;
    text-decoration: none;
}
.hrl-featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.hrl-featured-link:hover .hrl-featured-img { transform: scale(1.03); }
.hrl-featured-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.hrl-featured-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-10) var(--space-8);
}
.hrl-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}
.hrl-featured-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    color: #fff;
    margin: 0 0 var(--space-3);
    line-height: var(--leading-tight);
}
.hrl-featured-excerpt {
    color: rgba(255,255,255,0.75);
    margin: 0;
    max-width: 620px;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* Układ dwukolumnowy */
.hrl-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-10);
    align-items: start;
}
.hrl-blog-side { position: sticky; top: 100px; }

/* Siatka artykułów — przewiewna, dwie kolumny zamiast trzech */
.hrl-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-8);
}
.hrl-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base), transform var(--transition-base);
}
.hrl-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
}
.hrl-card-media { display: block; height: 190px; overflow: hidden; }
.hrl-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.hrl-card:hover .hrl-card-img { transform: scale(1.05); }
.hrl-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hrl-card-cat {
    font-size: 0.68rem;
    color: var(--accent-gold);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: var(--space-2);
}
.hrl-card-cat:hover { text-decoration: underline; }
.hrl-card-title {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-3);
    line-height: var(--leading-snug);
}
.hrl-card-title a { color: var(--text-primary); text-decoration: none; }
.hrl-card-title a:hover { color: var(--accent-gold); }
.hrl-card-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    flex: 1;
    margin-bottom: var(--space-4);
}

.hrl-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.hrl-meta-light { color: rgba(255,255,255,0.6); margin-top: var(--space-4); }
.hrl-meta-light time { color: var(--accent-gold); }

/* Paginacja */
.hrl-pagination { margin-top: var(--space-12); }
.hrl-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.hrl-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--space-3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}
.hrl-pagination .page-numbers:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.hrl-pagination .page-numbers.current {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: var(--font-bold);
}

/* Stan pusty */
.hrl-blog-empty { text-align: center; padding: var(--space-16) var(--space-4); }
.hrl-blog-empty h2 { margin-bottom: var(--space-3); }
.hrl-blog-empty p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto var(--space-8);
}
.hrl-blog-empty-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hrl-blog-layout { grid-template-columns: 1fr; }
    .hrl-blog-side { position: static; }
}
@media (max-width: 600px) {
    .hrl-featured-link { min-height: 340px; }
    .hrl-featured-body { padding: var(--space-6) var(--space-5); }
    .hrl-article-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════
   STOPKA — drobne poprawki
   ═══════════════════════════════════════════════════════ */
.footer-tagline {
    margin-top: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
}
.footer-custom-text {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* FAQ — sekcja "nie znalazłeś odpowiedzi" */
.hrl-faq-cta {
    text-align: center;
    margin-top: var(--space-12);
    padding: var(--space-10) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}
.hrl-faq-cta h2 { margin-bottom: var(--space-2); }
.hrl-faq-cta p { color: var(--text-secondary); margin-bottom: var(--space-6); }
.hrl-faq-cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

