/* ============================================================
   YouTube Blaster – Frontend Styles
   Responsive Video Wrapper, Table of Contents, FAQ Block
   ============================================================ */

/* == Responsive Video Wrapper == */
.yb-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    margin: 0 0 2rem 0;
    background: #000;
    overflow: hidden;
    /* Fallback for browsers without aspect-ratio (IE / old Safari) */
}
@supports not (aspect-ratio: 16 / 9) {
    .yb-video-wrapper {
        padding-bottom: 56.25%;
        height: 0;
    }
}
.yb-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* == Table of Contents == */
.yb-toc {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-left: 4px solid #ff0000;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}
.yb-toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1a1a1a;
}
.yb-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.75;
}
.yb-toc ol li { margin: 0.15rem 0; }
.yb-toc ol li a { color: #0073aa; text-decoration: none; transition: color 0.2s; }
.yb-toc ol li a:hover { color: #ff0000; text-decoration: underline; }
.yb-toc ol ol { margin-top: 0.2rem; font-size: 0.9em; color: #555; }

/* == FAQ Block == */
.yb-faq-block { margin: 2.5rem 0 1rem 0; }
.yb-faq-block h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.yb-faq-item {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.yb-faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.yb-faq-question {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a1a;
    user-select: none;
}
.yb-faq-question::after { content: "+"; font-size: 1.4rem; color: #ff0000; font-weight: 400; transition: transform 0.2s; }
.yb-faq-item.is-open .yb-faq-question::after { transform: rotate(45deg); }
.yb-faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #444;
    line-height: 1.7;
}
.yb-faq-item.is-open .yb-faq-answer { max-height: 600px; padding: 1rem 1.25rem; }

/* == Also Read (Internal Links) == */
.yb-also-read {
    background: #fff8f0;
    border: 1px solid #fde8cc;
    border-left: 4px solid #ff0000;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
}
.yb-also-read h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ff0000;
    margin: 0 0 0.6rem 0;
}
.yb-also-read ul {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.8;
}
.yb-also-read ul li { margin: 0.1rem 0; }
.yb-also-read ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.yb-also-read ul li a:hover { color: #ff0000; text-decoration: underline; }

