/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --background: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.nav-bar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-bar li {
    margin: 0;
}

.nav-bar a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-bar a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Main Content */
main {
    padding: 2rem 0 4rem;
}

.section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--secondary-color);
}

/* Lead Grades Section */
.grade-scale {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.scale-visual {
    margin-top: 1rem;
}

.scale-bar {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, #e0e0e0, #333);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.hard-end {
    color: #333;
}

.grades {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.grade-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.grade-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.grade-card:nth-child(2) {
    border-top-color: #27ae60;
}

.grade-card:nth-child(3) {
    border-top-color: #333;
}

.recommendation-box {
    background: #e8f4fd;
    border: 1px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.recommendation-box h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Lead Sizes Section */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.size-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.size-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.size-card.featured {
    background: var(--secondary-color);
    color: var(--white);
}

.size-card.featured h4,
.size-card.featured .size-number {
    color: var(--white);
}

.size-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Top Picks Section */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pick-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.pick-card .badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pick-card.premium .badge {
    background: #f39c12;
}

.pick-card.value .badge {
    background: #27ae60;
}

.pick-card.innovative .badge {
    background: #9b59b6;
}

.pick-card.drafting .badge {
    background: var(--secondary-color);
}

.pick-tagline {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.features {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.features li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.ideal-for {
    background: #e8f4fd;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.buy-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.buy-btn {
    display: block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.buy-btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.buy-btn.secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Budget Section */
.budget-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--border-color);
}

.budget-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.budget-pick {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
}

.budget-pick h4 {
    color: var(--secondary-color);
}

.budget-pick a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Types Section */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.type-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.type-card:nth-child(2) {
    border-left-color: #27ae60;
}

.type-card:nth-child(3) {
    border-left-color: #9b59b6;
}

.type-card:nth-child(4) {
    border-left-color: #f39c12;
}

.type-card:nth-child(5) {
    border-left-color: var(--accent-color);
}

.type-card:nth-child(6) {
    border-left-color: #1abc9c;
}

/* Maintenance Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
}

.tip-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tip-card ol {
    margin-left: 1.2rem;
}

/* FAQ Section */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: var(--background);
}

.comparison-table tr:hover {
    background: #e8f4fd;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .tagline {
        font-size: 1rem;
    }

    .nav-bar a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 1.5rem;
    }

    .scale-bar {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .grades {
        font-size: 0.8rem;
    }

    .pick-card .badge {
        font-size: 0.65rem;
        padding: 0.2rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-bar ul {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-bar a {
        white-space: nowrap;
    }

    .grades span {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .nav-bar,
    .buy-links,
    footer {
        display: none;
    }

    .section {
        box-shadow: none;
        break-inside: avoid;
    }
}
