/* InsightFlux.net - Editorial CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=Lato:wght@300;400;500;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --text-black: #111111;
    --bg-light: #F5F5F5;
    --electric-blue: #0077FF;
    --pure-white: #FFFFFF;
    --medium-gray: #666666;
    --light-gray: #CCCCCC;
    --border-gray: #E0E0E0;
    --font-title: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Lato', 'Source Sans Pro', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-black);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background-color: var(--pure-white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(17, 17, 17, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.site-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
}

.site-subtitle {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 300;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--electric-blue);
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--electric-blue);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-color: var(--pure-white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-gray);
}

.featured-articles {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.main-featured {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--text-black) 0%, var(--medium-gray) 100%);
}

.main-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(17, 17, 17, 0.8));
    color: var(--pure-white);
    padding: 40px 30px 30px;
}

.featured-category {
    background-color: var(--electric-blue);
    color: var(--pure-white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.featured-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-article {
    background-color: var(--pure-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 17, 17, 0.1);
}

.side-article-category {
    color: var(--electric-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.side-article-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.4;
    margin-bottom: 8px;
}

.side-article-meta {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* ===== SECTIONS ===== */
.content-section {
    padding: 50px 0;
    background-color: var(--pure-white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--electric-blue);
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-black);
    font-weight: 600;
}

.view-all {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.7;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--pure-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--text-black) 100%);
    position: relative;
}

.article-content {
    padding: 25px;
}

.article-category {
    color: var(--electric-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-excerpt {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--medium-gray);
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--electric-blue);
}

.read-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* ===== ARTICLE PAGE ===== */
.article-header {
    background-color: var(--pure-white);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-gray);
}

.article-category-large {
    color: var(--electric-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-title-large {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 800px;
}

.article-meta-large {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.meta-item strong {
    color: var(--text-black);
}

/* ===== ARTICLE CONTENT ===== */
.article-body {
    background-color: var(--pure-white);
    padding: 50px 0;
}

.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-content-wrapper h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-black);
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-content-wrapper h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--text-black);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content-wrapper p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-black);
}

.article-content-wrapper blockquote {
    background-color: var(--bg-light);
    border-left: 4px solid var(--electric-blue);
    padding: 25px 30px;
    margin: 30px 0;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-black);
}

.article-tags {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-top: 1px solid var(--border-gray);
}

.tags-container {
    max-width: 800px;
    margin: 0 auto;
}

.tags-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--pure-white);
    color: var(--text-black);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--electric-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--text-black);
    color: var(--pure-white);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: var(--font-title);
    color: var(--electric-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding-top: 20px;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.network-links {
    margin-top: 10px;
}

.network-links a {
    color: var(--electric-blue);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .featured-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-featured {
        height: 300px;
    }
    
    .main-featured-content {
        padding: 30px 20px 20px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title-large {
        font-size: 2rem;
    }
    
    .article-meta-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-content-wrapper {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .content-section {
        padding: 30px 0;
    }
    
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-title-large {
        font-size: 1.7rem;
    }
    
    .side-article {
        padding: 15px;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.btn-primary {
    background-color: var(--electric-blue);
    color: var(--pure-white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--text-black);
    transform: translateY(-2px);
    color: var(--pure-white);
}

.link-clean {
    text-decoration: none;
    color: inherit;
}

.link-clean:hover {
    color: var(--electric-blue);
} 