/* ============================================
   StrategicStockTrades - COMPLETE CSS
   Fresh Green Design 2025
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

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

:root {
    --green-primary: #10B981;
    --green-dark: #059669;
    --green-light: #34D399;
    --green-pale: #D1FAE5;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --light-gray: #F3F4F6;
    --gray-100: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 4px 20px rgba(16, 185, 129, 0.25);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--off-white);
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: translateY(-1px);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--green-primary);
    background: var(--green-pale);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-900);
    cursor: pointer;
    padding: 0.5rem;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    color: var(--green-primary);
}

.hero-content p {
    font-size: 20px;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* MAIN CONTENT */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

/* CATEGORY CARDS */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--gray-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--green-pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--green-primary);
    transform: scale(1.1);
}

.category-icon svg {
    stroke: var(--green-primary);
    transition: stroke 0.3s ease;
}

.category-card:hover .category-icon svg {
    stroke: white;
}

.category-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.category-card h2 a {
    color: inherit;
    text-decoration: none;
}

.category-description {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-list li {
    position: relative;
    padding-left: 1.5rem;
}

.article-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
}

.article-list a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.article-list a:hover {
    color: var(--green-primary);
}

/* CATEGORY HERO */
.category-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
}

.category-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ARTICLE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

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

.article-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

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

.article-excerpt {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    margin: 0 1.5rem 1.5rem;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* ARTICLE HERO */
.article-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    text-align: center;
}

.article-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ARTICLE CONTENT */
.article-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 1.25rem;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.article-content a {
    color: var(--green-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--green-primary);
}

/* FOOTER */
.site-footer {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-top: 1px solid var(--gray-100);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.footer-description {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 15px;
}

.footer-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--green-primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-100);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.footer-copyright p {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-disclaimer p {
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-100);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        display: flex;
        padding: 1rem;
        font-size: 15px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .article-hero {
        min-height: 400px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   RELATED ARTICLES - With Images
   ============================================ */

.related-articles {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-articles h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

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

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

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

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-primary);
    background: var(--green-pale);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.related-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.related-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* ============================================
   Series Navigation
   ============================================ */
.series-navigation {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #10B981;
    padding: 2rem;
    margin: 3rem 0 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.series-navigation h3 {
    color: #10B981;
    font-size: 1.3em;
    margin-bottom: 0.5rem;
}

.series-subtitle {
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 1.5rem;
}

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

.series-link {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.series-link:hover {
    border-color: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.series-link.current {
    border-color: #10B981;
    background: #f0fdf4;
}

.series-number {
    font-size: 0.85em;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.series-title {
    color: #1e293b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .series-nav {
        grid-template-columns: 1fr;
    }
    
    .series-navigation {
        padding: 1.5rem;
    }
}
