/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a; /* Dark black background */
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff0000; /* Red accent */
}

.text-red { color: #ff0000; }
.highlight-red { color: #ff0000; }

/* ===== HEADER ===== */
.site-header {
    background-color: #111111;
    border-bottom: 2px solid #ff0000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(255, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tech {
    color: #f0f0f0;
}

.bloody {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 200px;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 0, 0, 0.2);
}

/* Search */
.search-box {
    flex: 0 1 300px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 25px;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: #ff0000;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.search-box button:hover {
    color: #ff0000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(to right, #0a0a0a, #1a1a1a);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,0,0,0.2) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Orbitron', sans-serif;
}

.btn-primary {
    background-color: #ff0000;
    color: white;
    border: 2px solid #ff0000;
}

.btn-primary:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Featured Categories */
.featured-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    width: 140px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card.gaming i { color: #00ff00; }
.category-card.gadgets i { color: #0088ff; }
.category-card.entertainment i { color: #ff00ff; }
.category-card.electronics i { color: #ffaa00; }

/* ===== ARTICLES SECTION ===== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: #ff0000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.article-category.gaming { background-color: #00aa00; }
.article-category.gadgets { background-color: #0066cc; }
.article-category.electronics { background-color: #cc8800; }
.article-category.entertainment { background-color: #aa00aa; }

.article-content {
    padding: 20px;
}

.article-content h3 a {
    color: #f0f0f0;
    margin-bottom: 10px;
    display: block;
}

.article-content h3 a:hover {
    color: #ff0000;
}

.article-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta i {
    margin-right: 5px;
}

.article-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #ff0000;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== CATEGORY HIGHLIGHTS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-highlight {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.category-highlight:hover {
    transform: translateX(5px);
    background-color: #222;
}

.category-highlight.gaming { border-left-color: #00aa00; }
.category-highlight.gadgets { border-left-color: #0066cc; }
.category-highlight.electronics { border-left-color: #cc8800; }
.category-highlight.entertainment { border-left-color: #aa00aa; }

.category-icon {
    margin-right: 20px;
}

.category-icon i {
    font-size: 2.5rem;
}

.category-highlight.gaming .category-icon i { color: #00aa00; }
.category-highlight.gadgets .category-icon i { color: #0066cc; }
.category-highlight.electronics .category-icon i { color: #cc8800; }
.category-highlight.entertainment .category-icon i { color: #aa00aa; }

.category-info h3 a:hover {
    color: inherit;
}

.category-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0 10px;
}

.article-count {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(to right, #1a1a1a, #0a0a0a);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    margin: 60px 0;
    border: 1px solid #333;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-content > p {
    color: #aaa;
    max-width: 500px;
    margin: 0 auto 25px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 25px 0 0 25px;
    color: #f0f0f0;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 25px 25px 0;
    padding: 15px 30px;
}

.newsletter-note {
    color: #666;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-description {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ff0000;
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff0000;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    margin-bottom: 12px;
}

.contact-info i {
    color: #ff0000;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
}

.heart-red {
    color: #ff0000;
    margin: 0 5px;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff0000;
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title { font-size: 2.8rem; }
    
    .header-wrapper {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-box {
        order: 2;
        flex: 1;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-title { font-size: 2.2rem; }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-categories {
        gap: 10px;
    }
    
    .category-card {
        width: calc(50% - 10px);
    }
    
    .newsletter-section {
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 25px;
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: 25px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-card {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}