/* ============================================================
   PRIVATNET - SLEDOVANITV / TELEVIZE
   Samostatny styl stranky TV.
   Nacitani: po hlavnim style.css, pouze na strance SledovaniTV.
   ============================================================ */

/* Privatnet barvy - lokalni promenne pro TV */
#stv-page {
    --stv-green: #22c55e;
    --stv-green-dark: #16a34a;
    --stv-green-soft: #dcfce7;
    --stv-lime: #a4c639;
    --stv-blue: #0284c7;
    --stv-blue-dark: #075985;
    --stv-dark: #111827;
    --stv-text: #374151;
    --stv-muted: #64748b;
    --stv-border: #e5e7eb;
    --stv-bg: #ffffff;
    --stv-bg-soft: #f8fafc;
    color: var(--stv-text);
}

/* ============================================================
   HERO
   ============================================================ */

#stv-page .stv-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 40%, rgba(34, 197, 94, .14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eefbf2 100%);
    border-bottom: 1px solid var(--stv-border);
}

#stv-page .stv-hero-inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: 44px;
    padding: 55px 0 35px;
}

#stv-page .stv-hero-copy {
    position: relative;
    z-index: 2;
}

#stv-page .stv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--stv-green-soft);
    color: var(--stv-green-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#stv-page .stv-hero h1 {
    margin: 0;
    color: var(--stv-dark);
    text-align: left;
    font-size: clamp(2.5rem, 4.6vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.045em;
}

#stv-page .stv-hero h1 span {
    color: var(--stv-green);
}

#stv-page .stv-hero-lead {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--stv-text);
    font-size: 1.15rem;
    line-height: 1.65;
}

#stv-page .stv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

#stv-page .stv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#stv-page .stv-btn:hover {
    transform: translateY(-2px);
}

#stv-page .stv-btn-primary {
    background: var(--stv-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(34, 197, 94, .22);
}

#stv-page .stv-btn-primary:hover {
    background: var(--stv-green-dark);
    color: #fff;
}

#stv-page .stv-btn-secondary {
    background: #fff;
    border-color: var(--stv-border);
    color: var(--stv-dark);
}

#stv-page .stv-btn-secondary:hover {
    border-color: var(--stv-green);
    color: var(--stv-green-dark);
}

#stv-page .stv-hero-visual {
    position: relative;
    min-width: 0;
}

#stv-page .stv-hero-visual::before {
    content: "";
    position: absolute;
    inset: 12% 5% 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, .12);
    filter: blur(45px);
}

#stv-page .stv-hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 4 rychle vyhody pod hero */
#stv-page .stv-benefit-strip {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0 48px;
}

#stv-page .stv-benefit {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--stv-border);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .05);
}

#stv-page .stv-benefit strong {
    display: block;
    color: var(--stv-dark);
    font-size: .98rem;
}

#stv-page .stv-benefit span {
    display: block;
    margin-top: 4px;
    color: var(--stv-muted);
    font-size: .88rem;
}

/* ============================================================
   SPOLECNE SEKCE
   ============================================================ */

#stv-page .stv-section {
    padding: 64px 24px;
}

#stv-page .stv-section:nth-of-type(even) {
    background: var(--stv-bg-soft);
}

#stv-page .stv-section-title {
    width: min(1400px, 100%);
    margin: 0 auto 30px;
    padding: 0;
    border: 0;
    color: var(--stv-dark);
    text-align: left;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.15;
}

#stv-page .stv-section-subtitle {
    width: min(1400px, 100%);
    margin: -16px auto 30px;
    color: var(--stv-muted);
}

/* ============================================================
   BALICKY - vlastni grid, zadny globalni .container
   ============================================================ */

#stv-page .stv-package-grid {
    width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
    justify-content: center;
    gap: 22px;
    align-items: stretch;
}

/* Jakmile jsou 4 karty, roztahnou se rovnomerne pres dostupnou sirku. */
#stv-page .stv-package-grid:has(> .stv-package-card:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Na tabletu vzdy maximalne 2 sloupce. */
@media (max-width: 1150px) {
    #stv-page .stv-package-grid,
    #stv-page .stv-package-grid:has(> .stv-package-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(230px, 300px));
        justify-content: center;
    }
}

/* Na mobilu jedna karta pres dostupnou sirku. */
@media (max-width: 560px) {
    #stv-page .stv-package-grid,
    #stv-page .stv-package-grid:has(> .stv-package-card:nth-child(4)) {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
}

/* ============================================================
   KARTA TARIFU
   ============================================================ */

#stv-page .stv-package-card {
    position: relative;
    min-width: 0;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--stv-border);
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#stv-page .stv-package-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, .55);
    box-shadow: 0 15px 34px rgba(15, 23, 42, .12);
}

