/**
 * HR:STAT — Ewidencja czasu pracy — Styles
 * Ładowany tylko na tej podstronie via wp_enqueue_style conditional
 *
 * @package hrstat
 */

/* ══════════════════════════════════════════
   CONTAINER — nadpisuje wąski kontener jeśli trzeba
══════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

/* ══════════════════════════════════════════
   SUBPAGE HERO
══════════════════════════════════════════ */
.subpage-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 5rem 0 0;
    overflow: hidden;
    position: relative;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(71,85,105,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.subpage-hero__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

.subpage-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-xlight);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.subpage-hero__eyebrow svg {
    width: 13px;
    height: 13px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.subpage-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-primary);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.subpage-hero__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.subpage-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero visual */
.subpage-hero__visual {
    position: relative;
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.subpage-hero__frame {
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 0 1px rgba(71,85,105,.1),
        0 -4px 40px rgba(71,85,105,.14);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
}

.subpage-hero__frame img {
    width: 100%;
    display: block;
}

.subpage-hero__badge {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 2;
}

.subpage-hero__badge--tl { top: -12px; left: 40px; }
.subpage-hero__badge--br { bottom: 24px; right: 40px; }

.subpage-hero__badge .badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-xlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subpage-hero__badge .badge-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   FEATURE SECTIONS
══════════════════════════════════════════ */
.feature-section {
    padding: 6rem 0;
    background: #ffffff;
}

.feature-section--alt {
    background: var(--bg, #f8fafc);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-row--reverse .feature-row__content { order: 2; }
.feature-row--reverse .feature-row__visual  { order: 1; }

/* Eyebrow */
.feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-xlight);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.feature-eyebrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Heading */
.feature-row__content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--text-primary);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

.feature-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .93rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.feature-list li::before {
    content: '';
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: var(--brand-xlight);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.feature-list__more {
    font-size: .85rem !important;
    color: var(--brand) !important;
    font-weight: 600;
    font-style: italic;
}

.feature-list__more::before {
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* WORK GUARD badge */
.workguard-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: .01em;
}

.workguard-badge svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Feature visual */
.feature-row__visual {
    position: relative;
}

.feature-visual__deco {
    position: absolute;
    width: 380px;
    height: 320px;
    background: var(--brand);
    opacity: .06;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    pointer-events: none;
    z-index: 0;
}

.feature-visual__frame {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(71,85,105,.1),
        0 20px 50px rgba(71,85,105,.13);
    overflow: hidden;
}

.feature-visual__frame img {
    width: 100%;
    display: block;
}

/* Placeholder gdy brak obrazka */
.img-placeholder {
    background: var(--brand-subtle, #f1f5f9);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    font-weight: 500;
    border: 2px dashed var(--border, #e2e8f0);
    border-radius: 14px;
}

.img-placeholder svg {
    width: 44px;
    height: 44px;
    stroke: var(--brand-xlight, #e2e8f0);
    fill: none;
    stroke-width: 1.5;
}

.img-placeholder small {
    font-size: 12px;
    opacity: .65;
}

/* ══════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════ */
.comparison-section {
    background: var(--text-primary, #0f172a);
    padding: 6rem 0;
}

.comparison__header {
    text-align: center;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table thead tr { border-bottom: 1px solid rgba(255,255,255,.08); }

.cmp-th--label {
    padding: 1.1rem 1.5rem;
    width: 38%;
    background: rgba(255,255,255,.03);
}

.cmp-th--bad {
    padding: 1.1rem 1.5rem;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: left;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.45);
    width: 31%;
}

.cmp-th--good {
    padding: 1.1rem 1.5rem;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: left;
    background: var(--brand, #475569);
    color: white;
    width: 31%;
}

.comparison-table tbody tr {
    border-top: 1px solid rgba(255,255,255,.06);
    transition: background .15s;
}

.comparison-table tbody tr:hover .cmp-td--label,
.comparison-table tbody tr:hover .cmp-td--bad,
.comparison-table tbody tr:hover .cmp-td--good {
    filter: brightness(1.08);
}

.cmp-td--label {
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255,255,255,.02);
}

.cmp-td--bad {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,.02);
}

.cmp-td--good {
    padding: 1rem 1.5rem;
    background: rgba(71,85,105,.28);
}

.cmp-yes,
.cmp-no {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.cmp-yes {
    color: #4ade80;
    font-weight: 600;
}

.cmp-yes svg {
    width: 16px;
    height: 16px;
    stroke: #4ade80;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.cmp-no {
    color: rgba(255,255,255,.3);
}

.cmp-no svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255,255,255,.25);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   BOTTOM CTA
══════════════════════════════════════════ */
.bottom-cta-section {
    background: var(--brand, #475569);
    padding: 5rem 0;
    text-align: center;
}

.bottom-cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: white;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
    font-weight: 800;
}

.bottom-cta-section p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-cta__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--brand, #475569);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
    border: 2px solid white;
    letter-spacing: -.01em;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,.5);
    transition: all .2s;
    letter-spacing: -.01em;
}

.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,.1);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .feature-row { gap: 3rem; }
}

@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-row--reverse .feature-row__content { order: 1; }
    .feature-row--reverse .feature-row__visual  { order: 2; }

    .feature-section { padding: 4rem 0; }

    .subpage-hero__badge { display: none; }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: .75rem 1rem;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .subpage-hero__visual { display: none; }
    .feature-visual__deco { display: none; }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
