/* ═══════════════════════════════════════════════
   FreeTrial Page Styles
   ═══════════════════════════════════════════════ */

/* ─── Tema Renk Değişkenleri (light + dark) ─── */
:root {
    --ft-text-primary:   #1a1a2e;
    --ft-text-secondary: #4a4a68;
    --ft-text-muted:     #6e6e85;
    --ft-card-bg:        rgba(0, 0, 0, 0.025);
    --ft-card-border:    rgba(0, 0, 0, 0.08);
    --ft-input-bg:       rgba(0, 0, 0, 0.03);
    --ft-input-border:   rgba(0, 0, 0, 0.1);
    --ft-placeholder:    #8a8aa3;
}
body.active-dark-mode {
    --ft-text-primary:   #ffffff;
    --ft-text-secondary: #cfcfdc;
    --ft-text-muted:     #9a9ab0;
    --ft-card-bg:        rgba(255, 255, 255, 0.03);
    --ft-card-border:    rgba(255, 255, 255, 0.08);
    --ft-input-bg:       rgba(255, 255, 255, 0.04);
    --ft-input-border:   rgba(255, 255, 255, 0.1);
    --ft-placeholder:    #6e6e85;
}

/* ─── Hero Section ─── */
.freetrial-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.freetrial-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(101,84,192,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.freetrial-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67,197,158,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ─── Hero sol açıklama metinleri ─── */
.freetrial-lead {
    color: var(--ft-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}
.ft-stat-value {
    font-size: 28px;
    font-weight: 800;
}
.ft-stat-value.purple { color: #6554C0; }
.ft-stat-value.green  { color: #43c59e; }
.ft-stat-label {
    font-size: 12px;
    color: var(--ft-text-muted);
    margin-top: 2px;
}

/* ─── Form Card ─── */
.trial-card {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.trial-card:hover {
    border-color: rgba(101,84,192,0.3);
    box-shadow: 0 8px 40px rgba(101,84,192,0.08);
}
.trial-card .badge-free {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6554C0, #43c59e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.trial-card .card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ft-text-primary);
}
.trial-card .card-subtitle {
    color: var(--ft-text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ─── Input Group ─── */
.trial-input-wrap {
    position: relative;
    margin-bottom: 24px;
}
.trial-input-wrap .input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6554C0;
    font-weight: 600;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.trial-input-wrap .form-control {
    padding-left: 100px;
    height: 56px;
    border-radius: 14px;
    font-size: 16px;
    background: var(--ft-input-bg);
    border: 1px solid var(--ft-input-border);
    color: var(--ft-text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.trial-input-wrap .form-control:focus {
    border-color: #6554C0;
    box-shadow: 0 0 0 3px rgba(101,84,192,0.15);
    outline: none;
    background: var(--ft-input-bg);
    color: var(--ft-text-primary);
}
.trial-input-wrap .form-control::placeholder {
    color: var(--ft-placeholder);
    opacity: 1;
}
.trial-input-wrap .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ft-text-muted);
    font-size: 18px;
}

/* ─── CTA Button ─── */
.btn-trial-start {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #6554C0, #8B78DB);
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-trial-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(101,84,192,0.35);
    color: #fff;
}
.btn-trial-start:active {
    transform: translateY(0);
}
.btn-trial-start::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn-trial-start:hover::after {
    left: 100%;
}

/* ─── Trust Signals ─── */
.trust-row {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ft-text-muted);
}
.trust-item i {
    color: #43c59e;
    font-size: 14px;
}

/* ─── Steps Section (bg-color-dark içinde, her zaman koyu zemin) ─── */
.steps-section {
    position: relative;
}
.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(101,84,192,0.3);
}
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(101,84,192,0.2), rgba(101,84,192,0.05));
    color: #8B78DB;
    font-weight: 800;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.step-order {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8B78DB;
    background: rgba(101,84,192,0.12);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 12px;
}
.step-card h3,
.step-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}
.step-card p {
    font-size: 14px;
    color: #cfcfdc;
    line-height: 1.6;
    margin: 0;
}

/* ─── Info Banner ─── */
.info-banner {
    background: linear-gradient(135deg, rgba(101,84,192,0.08), rgba(67,197,158,0.06));
    border: 1px solid rgba(101,84,192,0.18);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.info-banner .info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(101,84,192,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6554C0;
}
.info-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--ft-text-secondary);
    line-height: 1.6;
}
.info-banner strong {
    color: var(--ft-text-primary);
}

/* ─── SEO İçerik Bölümü ─── */
.ft-seo-lead {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ft-text-secondary);
}
.ft-seo-card {
    height: 100%;
    padding: 32px;
    border-radius: 16px;
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.ft-seo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(101,84,192,0.3);
}
.ft-seo-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.ft-seo-icon.is-twitch {
    background: rgba(145,70,255,0.14);
    color: #9146FF;
}
.ft-seo-icon.is-kick {
    background: rgba(83,252,24,0.14);
    color: #38c40f;
}
.ft-seo-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ft-text-primary);
}
.ft-seo-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ft-text-secondary);
    margin: 0;
}
.ft-seo-card a {
    color: #6554C0;
    font-weight: 600;
}
.ft-seo-card a:hover { text-decoration: underline; }
.ft-seo-note {
    margin-top: 28px;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(101,84,192,0.06), rgba(67,197,158,0.05));
    border: 1px solid rgba(101,84,192,0.15);
}
.ft-seo-note h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ft-text-primary);
}
.ft-seo-note p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ft-text-secondary);
    margin: 0;
}