#stv-page .stv-package-card.is-featured {
    border: 2px solid var(--stv-green);
}

#stv-page .stv-package-badge {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--stv-green);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

#stv-page .stv-package-head {
    padding: 28px 22px 23px;
    background: linear-gradient(135deg, #9bc42d, #b7d83d);
    color: #fff;
    text-align: center;
}

#stv-page .stv-package-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.05;
}

#stv-page .stv-package-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    text-align: center;
}

#stv-page .stv-channel-count {
    margin: 0;
    color: var(--stv-text);
    font-size: .95rem;
    font-weight: 700;
}

#stv-page .stv-package-description {
    margin: 16px 0 0;
    color: var(--stv-muted);
    font-size: .94rem;
    line-height: 1.55;
}

#stv-page .stv-package-price {
    margin: 22px 0 0;
    color: var(--stv-dark);
    font-size: 1.55rem;
    font-weight: 900;
}

#stv-page .stv-package-price small {
    color: var(--stv-muted);
    font-size: .78rem;
    font-weight: 600;
}

#stv-page .stv-price-note {
    margin: 7px 0 0;
    color: var(--stv-muted);
    font-size: .82rem;
    font-style: italic;
}

#stv-page .stv-package-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

#stv-page .stv-package-actions a,
#stv-page .stv-package-actions button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 16px;
    border-radius: 7px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease,
                color .2s ease, transform .2s ease;
}

#stv-page .stv-package-actions a:hover,
#stv-page .stv-package-actions button:hover {
    transform: translateY(-1px);
}

#stv-page .stv-info-button {
    border: 1px solid var(--stv-green);
    background: #fff;
    color: var(--stv-green-dark);
}

#stv-page .stv-info-button:hover {
    background: var(--stv-green-soft);
    color: #15803d;
}

#stv-page .stv-order-button {
    border: 1px solid var(--stv-green);
    background: var(--stv-green);
    color: #fff;
}

#stv-page .stv-order-button:hover {
    background: var(--stv-green-dark);
    border-color: var(--stv-green-dark);
    color: #fff;
}

/* mensi karty doplnku */
#stv-page .stv-addon-grid .stv-package-card,
#stv-page .stv-extension-grid .stv-package-card {
    min-height: 340px;
}

#stv-page .stv-addon-grid .stv-package-head {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

#stv-page .stv-extension-grid .stv-package-head {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

/* ============================================================
   MODAL - DETAIL BALÍČKU
   ============================================================ */

.stv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    width: 100%;
    height: 100vh;
    padding: 30px;
    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.72);

    align-items: center;
    justify-content: center;

    overflow-y: auto;
}

.stv-modal.is-open {
    display: flex;
}

.stv-modal-content {
    position: relative;

    width: min(1100px, 100%);
    max-height: calc(100vh - 60px);

    margin: auto;
    padding: 32px;
    box-sizing: border-box;

    overflow-y: auto;

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.stv-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;

    border: 0;
    background: transparent;

    color: #64748b;
    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.stv-program-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.stv-program-item {
    min-width: 0;
    padding: 10px 6px;
    background: var(--stv-bg-soft);
    border: 1px solid var(--stv-border);
    border-radius: 9px;
    text-align: center;
}

.stv-program-item img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin: 0 auto 6px;
}

.stv-program-item span {
    display: block;
    overflow: hidden;
    color: var(--stv-text);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1150px) {
    #stv-page .stv-hero-inner {
        grid-template-columns: 1fr 1fr;
    }

    #stv-page .stv-program-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    #stv-page .stv-hero-inner {
        width: min(100% - 32px, 720px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 38px;
        text-align: center;
    }

    #stv-page .stv-hero h1,
    #stv-page .stv-section-title {
        text-align: center;
    }

    #stv-page .stv-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    #stv-page .stv-hero-actions {
        justify-content: center;
    }

    #stv-page .stv-hero-visual {
        max-width: 650px;
        margin: 0 auto;
    }

    #stv-page .stv-benefit-strip {
        width: min(100% - 32px, 720px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #stv-page .stv-program-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #stv-page .stv-section {
        padding: 45px 16px;
    }

    #stv-page .stv-package-card {
        min-height: 0;
    }

    #stv-page .stv-benefit-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #stv-page .stv-hero-actions {
        display: grid;
    }

    #stv-page .stv-btn {
        width: 100%;
    }

    #stv-page .stv-modal {
        padding: 12px;
    }

    #stv-page .stv-modal-content {
        padding: 25px 16px;
    }

    #stv-page .stv-program-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
