/* StackedWell.com - Blog Style */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
}

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

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

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Main */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

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

.article-card .category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Article Page */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-header .category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.article-header h1 {
    font-size: 2.25rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.3;
}

.article-header .meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.1rem;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Product Card in Articles */
.product-highlight {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.product-highlight img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: white;
}

.product-highlight .info { flex: 1; }

.product-highlight h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-highlight .rating {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-highlight .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.buy-btn {
    display: inline-block;
    background: #ff9900;
    color: #111;
    padding: 0.6rem 1.25rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.buy-btn:hover { background: #e68a00; }

/* Product Page */
.product-page { max-width: 800px; }

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 700px) {
    .product-main { grid-template-columns: 1fr; }
    .product-highlight { flex-direction: column; text-align: center; }
}

.product-main .image img {
    width: 100%;
    border-radius: 0.75rem;
    background: var(--bg-alt);
}

.product-main .details h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-main .brand {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-main .rating {
    margin-bottom: 1rem;
}

.product-main .price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.product-main .buy-btn {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.product-description {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.product-description h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    margin: 1rem 0;
}

.benefits-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Categories Page */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.category-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.category-card h3 { margin-bottom: 0.25rem; }
.category-card p { font-size: 0.9rem; opacity: 0.8; }

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-alt);
    margin-top: 4rem;
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

footer a { color: var(--primary); }

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 { font-size: 1.5rem; }
.section-header a { color: var(--primary); text-decoration: none; }

/* Slim hero for blog */
.hero-slim {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.hero-slim h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.hero-slim p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); }

/* Featured post */
.featured-section { margin-bottom: 3rem; }

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-alt);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}

.featured-post:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.featured-post img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 1.75rem;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.featured-content p { color: var(--text-light); }

/* Reviews grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.review-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: var(--bg-alt);
    padding: 1rem;
}

.review-card .content {
    padding: 1rem;
}

.review-card h3 {
    font-size: 1rem;
    margin: 0.25rem 0;
    line-height: 1.3;
}

.review-card .rating {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Reviews list (full width cards) */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card-full {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}

.review-card-full:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-card-full img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.review-card-full .content { flex: 1; }
.review-card-full h3 { font-size: 1.1rem; margin: 0.25rem 0; }
.review-card-full .excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.meta-row .price {
    font-weight: 600;
    color: var(--primary);
}

/* Guides grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}

.guide-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: var(--bg-alt);
    padding: 1rem;
}

.guide-card .content { padding: 1rem; }
.guide-card h3 { font-size: 1rem; margin: 0.25rem 0; }
.guide-card p { font-size: 0.85rem; color: var(--text-light); }

/* Blog post page */
.blog-post { max-width: 800px; }

.product-card-inline {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.product-card-inline img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: white;
    border-radius: 0.5rem;
}

.product-card-inline .product-info { flex: 1; }
.product-card-inline h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.product-card-inline .rating { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.5rem; }
.product-card-inline .price { font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; }

.product-features {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.product-features h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1rem; }

.buy-btn-large {
    display: inline-block;
    background: #ff9900;
    color: #111;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.buy-btn-large:hover { background: #e68a00; }

/* Browse all button */
.browse-all-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.browse-all-btn:hover { background: var(--primary-dark); }

/* Search box */
.search-box {
    position: relative;
    max-width: 400px;
    margin: 1.5rem auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.search-results {
    margin-top: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Category cards large */
.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.category-card-large:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.category-card-large img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.category-card-large .category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.category-card-large .category-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Guide link in category pages */
.guide-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.guide-link:hover { text-decoration: underline; }

/* Breadcrumb navigation */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-light);
}

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

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

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

/* Internal links section */
.internal-links {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.internal-links h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.internal-links-grid a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.internal-links-grid a:hover {
    text-decoration: underline;
}

/* 404 Error page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Affiliate disclaimer - light text */
.affiliate-disclosure {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: #92400e;
}

/* Related products */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--bg-alt);
    border-radius: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: transform 0.2s;
}

.related-card:hover { transform: translateY(-2px); }

.related-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.related-card h4 {
    font-size: 0.85rem;
    line-height: 1.3;
}

.related-card .rating {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sort/Filter controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--bg);
    cursor: pointer;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

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

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

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

.comparison-table .product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-table .product-cell img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 700px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-post img { height: 200px; }
    .product-card-inline { flex-direction: column; text-align: center; }
    .review-card-full { flex-direction: column; }
    .review-card-full img { width: 100%; height: 160px; }
    .comparison-table { font-size: 0.8rem; }
    .filter-controls { flex-direction: column; align-items: stretch; }
}
