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

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --bg: #0a0a0f;
    --bg-light: #111118;
    --bg-card: #18181f;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --accent: #f59e0b;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Header */
header {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

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

/* Dropdown Menu */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.nav-links .dropdown:hover > a {
    color: var(--primary);
    background: var(--bg);
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

.nav-links .dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links .dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 8rem 2rem;
    background: 
        linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--bg) 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2318181f" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="%2318181f" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="%2318181f" stroke-width="0.5"/></svg>');
    background-size: cover, 200px 200px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

/* Featured Section */
.featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.featured h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Trending Section */
.trending {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.trending h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.trending p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.trending-links a {
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.trending-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.featured-overlay .tag {
    background: var(--primary);
    color: #000;
}

.featured-overlay h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #fff;
}

.featured-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Carousel */
.carousel-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-card {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.carousel-overlay h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

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

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* Posts */
.posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.posts h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.posts .subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 1.75rem;
}

.tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.tag::first-letter {
    color: #10b981;
    font-weight: 700;
}

.post-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.75rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-card h3 a {
    color: var(--text);
}

.post-card h3 a:hover {
    color: var(--primary);
    text-decoration: none;
}

.post-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.post-card:hover .read-more::after {
    transform: translateX(4px);
}

/* About */
.about {
    background: var(--bg-light);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.about p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input:focus {
    border-color: var(--primary);
}

.signup-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 0.75rem;
    opacity: 0.6;
}

footer hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Footer Newsletter */
.newsletter {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.newsletter > p {
    margin-bottom: 1.25rem;
}

.footer-signup {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-signup input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
}

.footer-signup input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-signup button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-signup button:hover {
    background: var(--primary-light);
}

.privacy-note {
    margin-top: 1rem;
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.post-content article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.post-content h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.post-content .meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 3rem 0 1.25rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.post-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin: 1.25rem 0 1.25rem 1.75rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content strong {
    color: var(--primary-light);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.post-content em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* Post Hero Image */
.post-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .post-content article {
        padding: 1.5rem;
    }
    
    .post-content h1 {
        font-size: 1.75rem;
    }
}

/* Product Cards for Affiliate */
.affiliate-products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.affiliate-products h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-placeholder {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.product-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.disclosure {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* A-Z Grid */
.az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.az-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.az-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.az-item span {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Topic Tags */
.category-topics {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.category-topics h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.topic-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.topic-tag:hover {
    background: var(--primary);
    color: #000;
}

/* Ensure post titles are normal case */
.post-card h3 {
    text-transform: none;
}

/* Search Styles */
.search-container {
    position: relative;
}

#search-input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    width: 180px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text);
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 260px;
    background: var(--bg-light);
}

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

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: block;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.2s;
}

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

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item.active {
    background: #f0fdf4;
}

.search-result-title {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
}

.search-no-results {
    padding: 1rem;
    color: #6b7280;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile search */
@media (max-width: 768px) {
    #search-input {
        width: 140px;
    }
    
    #search-input:focus {
        width: 180px;
    }
    
    .search-results {
        width: 280px;
        right: -20px;
    }
}


/* Social Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #eee);
}

.share-label {
    font-weight: 600;
    color: var(--text-muted, #666);
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
