/* ==========================================================================
   Golden Goose Article Styles
   High-authority, conversion-optimized article template.
   Only loaded when article has is_golden_goose: true
   ========================================================================== */

/* ---------- Reading Progress Bar ---------- */
.gg-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ---------- Two-Column Layout ---------- */
.gg-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: start;
}

.gg-article {
    max-width: 720px;
    min-width: 0;
}

/* ---------- Sidebar ---------- */
.gg-sidebar {
    position: relative;
}

.gg-sidebar-inner {
    position: sticky;
    top: 80px;
}

/* Table of Contents */
.gg-toc {
    margin-bottom: 24px;
}

.gg-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    margin-bottom: 12px;
}

.gg-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--slate-200);
}

.gg-toc-list li {
    margin: 0;
}

.gg-toc-link {
    display: block;
    padding: 6px 0 6px 16px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--slate-500);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.15s ease;
}

.gg-toc-link:hover {
    color: var(--slate-700);
}

.gg-toc-link.active {
    color: var(--blue-600);
    border-left-color: var(--blue-600);
    font-weight: 600;
}

/* Sidebar CTA — prominent card */
.gg-sidebar-cta {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gg-sidebar-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    margin-bottom: 12px;
}

.gg-sidebar-cta-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
    line-height: 1.3;
}

.gg-sidebar-cta-text {
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin-bottom: 16px;
    line-height: 1.5;
}

.gg-sidebar-cta-btn {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 20px;
    background: var(--blue-600);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.gg-sidebar-cta-btn:hover {
    background: var(--blue-700);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.gg-sidebar-cta-note {
    font-size: 0.6875rem;
    color: var(--slate-400);
    margin-top: 8px;
}

/* ---------- Callout Boxes ---------- */
.gg-callout {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.gg-callout-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.gg-callout-content {
    color: var(--slate-700);
}

.gg-callout--pro_tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.gg-callout--pro_tip .gg-callout-icon { color: #d97706; }

.gg-callout--stat {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
}
.gg-callout--stat .gg-callout-icon { color: var(--blue-600); }

.gg-callout--quote {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--slate-400);
}
.gg-callout--quote .gg-callout-icon { color: var(--slate-400); }

.gg-callout--warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.gg-callout--warning .gg-callout-icon { color: #dc2626; }

/* ---------- Comparison Tables ---------- */
.gg-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
}

.gg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.gg-table thead {
    background: var(--slate-50);
}

.gg-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--slate-700);
    border-bottom: 2px solid var(--slate-200);
    white-space: nowrap;
}

.gg-table td {
    padding: 12px 16px;
    color: var(--slate-600);
    border-bottom: 1px solid var(--slate-100);
}

.gg-table tbody tr:last-child td {
    border-bottom: none;
}

.gg-table tbody tr:hover {
    background: var(--slate-50);
}

.gg-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 1.1rem;
}

.gg-cross {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- Inline Images / Figures ---------- */
.gg-figure {
    margin: 24px 0;
}

.gg-figure-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
}

.gg-figure-caption {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--slate-400);
    text-align: center;
}

/* ---------- Video Embeds ---------- */
.gg-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 24px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.gg-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* ---------- Inline CTAs ---------- */

/* Soft CTA — text link style */
.gg-cta-soft {
    margin: 16px 0;
    font-size: 1rem;
}

.gg-cta-soft a {
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--blue-200);
    transition: border-color 0.15s;
}

.gg-cta-soft a:hover {
    border-bottom-color: var(--blue-600);
}

/* Medium CTA — card style */
.gg-cta-medium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.gg-cta-medium p {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 0;
}

.gg-cta-medium .btn-primary-landing {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 10px 24px;
}

/* Hard CTA — full-width banner */
.gg-cta-hard {
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    border-radius: var(--radius-lg);
    margin: 48px 0;
}

.gg-cta-hard h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.gg-cta-hard .btn-primary-landing {
    background: white;
    color: var(--blue-700);
    font-weight: 700;
}

.gg-cta-hard .btn-primary-landing:hover {
    background: var(--slate-100);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .gg-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gg-sidebar {
        display: none;
    }

    .gg-cta-medium {
        flex-direction: column;
        text-align: center;
    }
}
