/* InsightsDirectory.com */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* { 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.6;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

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

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

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

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

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: #fff;
    margin: -2rem -2rem 2rem -2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box .search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-item .result-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.search-result-item .result-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-pill {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.category-pill:hover {
    background: var(--primary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

a.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

a.product-card .info {
    padding: 1.25rem;
}

a.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text);
}

a.product-card:hover h3 {
    color: var(--primary);
}

.product-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

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

.product-card .price {
    font-weight: 600;
    color: var(--accent);
}

.category-tag {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Product Page */
.product-page {
    max-width: 900px;
    margin: 0 auto;
}

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

.product-header img {
    width: 100%;
    border-radius: 12px;
}

.product-header .details h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-header .stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.product-header .stat {
    text-align: center;
}

.product-header .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-header .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s;
}

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

.product-content {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.product-content h2 {
    margin-bottom: 1rem;
}

.product-content p {
    margin-bottom: 1rem;
}

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

.section-header h2 {
    font-size: 1.5rem;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Suggested Communities */
.suggested-section {
    margin-top: 2rem;
}

.suggested-section h2 {
    margin-bottom: 1rem;
}

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

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

.suggested-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

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

.suggested-info {
    padding: 0.75rem;
}

.suggested-info h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.suggested-info .rating {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.suggested-info .price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #9ca3af;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

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

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .search-box {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-top: 1px solid #374151;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #374151;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .header-inner {
        position: relative;
    }

    .product-header {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    main {
        padding: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .suggested-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Video Player */
.product-video {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.product-video video {
    width: 100%;
    display: block;
}

/* Clickable Image Link */
.product-image-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-image-link:hover {
    opacity: 0.9;
}

.product-image-link img {
    border-radius: 12px;
}

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

/* Secondary CTA */
.cta-secondary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.cta-secondary:hover {
    background: var(--primary-dark);
}

/* Floating Mobile CTA */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.floating-cta a {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.floating-cta a:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .floating-cta {
        display: block;
    }

    /* Add padding to bottom of page so content isn't hidden behind floating button */
    .product-page {
        padding-bottom: 80px;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.article-card h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.article-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article Page */
.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.article-page h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-content {
    line-height: 1.8;
}

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

.article-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.article-content strong {
    color: var(--text);
}

.page-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-page h1 {
        font-size: 1.6rem;
    }

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