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

:root {
    --primary: #444bfc;
    --primary-light: rgba(68, 75, 252, 0.1);
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--gray-900);
    color: var(--white);
    line-height: 1.6;
}

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

.header {
    padding: 1rem 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(68, 75, 252, 0.2);
}

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

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(68, 75, 252, 0.3);
    border-radius: 2rem;
    color: var(--white);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(68, 75, 252, 0.2);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
}

.main {
    padding: 4rem 0;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(68, 75, 252, 0.2);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(68, 75, 252, 0.2);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.articles-list {
    list-style: none;
}

.articles-list li {
    margin-bottom: 0.75rem;
}

.articles-list a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.articles-list a:hover {
    color: var(--white);
}

.articles-list a::before {
    content: "→";
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.articles-list a:hover::before {
    transform: translateX(3px);
}

.popular-articles {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(68, 75, 252, 0.2);
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.popular-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(68, 75, 252, 0.1);
    transition: all 0.3s;
}

.popular-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.popular-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.popular-item p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.contact-section {
    text-align: center;
    padding: 3rem;
    background: rgba(68, 75, 252, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(68, 75, 252, 0.2);
}

.contact-section h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.cta-button:hover {
    background: #3339db;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
}

.footer {
    padding: 2rem 0;
    background: var(--black);
    border-top: 1px solid rgba(68, 75, 252, 0.2);
    text-align: center;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

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

.search-results {
    margin-top: 2rem;
    display: none;
}

.search-results.show {
    display: block;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(68, 75, 252, 0.1);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.result-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.result-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-excerpt {
    color: var(--gray-300);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
    
    .popular-list {
        grid-template-columns: 1fr;
    }
}
