/* ============================================================
   YouTube Extension — Page Styles
   File: youtube-extension.css
   Builds on top of Rankyfy common.css + keyword-research-extension.css
   Only adds styles not already covered by the base sheets.
   ============================================================ */


/* ============================================================
   HERO — Fake YouTube page + SEO overlay panel
   ============================================================ */
.yte-preview {
    display: flex;
    height: 340px;
    background: #0f0f0f;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Left — fake YouTube interface */
.yte-yt-panel {
    flex: 1;
    background: #0f0f0f;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yte-yt-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #212121;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.yte-yt-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.yte-yt-searchbar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

/* Video area */
.yte-video-area {
    display: flex;
    gap: 12px;
    padding: 14px;
    flex: 1;
    overflow: hidden;
}

.yte-video-thumb {
    width: 140px;
    flex-shrink: 0;
    height: 82px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yte-video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,85,0,0.15) 0%, transparent 60%);
}

.yte-play-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.yte-play-btn svg { fill: #0f0f0f; margin-left: 2px; }

.yte-duration {
    position: absolute;
    bottom: 5px;
    right: 6px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    z-index: 1;
}

.yte-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.yte-video-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yte-video-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

.yte-channel { color: rgba(255,255,255,0.7); font-weight: 600; }
.yte-dot { opacity: 0.4; }

/* Tag chips on the video */
.yte-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.yte-tag {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.yte-tag--more {
    background: rgba(255,85,0,0.15);
    color: var(--primary-color);
    border-color: rgba(255,85,0,0.25);
}


/* Right — SEO overlay panel */
.yte-overlay-panel {
    width: 175px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    overflow: hidden;
}

.yte-overlay-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.yte-overlay-score {
    margin-left: auto;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.yte-metric-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.yte-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

.yte-metric-row:last-child { border-bottom: none; }
.yte-metric-row:hover { background: rgba(255,255,255,0.04); }

.yte-metric-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    opacity: 1;
}

.yte-metric-val {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    opacity: 1;
}

.yte-val--accent { color: var(--primary-color); }
.yte-val--good   { color: #28a745; }
.yte-val--warn   { color: #ffc107; }


/* ============================================================
   SECTION 2 — Tag action bar (inside kre-issue-card)
   ============================================================ */
.yte-tag-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.yte-tag-count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    opacity: 1;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .yte-overlay-panel { width: 150px; }
}

@media (max-width: 767px) {
    .yte-preview {
        flex-direction: column;
        height: auto;
    }

    .yte-yt-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .yte-overlay-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .yte-metric-list {
        flex: 1;
        min-width: 200px;
    }
}