/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #1f2937;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 200px;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Section Headers */
h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

/* Featured Stories */
.featured-stories {
    margin-bottom: 4rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.story-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.story-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.story-category.applications {
    background: #dbeafe;
    color: #1e40af;
}

.story-category.technologies {
    background: #dcfce7;
    color: #166534;
}

.story-category.impact {
    background: #fef3c7;
    color: #92400e;
}

.story-category.basics {
    background: #f3e8ff;
    color: #7c3aed;
}

.story-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.story-card h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.story-card h3 a:hover {
    color: #3b82f6;
}

.story-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.story-meta .author {
    font-weight: 500;
}

/* Trending Now */
.trending-now {
    margin-bottom: 4rem;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.trending-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trending-category {
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 100px;
    text-align: center;
}

.trending-category.applications {
    background: #dbeafe;
    color: #1e40af;
}

.trending-category.technologies {
    background: #dcfce7;
    color: #166534;
}

.trending-category.impact {
    background: #fef3c7;
    color: #92400e;
}

.trending-category.basics {
    background: #f3e8ff;
    color: #7c3aed;
}

.trending-item h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.trending-item h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.trending-item h3 a:hover {
    color: #3b82f6;
}

.trending-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: #9ca3af;
    min-width: 120px;
}

.trending-meta .author {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Editor's Picks */
.editors-picks {
    margin-bottom: 4rem;
}

.picks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pick-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.pick-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.pick-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pick-category.applications {
    background: #dbeafe;
    color: #1e40af;
}

.pick-category.technologies {
    background: #dcfce7;
    color: #166534;
}

.pick-category.impact {
    background: #fef3c7;
    color: #92400e;
}

.pick-category.basics {
    background: #f3e8ff;
    color: #7c3aed;
}

.pick-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pick-item h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.pick-item h3 a:hover {
    color: #3b82f6;
}

.pick-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pick-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.pick-meta .author {
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1f2937;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        gap: 1rem;
    }

    .search-box input {
        width: 100%;
        max-width: 300px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .trending-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .trending-meta {
        align-items: flex-start;
        min-width: auto;
    }

    .picks-list {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .story-card,
    .pick-item {
        padding: 1rem;
    }

    .trending-item {
        padding: 0.75rem;
    }

    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Article Page Styles */
.article-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-meta .author {
    font-weight: 600;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
    text-align: left;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content a {
    color: #3b82f6;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }
}



