/* TopReviewNest - Global Styles */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #c73651;
    --success: #27ae60;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo a { text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.logo h1 { font-size: 1.35rem; color: var(--primary); font-weight: 800; letter-spacing: -0.02em; }
.logo h1 i { color: var(--accent); }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 100%;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.mobile-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
.mobile-btn span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; }

/* Hero */
.hero {
    padding: 110px 0 3rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef1f5 100%);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 1.08rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    max-width: 32rem;
    line-height: 1.65;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image img {
    width: 100%;
    height: clamp(260px, 32vh, 380px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Featured Section */
.featured { padding: 3rem 0 2rem; }
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.view-all {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.view-all:hover { gap: 0.7rem; }

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.article-img {
    height: 210px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-img img { transform: scale(1.06); }
.article-cat {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.article-body { padding: 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.article-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.7rem;
}
.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
}
.article-excerpt {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-footer {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Categories */
.categories { padding: 3rem 0; background: var(--bg-light); }
.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.cat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-img { height: 170px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-content { padding: 1.25rem; text-align: center; }
.cat-content h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.4rem; }
.cat-content p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 0.8rem; }
.cat-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}
.newsletter-content { max-width: 550px; margin: 0 auto; text-align: center; }
.newsletter-content h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.newsletter-content p { opacity: 0.85; margin-bottom: 1.75rem; }
.news-form { display: flex; gap: 0.75rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; }
.news-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.news-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.news-form button:hover { background: var(--accent-hover); }

/* Footer */
.footer { background: var(--primary); color: white; padding: 3rem 0 1rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section h4 { margin-bottom: 1rem; font-size: 0.95rem; opacity: 0.8; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.45rem; }
.footer-section a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-section a:hover { color: var(--accent); }
.footer-section p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.55; margin-bottom: 1rem; }
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Article List Page */
.page-header {
    padding: 110px 0 2rem;
    background: var(--bg-light);
}
.page-header h1 { font-size: 2.2rem; color: var(--primary); font-weight: 700; margin-bottom: 0.4rem; }
.page-header p { color: var(--text-light); font-size: 1rem; }

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Single Article */
.single-article {
    max-width: 780px;
    margin: 100px auto 2rem;
    padding: 0 1.25rem;
}
.single-article .article-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.article-byline {
    display: flex;
    gap: 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.article-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.article-body-content {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text);
}
.article-body-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2rem 0 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.article-body-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}
.article-body-content p { margin-bottom: 1.1rem; }
.article-body-content ul, .article-body-content ol { margin-bottom: 1.1rem; padding-left: 1.4rem; }
.article-body-content li { margin-bottom: 0.35rem; }
.article-body-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 1.25rem 0;
}
.article-body-content strong { color: var(--primary); }

/* CTA Boxes in Article */
.cta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 2rem 0;
    text-align: center;
}
.cta-box p { font-size: 1.05rem; margin-bottom: 1rem; font-weight: 500; }
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none !important;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(233,69,96,0.3);
}
.cta-link:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 18px rgba(233,69,96,0.45); }

/* Product Recommendations */
.product-recs {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
}
.product-recs h3 {
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.25rem;
}
.recs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.rec-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rec-card h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.4rem; }
.rec-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin: 0.5rem 0; }
.rec-card a {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.rec-card a:hover { background: var(--accent); }

/* Affiliate disclosure */
.disclosure {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 0.85rem 1.1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
    color: #795548;
    line-height: 1.5;
}

/* Related articles */
.related-section { padding: 2rem 0 4rem; background: var(--bg-light); }
.related-section h2 { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--primary); }

/* Footer nav on article */
.article-bottom-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.home-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 1.25rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .nav-menu.active { display: flex; }
    .mobile-btn { display: flex; }
    .articles-grid { grid-template-columns: 1fr; }
    .single-article .article-title { font-size: 1.8rem; }
    .article-hero-img { height: 280px; }
    .section-header h2 { font-size: 1.5rem; }
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.loading i { font-size: 2rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.4rem; }
.breadcrumb .current { color: var(--primary); font-weight: 500; }
