/* AI Tech Spectrum - Main Styles */
:root {
    --primary-color: #2563EB;
    --secondary-color: #1E40AF;
    --text-color: #1F2937;
    --light-text: #6B7280;
    --background: #FFFFFF;
    --card-bg: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

/* Main Content */
main {
    min-height: 60vh;
    margin-bottom: 60px;
}

/* Article Styles */
.article {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-hero {
    margin: 30px 0;
}

.article-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

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

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--light-text);
}

.article-content code {
    background: var(--background);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--background);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.share-buttons {
    margin-bottom: 30px;
}

.share-buttons h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.share-links a:hover {
    background: var(--border-color);
}

.related-articles h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

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

.related-articles a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--light-text);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

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

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

/* Homepage Styles */
.home-hero {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 60px;
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--secondary-color);
}

.featured-articles {
    margin-bottom: 60px;
}

.featured-articles h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.article-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.article-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.article-card .read-more:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .home-hero h1 {
        font-size: 2.2rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}