/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #E2E8F0;
    background-color: #1A202C;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00BFFF, #39FF14);
    color: #1A202C;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

/* Header */
.header {
    background-color: #2D2A4A;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: #00BFFF;
    margin: 0;
    font-size: 1.8rem;
}

.logo i {
    margin-right: 0.5rem;
    color: #39FF14;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00BFFF;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2D2A4A;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #4A5568;
}

.dropdown-menu a:hover {
    background-color: #4A5568;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    display: flex;
    background-color: #4A5568;
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    background: none;
    border: none;
    padding: 10px 15px;
    color: #E2E8F0;
    width: 250px;
    outline: none;
}

.search-bar input::placeholder {
    color: #A0AEC0;
}

.search-bar button {
    background-color: #00BFFF;
    border: none;
    padding: 10px 15px;
    color: #1A202C;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #39FF14;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #A0AEC0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00BFFF;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2D2A4A, #1A202C);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-text .category {
    background-color: #00BFFF;
    color: #1A202C;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #FFFFFF;
}

.featured-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #A0AEC0;
    line-height: 1.8;
}

/* Latest Articles */
.latest-articles {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #FFFFFF;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #00BFFF, #39FF14);
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: #2D2A4A;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 191, 255, 0.2);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content .category {
    background-color: #39FF14;
    color: #1A202C;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content h3 {
    margin: 1rem 0 0.5rem 0;
    color: #FFFFFF;
    font-size: 1.2rem;
}

.article-meta {
    color: #A0AEC0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    background-color: #2D2A4A;
    padding: 2rem 0;
}

.sidebar-content {
    max-width: 800px;
    margin: 0 auto;
}

.popular-articles h3 {
    color: #00BFFF;
    margin-bottom: 1.5rem;
    text-align: center;
}

.popular-articles ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.popular-articles li {
    background-color: #4A5568;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.popular-articles li:hover {
    background-color: #5A6578;
}

.popular-articles a {
    display: block;
    padding: 1rem;
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.popular-articles a:hover {
    color: #00BFFF;
}

/* Genres Section */
.genres {
    padding: 4rem 0;
    background-color: #2D2A4A;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.genre-card {
    background-color: #4A5568;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-card:hover {
    background-color: #5A6578;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.1);
}

.genre-card i {
    font-size: 2rem;
    color: #00BFFF;
    margin-bottom: 1rem;
}

.genre-card h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin: 0;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #00BFFF, #39FF14);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: #1A202C;
    margin-bottom: 1rem;
}

.newsletter p {
    color: #2D2A4A;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background-color: #1A202C;
    color: #FFFFFF;
}

.newsletter-form button:hover {
    background-color: #2D2A4A;
}

/* Footer */
.footer {
    background-color: #1A202C;
    padding: 3rem 0 1rem 0;
    border-top: 1px solid #4A5568;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00BFFF;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #A0AEC0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00BFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4A5568;
    color: #A0AEC0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar input {
        width: 200px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-text h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .latest-articles {
        padding: 2rem 0;
    }
    
    .genres {
        padding: 2rem 0;
    }
    
    .newsletter {
        padding: 2rem 0;
    }
    
    .genres-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .genre-card {
        padding: 1.5rem 0.5rem;
    }
}
