/* ═══════════════════════════════════════════════════════════
   SEO Questions Generator — Frontend CSS
   Design: JustPortal-style, modern, clean
═══════════════════════════════════════════════════════════ */

/* ── RESET / BASE ── */
.sqg-hub *, .sqg-single-wrap * { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════
   HUB PAGE
═══════════════════════════════════════════════════════════ */
.sqg-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #f8f9fc;
    min-height: 100vh;
}

/* ── HERO ── */
.sqg-hub-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e40af 100%);
    padding: 56px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sqg-hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sqg-hub-hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.sqg-hub-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.sqg-hub-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin: 0;
}
.sqg-hub-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.sqg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
}

/* ── BODY ── */
.sqg-hub-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 20px 64px;
}
.sqg-breadcrumb--hub {
    margin-bottom: 28px;
}
.sqg-category-section {
    margin-bottom: 32px;
}
.sqg-category-section .sqg-cards-grid {
    margin-bottom: 8px;
}

/* ── AD BANNER ── */
.sqg-ad-banner {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
    text-decoration: none;
    box-shadow: 0 2px 16px rgba(30,27,75,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sqg-ad-banner:hover {
    box-shadow: 0 6px 28px rgba(30,27,75,0.14);
    transform: translateY(-2px);
    text-decoration: none;
}
.sqg-ad-img-wrap {
    flex-shrink: 0;
    width: 220px;
    min-height: 110px;
    overflow: hidden;
    background: #f0f0f8;
}
.sqg-ad-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sqg-ad-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sqg-ad-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 4px;
}
.sqg-ad-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
    line-height: 1.3;
}
.sqg-ad-sub {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
}
.sqg-ad-cta-wrap {
    flex-shrink: 0;
    padding: 20px 28px;
    display: flex;
    align-items: center;
}
.sqg-ad-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.sqg-ad-banner:hover .sqg-ad-cta-btn { opacity: 0.9; }

@media (max-width: 640px) {
    .sqg-ad-banner { flex-direction: column; }
    .sqg-ad-img-wrap { width: 100%; min-height: 140px; }
    .sqg-ad-cta-wrap { padding: 0 20px 20px; width: 100%; }
    .sqg-ad-cta-btn  { width: 100%; text-align: center; }
}

/* ── CATEGORY NAV ── */
.sqg-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.sqg-cat-nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s;
}
.sqg-cat-nav-link:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
    text-decoration: none;
}

/* ── HUB SECTION ── */
.sqg-hub-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

/* ── CARDS GRID ── */
.sqg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}
.sqg-card-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
}
.sqg-card-link::after {
    content: '→';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #c7d2e8;
    transition: color 0.15s, right 0.15s;
}
.sqg-card-link:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 10px rgba(99,102,241,0.1);
    background: #fafbff;
    text-decoration: none;
}
.sqg-card-link:hover::after { color: #6366f1; right: 10px; }
.sqg-card-kw {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    padding-right: 20px;
}
.sqg-card-snippet {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
    padding-right: 20px;
}

/* ── EMPTY STATE ── */
.sqg-hub-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
}
.sqg-hub-empty p { color: #64748b; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE
═══════════════════════════════════════════════════════════ */
.sqg-single-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

.sqg-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) {
    .sqg-single-layout { grid-template-columns: 1fr; }
}

