/* ═══════════════════════════════════════════════════════════
   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 0 24px;
}
.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;
}

/* ── 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; }
}

/* ── FEATURETTES ── */
.sqg-featurettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.sqg-feat {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sqg-feat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.sqg-feat strong { font-size: 0.92rem; font-weight: 700; color: #1a1a2e; }
.sqg-feat span   { font-size: 0.82rem; color: #64748b; line-height: 1.4; }

/* ── 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;
}
.sqg-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f8;
}
.sqg-section-h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.sqg-section-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ── 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 { padding-left: 20px; }
.sqg-content li { margin-bottom: 8px; line-height: 1.65; color: #334155; }
.sqg-content p  { line-height: 1.7; color: #334155; }

/* 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; }

/* 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-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; }

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