/* Modern Article Design - Blue Theme */
/* Based on reference design from artifact */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-100: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-600);
    background-color: white;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header */
header, .header {
    background: linear-gradient(to bottom right, var(--gray-100), white);
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

header p, .header p {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--gray-600);
}

/* Main Content */
main, .main-content, article {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Headings */
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1rem 0 0.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0.75rem 0 0.5rem;
}

/* Paragraphs */
p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Strong/Bold */
strong, b {
    font-weight: 600;
    color: var(--gray-800);
}

/* Lists */
ul, ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: var(--gray-600);
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Tip/Info Box */
.tip-box, .info-box, blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

.tip-box p, .info-box p, blockquote p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    margin: 0;
}

blockquote {
    font-style: normal;
}

/* Tables */
.table-wrapper, .table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 1rem 0;
}

table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    border-collapse: collapse;
}

thead tr {
    background: var(--primary-color);
    color: white;
}

th {
    padding: 0.75rem;
    font-weight: 600;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

tbody tr:nth-child(odd) {
    background: white;
}

tbody tr:nth-child(even) {
    background: var(--gray-50);
}

td:first-child {
    font-weight: 600;
    color: var(--gray-800);
}

/* FAQ Section */
.faq-container, .faq-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 1rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question, h3.faq-q {
    padding: 0.75rem 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover, h3.faq-q:hover {
    background: var(--gray-50);
}

.faq-question h3, h3.faq-q {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
    margin: 0;
}

.faq-answer, .faq-a, p.faq-a {
    padding: 0 1rem 1rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section, .cta-box {
    background: linear-gradient(to bottom right, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h2, .cta-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    border: none;
    padding: 0;
}

.cta-section p, .cta-box p {
    color: var(--primary-100);
    font-size: 0.9375rem;
    max-width: 32rem;
    margin: 0 auto 1rem;
}

.cta-button, .cta-section a, .cta-box a {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cta-button:hover, .cta-section a:hover, .cta-box a:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Cards/Boxes */
.card, .pick-card, .feature-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.card:hover, .pick-card:hover {
    border-color: var(--primary-color);
}

/* Numbered Items */
.rank-number, .number-badge {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Buttons */
.button, .btn, button {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.button:hover, .btn:hover, button:hover {
    background: var(--primary-hover);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.image-caption, figcaption {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 2rem;
}

footer a {
    color: var(--gray-300);
}

footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    header, .header {
        padding: 1.5rem 1rem;
    }

    main, .main-content, article {
        padding: 1rem;
    }
}

/* Schema markup - hide JSON-LD */
script[type="application/ld+json"] {
    display: none;
}
