/* =========================================================
   PLATFORM SECTION — Homepage Module
   /public/frontend/css/platform-section.css
   CSS ONLY — no inline styles in JS or HTML
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   RENK DEĞİŞKENLERİ
   Tüm renkleri buradan değiştirerek sitenin temasına
   uygun hale getirebilirsiniz.
   ───────────────────────────────────────────────────────── */
:root {
    --ps-bg:           #0f1117;
    --ps-card-bg:      #1a1d27;
    --ps-border:       #2a2d3a;
    --ps-accent:       #4f8ef7;
    --ps-accent-dark:  #2f6de0;
    --ps-text-dark:    #f0f2f8;
    --ps-text-mid:     #9aa0b8;
    --ps-text-light:   #5c6180;
    --ps-shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
    --ps-shadow-md:    0 6px 24px rgba(0,0,0,0.40);
    --ps-radius:       14px;
    --ps-card-radius:  10px;
}

/* ---- Section Wrapper ---- */
.ps-section {
    background: var(--ps-bg);
    padding: 72px 0 80px;
}

.ps-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 64px;
}

/* =========================================================
   LEFT COLUMN — Text Content
   ========================================================= */
.ps-left {
    flex: 1 1 0;
    min-width: 0;
}

.ps-badge {
    display: inline-block;
    background: var(--ps-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ps-heading {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--ps-text-dark);
    line-height: 1.12;
    margin: 0 0 6px;
}

.ps-heading-accent {
    display: block;
    color: var(--ps-accent);
}

.ps-description {
    font-size: 15px;
    color: var(--ps-text-mid);
    line-height: 1.7;
    margin: 18px 0 22px;
    max-width: 500px;
}

.ps-note {
    font-size: 12px;
    color: var(--ps-text-light);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ps-border);
    border-radius: 7px;
    padding: 11px 15px;
    max-width: 500px;
    line-height: 1.55;
}

/* =========================================================
   RIGHT COLUMN — Platform Grid
   ========================================================= */
.ps-right {
    flex: 0 0 470px;
    min-width: 0;
}

.ps-available-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--ps-text-dark);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* =========================================================
   PLATFORM CARD — Base
   ========================================================= */
.ps-card {
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-card-radius);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    box-shadow: var(--ps-shadow-sm);
    text-decoration: none;
    color: inherit;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ps-card:hover {
    box-shadow: var(--ps-shadow-md);
    transform: translateY(-2px);
    border-color: var(--ps-accent);
    text-decoration: none;
    color: inherit;
}

.ps-card.ps-card-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.ps-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.ps-card-info {
    min-width: 0;
    flex: 1;
}

.ps-card-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ps-text-dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ps-card-sub {
    font-size: 10.5px;
    color: var(--ps-text-light);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   PLATFORM ICON BRAND COLORS
   ========================================================= */
.ps-icon-samsung        { background: #1428A0; color: #fff; }
.ps-icon-lg             { background: #a50034; color: #fff; }
.ps-icon-android_tv     { background: #2ab36b; color: #fff; }
.ps-icon-android_mobile { background: #3ddc84; color: #1c1c1c; }
.ps-icon-apple          { background: #1d1d1f; color: #fff; }
.ps-icon-firestick      { background: #ff9900; color: #fff; }
.ps-icon-roku           { background: #6c3fbd; color: #fff; }

/* Samsung icon — text-based brand logo */
.ps-icon-samsung::after  { content: 'S'; font-size: 20px; font-weight: 900; font-style: italic; }
.ps-icon-lg::after       { content: 'LG'; font-size: 14px; font-weight: 900; }
.ps-icon-roku::after     { content: 'R'; font-size: 20px; font-weight: 900; }

/* Android TV ve Android Mobile artık iki ayrı bağımsız kart —
   dropdown kodu bu dosyada YOKTUR. */

/* =========================================================
   FIRE STICK POPUP — Downloader Code
   ========================================================= */
.ps-firestick-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.ps-firestick-overlay.open {
    display: flex;
}

.ps-firestick-modal {
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-border);
    border-radius: 14px;
    box-shadow: var(--ps-shadow-md);
    padding: 28px 28px 24px;
    max-width: 340px;
    width: 90%;
    position: relative;
    animation: ps-modal-in 0.2s ease;
}

@keyframes ps-modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ps-firestick-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ps-firestick-modal-icon {
    width: 38px;
    height: 38px;
    background: #ff9900;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}

.ps-firestick-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ps-text-dark);
}

.ps-firestick-modal-sub {
    font-size: 11px;
    color: var(--ps-text-light);
    margin-top: 2px;
}

.ps-firestick-code-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    margin: 8px 0 12px;
}

.ps-firestick-code-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.ps-firestick-code-value {
    font-size: 2.6rem;
    font-weight: 900;
    color: #ff9900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.12em;
    display: block;
}

.ps-firestick-code-desc {
    font-size: 12px;
    color: var(--ps-text-light);
    line-height: 1.55;
    margin-top: 8px;
    text-align: center;
}

.ps-firestick-steps {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
}

.ps-firestick-steps-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ps-text-dark);
    margin-bottom: 6px;
}

.ps-firestick-steps ol {
    list-style: decimal;
    padding-left: 18px;
    margin: 0;
}

.ps-firestick-steps li {
    font-size: 11.5px;
    color: var(--ps-text-mid);
    line-height: 1.6;
    margin-bottom: 2px;
}

.ps-firestick-steps li strong {
    color: var(--ps-text-dark);
    font-weight: 700;
}

.ps-firestick-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--ps-border);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-light);
    font-size: 13px;
    transition: background 0.12s;
}

.ps-firestick-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--ps-text-dark);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
    .ps-container {
        flex-direction: column;
        gap: 40px;
    }

    .ps-right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .ps-description,
    .ps-note {
        max-width: 100%;
    }

    .ps-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 540px) {
    .ps-section {
        padding: 44px 0 52px;
    }

    .ps-heading {
        font-size: 1.75rem;
    }

    .ps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ps-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 12px;
    }

    .ps-card-sub {
        display: none;
    }

    .ps-firestick-modal {
        padding: 22px 18px 18px;
    }

    .ps-firestick-code-value {
        font-size: 2rem;
    }
}
