/* Amazing Overstock - Main Stylesheet */
/* Colors: Red #dc2626, Gold #f59e0b, White #ffffff, Charcoal #374151 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --white: #ffffff;
    --charcoal: #374151;
    --charcoal-light: #6b7280;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--white);
}

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

a:hover {
    color: var(--red-dark);
}

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

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--charcoal);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .icon {
    color: var(--red);
    font-size: 32px;
}

.logo span {
    color: var(--red);
}

.logo-tagline {
    font-size: 11px;
    color: var(--charcoal-light);
    font-weight: 400;
    display: block;
    margin-top: -4px;
}

nav nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--charcoal);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--red);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--charcoal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    background: var(--red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

/* Search Bar */
.search-section {
    background: var(--gray-100);
    padding: 40px 0;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--red);
}

.search-bar button {
    padding: 15px 30px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: var(--red-dark);
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--charcoal-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.section-header .gold-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 20px auto;
    border-radius: 2px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 25px;
}

.article-card-category {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--charcoal);
}

.article-card h3 a:hover {
    color: var(--red);
}

.article-card-excerpt {
    color: var(--charcoal-light);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--charcoal-light);
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.article-card-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-card-meta .author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.category-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: var(--red);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
    background: var(--red);
    color: var(--white);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.category-card span {
    font-size: 13px;
    color: var(--charcoal-light);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 80px 0;
    color: var(--white);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--gold);
    color: var(--charcoal);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--white);
}

/* Blog Page */
.page-hero {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.blog-section {
    padding: 60px 0;
}

.blog-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Article Page */
.article-hero {
    background: var(--gray-100);
    padding: 60px 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--charcoal-light);
    font-size: 15px;
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta .author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta .author strong {
    color: var(--charcoal);
}

/* Article Content */
.article-content-wrapper {
    padding: 60px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 40px 0 20px;
    padding-top: 20px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 30px 0 15px;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.article-content blockquote {
    background: var(--gray-100);
    border-left: 4px solid var(--red);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--charcoal);
    border-radius: 0 8px 8px 0;
}

.article-content .tip-box {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.article-content .tip-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.article-content .tip-box p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Author Box */
.author-box {
    background: var(--gray-100);
    padding: 35px;
    border-radius: 12px;
    margin: 50px 0;
    display: flex;
    gap: 25px;
}

.author-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.author-box .author-title {
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.author-box p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal-light);
}

/* Related Posts */
.related-posts {
    border-top: 2px solid var(--gray-200);
    padding-top: 50px;
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 0;
    background: var(--gray-100);
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--red);
}

.stat-item .label {
    font-size: 14px;
    color: var(--charcoal-light);
    font-weight: 500;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

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

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--charcoal-light);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 3px;
}

.info-item p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Legal Pages */
.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 30px 0 15px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--charcoal-light);
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--charcoal-light);
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sitemap-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
}

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

.sitemap-section li {
    margin-bottom: 12px;
}

.sitemap-section a {
    color: var(--charcoal-light);
    font-size: 15px;
    transition: color 0.3s ease;
}

.sitemap-section a:hover {
    color: var(--red);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--red);
    color: var(--red);
}

.pagination .active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: var(--charcoal);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
}

.breadcrumb .container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb a {
    color: var(--charcoal-light);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb span {
    color: var(--charcoal-light);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    nav nav.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .article-header h1 {
        font-size: 30px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box img {
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item .number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease forwards;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }
