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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

.language-selector {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
}

.search-container {
    max-width: 800px;
    margin: 30px auto;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 20px 25px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4f46e5;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 45px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #3730a3;
}

/* Categories Section */
.categories {
    background: rgba(255, 255, 255, 0.95);
    min-height: 60vh;
    padding: 60px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1f2937;
    margin-bottom: 50px;
    font-weight: 300;
}

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

.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #4f46e5;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 32px;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
}

.category-title {
    font-size: 24px;
    color: #1f2937;
    font-weight: 600;
}

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

.category-articles li {
    margin-bottom: 12px;
}

.category-articles a {
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.category-articles a:hover {
    color: #4f46e5;
}

.category-articles a::before {
    content: '▶';
    margin-right: 10px;
    color: #9ca3af;
    font-size: 12px;
}

.view-all {
    text-align: center;
    margin-top: 15px;
}

.view-all-btn {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: #3730a3;
}

/* Search Results */
.search-results {
    background: white;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
}

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

.search-result-item {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.search-result-title a {
    color: inherit;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #4f46e5;
}

.search-result-excerpt {
    color: #6b7280;
    font-size: 14px;
}

.search-result-category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 8px;
}

/* Article Page */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 15px;
}

.article-meta {
    opacity: 0.9;
    font-size: 14px;
}

.article-content {
    padding: 40px;
    line-height: 1.8;
}

.article-content h2 {
    color: #1f2937;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    color: #4b5563;
}

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

.article-content li {
    margin-bottom: 8px;
    color: #4b5563;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    color: #4f46e5;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
}

.back-btn:hover {
    color: #3730a3;
}

/* Footer */
.footer {
    background: rgba(31, 41, 55, 0.9);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .search-box {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .article-header {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 30px 20px;
    }
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Button */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}