/* ─── FAQ ─── */
.faq-trial .accordion-item {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-trial .accordion-button {
    background: transparent;
    color: var(--ft-text-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 18px 24px;
    box-shadow: none;
}
.faq-trial .accordion-button:not(.collapsed) {
    color: #6554C0;
    background: transparent;
}
.faq-trial .accordion-body {
    padding: 0 24px 18px;
    color: var(--ft-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ─── Status Table (Where.edge.php) ─── */
.status-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.status-table td {
    padding: 14px 20px;
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
}
.status-table td.label {
    border-radius: 12px 0 0 12px;
    border-right: none;
    text-align: left;
    font-weight: 600;
    color: var(--ft-text-secondary);
}
.status-table td.value {
    border-radius: 0 12px 12px 0;
    border-left: none;
    text-align: right;
    font-weight: 700;
    color: var(--ft-text-primary);
}

/* ─── Platform Seçici (Twitch / Kick) ─── */
.platform-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.platform-opt {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--ft-input-border);
    background: var(--ft-input-bg);
    color: var(--ft-text-secondary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.platform-opt:hover { border-color: rgba(101,84,192,0.4); }
.platform-opt i { font-size: 16px; }
/* Aktif Twitch → mor, aktif Kick → yeşil */
.platform-opt.is-active[data-platform="twitch"] {
    border-color: #9146FF;
    color: #fff;
    background: linear-gradient(135deg, #9146FF, #6554C0);
}
.platform-opt.is-active[data-platform="kick"] {
    border-color: #53fc18;
    color: #0b2b06;
    background: linear-gradient(135deg, #53fc18, #38c40f);
}
/* Kick seçiliyken input ikonu yeşil */
.trial-input-wrap .input-icon.is-kick { color: #38c40f; }

/* ─── Detay: 2 kolon (sol bilgi + sağ player) ─── */
.trial-detail-grid { align-items: stretch; }

/* ─── Canlı Player Kartı ─── */
.live-player-card {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}
.live-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 100px;
    color: #fff;
}
.platform-chip.is-twitch { background: linear-gradient(135deg, #9146FF, #6554C0); }
.platform-chip.is-kick   { background: linear-gradient(135deg, #53fc18, #38c40f); color: #0b2b06; }
.live-player-open {
    font-size: 13px;
    font-weight: 600;
    color: #6554C0;
    text-decoration: none;
    white-space: nowrap;
}
.live-player-open:hover { color: #8B78DB; text-decoration: underline; }
/* 16:9 responsive iframe */
.live-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.live-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.live-player-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ft-text-muted);
    font-size: 14px;
    background: var(--ft-input-bg);
}
.live-player-empty i { margin-right: 8px; }
.live-player-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--ft-text-muted);
    line-height: 1.5;
}
.live-player-note i { color: #6554C0; margin-top: 2px; }

/* ─── Kanal İstatistik Paneli (API ile doldurulur) ─── */
.channel-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--ft-input-bg);
    border: 1px solid var(--ft-card-border);
}
.cs-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ft-card-bg);
}
.cs-body { min-width: 0; flex: 1; }
.cs-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cs-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--ft-text-primary);
}
.cs-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(101,84,192,0.15);
    color: #8B78DB;
}
.cs-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ft-text-secondary);
}
.cs-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.cs-live i { font-size: 8px; }
.cs-live.is-on  { color: #e2482f; }
.cs-live.is-off { color: var(--ft-text-muted); }
.cs-metric { display: inline-flex; align-items: center; gap: 6px; }
.cs-metric b { color: var(--ft-text-primary); }
.cs-title {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ft-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .trial-card {
        padding: 32px 24px;
    }
    .freetrial-hero {
        min-height: auto;
        padding-top: 40px;
    }
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
    .live-player-card { padding: 16px; }
}
