/* === EMBED PAGE STYLES === */
body {
    overflow-y: auto !important;
    height: auto !important;
}

.embed-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.embed-container {
    max-width: 1400px;
    margin: 0 auto;
}

.embed-header {
    text-align: center;
    margin-bottom: 3rem;
}

.embed-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #a855f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.embed-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.btn-back-embed {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-glow);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-back-embed:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-glow);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === EMBED CONTENT LAYOUT === */
.embed-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.preview-section,
.config-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-glow);
}

/* === PREVIEW FRAME === */
.preview-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === CONFIG CONTROLS === */
.config-group {
    margin-bottom: 1.5rem;
}

.config-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-select,
.config-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.config-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.config-select option {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
}

.config-select:focus,
.config-input:focus {
    outline: none;
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
}

/* === CODE BLOCK === */
.code-block {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    position: relative;
}

.code-block code {
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    line-height: 1.6;
    padding-right: 80px;
    word-break: break-all;
}

.btn-copy {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-glow);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #0284c7;
    transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .embed-content {
        grid-template-columns: 1fr;
    }

    .embed-header h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .embed-page {
        padding: 1rem;
    }

    .embed-container {
        padding: 0;
    }

    .embed-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .embed-header p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .preview-section,
    .config-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .code-block {
        padding: 0.75rem;
    }

    .code-block code {
        font-size: 0.75rem;
        padding-right: 0;
        padding-bottom: 3rem;
    }

    .btn-copy {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        justify-content: center;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn-back-embed {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}