/* Embed mode: menü iframe içinde mobil viewport ile */
html.theme-preview-embed,
body.theme-preview-embed {
    margin: 0;
    min-height: 100%;
    background: #fff;
}

/* Tam sekme: telefon + bilgi paneli */
.theme-preview-frame-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.14), transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(34, 211, 238, 0.08), transparent 40%),
        #07090e;
    color: #e2e8f0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-preview-stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 28px;
}

.theme-preview-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.theme-preview-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.theme-preview-back:hover {
    color: #cbd5e1;
}

.theme-preview-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
}

.theme-preview-info h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.theme-preview-tag {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
}

.theme-preview-lead {
    margin: 8px 0 0;
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.95rem;
}

.theme-preview-other {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.theme-preview-other h2 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.theme-preview-other ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.theme-preview-other a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.theme-preview-other a:hover {
    border-color: rgba(129, 140, 248, 0.35);
    background: rgba(99, 102, 241, 0.08);
}

.theme-preview-other strong {
    font-size: 0.85rem;
}

.theme-preview-other span {
    font-size: 0.72rem;
    color: #64748b;
}

.theme-preview-device-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.theme-preview-device {
    position: relative;
    width: min(100%, 404px);
    padding: 12px;
    border-radius: 42px;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.theme-preview-device-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 22px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.theme-preview-device-iframe {
    display: block;
    width: 100%;
    height: min(88vh, 920px);
    min-height: 680px;
    border: 0;
    border-radius: 32px;
    background: #fff;
}

.theme-preview-device-caption {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .theme-preview-stage {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 16px 32px;
    }

    .theme-preview-info {
        order: 2;
    }

    .theme-preview-device-col {
        order: 1;
    }

    .theme-preview-device-iframe {
        min-height: 560px;
        height: min(78vh, 860px);
    }
}
