/* =====================================================================
   YouTube Meta Generator Pro – YouTube Module CSS
   ===================================================================== */

/* ── Channel cards ───────────────────────────────────────────────────── */
.ytmgp-yt-channel-card {
    border-left: 4px solid #e11d48;
    transition: var(--ytmgp-transition);
}
.ytmgp-yt-channel-card:hover { border-color: #4f46e5; }

/* ── Video cards (grid) ───────────────────────────────────────────────── */
.ytmgp-yt-card {
    background: var(--ytmgp-surface);
    border: 1px solid var(--ytmgp-border);
    border-radius: var(--ytmgp-radius);
    overflow: hidden;
    transition: var(--ytmgp-transition);
    height: 100%;
}
.ytmgp-yt-card:hover {
    box-shadow: var(--ytmgp-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--ytmgp-primary);
}
.ytmgp-yt-card img { width: 100%; object-fit: cover; }

/* ── SEO Score ring ───────────────────────────────────────────────────── */
.ytmgp-seo-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 800;
    border: 3px solid;
    flex-shrink: 0;
}
.ytmgp-seo-ring.good   { border-color: #10b981; color: #10b981; }
.ytmgp-seo-ring.medium { border-color: #f59e0b; color: #f59e0b; }
.ytmgp-seo-ring.bad    { border-color: #e11d48; color: #e11d48; }

/* ── Progress bar animation ───────────────────────────────────────────── */
.ytmgp-opt-progress {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4f46e5, #10b981);
    background-size: 200% 100%;
    animation: ytmgp-progress-anim 1.5s linear infinite;
}
@keyframes ytmgp-progress-anim {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ── Optimization result blocks ───────────────────────────────────────── */
.ytmgp-opt-block {
    background: var(--ytmgp-bg);
    border-left: 3px solid var(--ytmgp-success);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 12px;
    position: relative;
}
.ytmgp-opt-block-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ytmgp-text-muted);
    margin-bottom: 6px;
}
.ytmgp-opt-copy {
    position: absolute; top: 10px; right: 10px;
    background: var(--ytmgp-surface);
    border: 1px solid var(--ytmgp-border);
    border-radius: 6px; padding: 2px 8px;
    font-size: .75rem; cursor: pointer;
    transition: var(--ytmgp-transition);
}
.ytmgp-opt-copy:hover { background: var(--ytmgp-primary); color: #fff; border-color: var(--ytmgp-primary); }

/* ── Score badges ─────────────────────────────────────────────────────── */
.ytmgp-score-good   { background: #10b981; color: #fff; }
.ytmgp-score-medium { background: #f59e0b; color: #fff; }
.ytmgp-score-bad    { background: #e11d48; color: #fff; }

/* ── Import progress overlay ──────────────────────────────────────────── */
.ytmgp-import-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 10500;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 16px; color: #fff;
}
.ytmgp-import-overlay .ytmgp-import-box {
    background: var(--ytmgp-surface);
    border-radius: 16px; padding: 32px 40px;
    text-align: center; color: var(--ytmgp-text);
    max-width: 380px; width: 90%;
}

/* ── Responsive table ─────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .ytmgp-yt-card { margin-bottom: 12px; }
}

/* ── Dark mode ────────────────────────────────────────────────────────── */
[data-theme="dark"] .ytmgp-yt-card { background: var(--ytmgp-surface); }
[data-theme="dark"] .ytmgp-opt-block { background: #0f172a; }