/* Breadcrumb */
.sqg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 24px;
}
.sqg-breadcrumb a { color: #6366f1; text-decoration: none; }
.sqg-breadcrumb a:hover { text-decoration: underline; }

/* Category badge */
.sqg-category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.sqg-single-h1 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.sqg-single-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 16px;
}
.sqg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* TL;DR box */
.sqg-tldr-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-left: 4px solid #6366f1;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 28px;
}
.sqg-tldr-box strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6366f1;
    font-weight: 700;
    margin-bottom: 8px;
}
.sqg-tldr-box p { margin: 0; line-height: 1.65; color: #1e293b; }

/* Content */
.sqg-content h2 { font-size: 1.1rem; font-weight: 700; margin-top: 28px; margin-bottom: 12px; color: #0f172a; }
.sqg-content ul, .sqg-mistakes-list { padding-left: 20px; }
.sqg-steps-list { padding-left: 22px; }
.sqg-content li, .sqg-steps-list li, .sqg-mistakes-list li { margin-bottom: 10px; line-height: 1.65; color: #334155; }

.sqg-readable-prose p {
    margin: 0 0 1.25em;
    line-height: 1.8;
    font-size: 1.03rem;
    color: #334155;
    max-width: 68ch;
}
.sqg-readable-prose p:last-child {
    margin-bottom: 0;
}
.sqg-section-body.sqg-readable-prose {
    margin-bottom: 8px;
}
.sqg-faq-answer.sqg-readable-prose p {
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: none;
}

/* FAQ Accordion */
.sqg-faq-accordion { margin-top: 8px; border: 1px solid #e9edf5; border-radius: 10px; overflow: hidden; }
.sqg-faq-item { border-bottom: 1px solid #e9edf5; }
.sqg-faq-item:last-child { border-bottom: none; }
.sqg-faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: #1e293b;
    list-style: none;
    background: #fafbff;
    transition: background 0.15s;
}
.sqg-faq-item summary::-webkit-details-marker { display: none; }
.sqg-faq-item summary::after {
    content: '+';
    float: right;
    font-weight: 400;
    color: #6366f1;
}
.sqg-faq-item[open] summary { background: #f0f4ff; }
.sqg-faq-item[open] summary::after { content: '−'; }
.sqg-faq-answer { padding: 0 18px 14px; color: #475569; font-size: 0.95rem; }
.sqg-faq-answer p { margin: 0 0 8px; }

/* Back link */
.sqg-back-link { margin-top: 32px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.sqg-back-link a { color: #6366f1; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.sqg-back-link a:hover { text-decoration: underline; }

/* ─── CTA card (chenar) ─── */
.sqg-cta-card {
    margin: 0;
    padding: 0;
}
.sqg-cta-card__border {
    border: 2px solid #6366f1;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 55%, #f1f5ff 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 28px rgba(99, 102, 241, 0.12);
    overflow: hidden;
    position: relative;
}
.sqg-cta-card__border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.sqg-cta-card__inner {
    padding: 24px 26px;
    position: relative;
    z-index: 1;
}
.sqg-cta-card__eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6366f1;
}
.sqg-cta-card__text {
    margin: 0 0 18px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #334155;
    max-width: 52ch;
}
.sqg-cta-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.sqg-cta-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.34);
    opacity: 0.96;
}
.sqg-cta-card__arrow {
    font-size: 1.05em;
    line-height: 1;
}

.sqg-single-cta-bottom {
    margin: 40px 0 12px;
}
.sqg-single-cta-bottom .sqg-cta-card__inner {
    padding: 28px 30px;
}
.sqg-single-cta-bottom .sqg-cta-card__text {
    font-size: 1.06rem;
}

.sqg-cta-card--sidebar .sqg-cta-card__border {
    border-width: 1.5px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1);
}
.sqg-cta-card--sidebar .sqg-cta-card__inner {
    padding: 18px 16px;
}
.sqg-cta-card--sidebar .sqg-cta-card__text {
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.sqg-cta-card--sidebar .sqg-cta-card__btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.84rem;
}

.sqg-hub-wrap .sqg-cta-card,
.sqg-hub-section .sqg-cta-card {
    margin-top: 28px;
}

.sqg-sidebar-block.sqg-sidebar-services {
    padding: 0;
    background: transparent;
    border: none;
}
.sqg-sidebar-block.sqg-sidebar-services + .sqg-sidebar-block {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
}

@media (max-width: 768px) {
    .sqg-cta-card__inner {
        padding: 20px 18px;
    }
    .sqg-cta-card__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar */
.sqg-single-sidebar {
    position: sticky;
    top: 20px;
    background: #fafbff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    padding: 18px 20px;
}
.sqg-single-sidebar h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin: 0 0 14px;
}
.sqg-sidebar-block + .sqg-sidebar-block {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
}
.sqg-sidebar-service-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    line-height: 1.4;
}
.sqg-sidebar-service-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.sqg-related-list { list-style: none; margin: 0; padding: 0; }
.sqg-related-list li { border-bottom: 1px solid #f1f5f9; }
.sqg-related-list li:last-child { border-bottom: none; }
.sqg-related-list a {
    display: block;
    font-size: 0.83rem;
    color: #374151;
    text-decoration: none;
    padding: 8px 0;
    line-height: 1.4;
    transition: color 0.15s;
}
.sqg-related-list a:hover { color: #6366f1; text-decoration: none; }

.sqg-products-block { margin: 28px 0; }
.sqg-products-heading { font-size: 1.15rem; margin: 0 0 14px; color: #1e293b; }
.sqg-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 640px) {
    .sqg-products-grid { grid-template-columns: 1fr; }
}
.sqg-product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.sqg-product-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    text-decoration: none;
}
.sqg-product-image img { width: 100%; height: auto; border-radius: 6px; }
.sqg-product-title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; color: #1e293b; }
.sqg-product-price { font-size: 0.9rem; color: #6366f1; font-weight: 600; }
.sqg-product-price del { color: #94a3b8; font-weight: 400; margin-right: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .sqg-cards-grid { grid-template-columns: 1fr; }
}
