/* BuyBid.io - Shared Article Styles */

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-links .btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-links .btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Article Hero */
.article-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Article Content */
.article-content {
    max-width: 760px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.625rem;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.article-content strong {
    font-weight: 600;
    color: var(--primary-dark);
}

.highlight-box {
    background: var(--bg);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.pro-tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid var(--success);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.pro-tip strong {
    color: #065f46;
}

.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.warning-box strong {
    color: #92400e;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

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

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

.comparison-table tr:hover {
    background: var(--bg);
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: var(--white);
}

.cta-box .btn {
    background: var(--white);
    color: var(--accent);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Related Articles */
.related-articles {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

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

.article-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.article-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .article-hero {
        padding: 3rem 1.5rem;
    }

    .article-hero h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        margin: 2rem auto;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.625rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .breadcrumb {
        padding: 1rem 1rem 0;
        font-size: 0.8125rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .related-articles {
        padding: 0 1rem;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
