/* ==========================================================================
   Global Styles - Switzer Report Theme
   ========================================================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    --bg-white: #FFFFFF;
    --bg-light: #f8f8f8;
    --bg-cream: #FDFCFA;
    --bg-warm: #f8f8f8;
    --text-primary: #32373c;
    --text-secondary: #454545;
    --text-tertiary: #b3afaf;
    --accent-primary: #215b81;
    --accent-highlight: #1d93bd;
    --accent-secondary: #33475b;
    --accent-warm: #1d93bd;
    --accent-gold: #74c3d5;
    --border-light: #E5E5E5;
    --border-medium: #D0D0D0;
    --success-green: #009D59;
    --warning-orange: #f59e0b;
    --error-red: #D8442F;
}

/* Typography */
body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* View All Link */
.view-all-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-warm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 10px;
}

/* Content Box Pattern */
.content-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.content-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.content-box-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-box-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-warm);
    border-radius: 2px;
}

.content-box-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-tertiary);
}

.content-box-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.content-box-body {
    padding: 28px;
    overflow: hidden;
}

/* Ad Banners */
.ad-banner {
    background: var(--border-light);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.ad-banner-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.ad-banner-size {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.ad-banner-prefooter {
    background: var(--border-light);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.ad-placeholder {
    background: var(--border-light);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-placeholder.half-page {
    height: 600px;
}

.ad-placeholder-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.ad-placeholder-size {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sidebar Base */
.sidebar-widget {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 12px;
    height: 2px;
    background: var(--accent-warm);
}

/* Subscribe CTA - Sidebar */
.subscribe-cta-sidebar {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%);
    border-radius: 12px;
    padding: 32px;
    color: white;
    text-align: center;
}

.subscribe-cta-sidebar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.subscribe-cta-sidebar p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 24px;
}

.subscribe-cta-sidebar .cta-features {
    text-align: left;
    margin-bottom: 24px;
}

.subscribe-cta-sidebar .cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 10px;
}

.subscribe-cta-sidebar .cta-feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.subscribe-cta-sidebar .btn-trial {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--accent-warm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.subscribe-cta-sidebar .btn-trial:hover {
    background: var(--text-primary);
    color: white;
}

.subscribe-cta-sidebar .btn-subscribe {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    transition: all 0.2s;
}

.subscribe-cta-sidebar .btn-subscribe:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* Subscribe CTA - Banner Style */
.subscribe-cta-banner {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0d3a5c 100%);
    padding: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
}

.subscribe-cta-banner-content {
    flex: 1;
}

.subscribe-cta-banner h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.subscribe-cta-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 500px;
}

.subscribe-cta-banner-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.subscribe-cta-banner .btn-trial {
    padding: 16px 32px;
    background: var(--accent-warm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.subscribe-cta-banner .btn-trial:hover {
    background: var(--accent-gold);
}

.subscribe-cta-banner .btn-learn {
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    transition: all 0.2s;
}

.subscribe-cta-banner .btn-learn:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ============================================================
   PREMIUM MEMBER — hide ads and subscribe CTAs
   ============================================================ */
body.is-premium-member .ad-banner,
body.is-premium-member .ad-placeholder,
body.is-premium-member .ad-banner-prefooter,
body.is-premium-member .subscribe-cta-banner {
    display: none !important;
}
