/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9933ff;
    --secondary-color: #3366ff;
    --accent-color: #ff3366;
    --dark-bg: #121220;
    --darker-bg: #0a0a14;
    --light-text: #ffffff;
    --light-gray: #e0e0e0;
    --medium-gray: #a0a0a0;
    --gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
}

section {
    padding: 60px 0;
}

/* Header styles */
header {
    background-color: var(--darker-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    z-index: 101;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
}

/* Hero section */
.hero {
    background: var(--gradient);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

.cta-button:hover {
    background-color: #ff1a4d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 51, 102, 0.4);
}

/* Content grids */
.content-grid, .trending-grid, .new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-card, .trending-item, .new-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.content-card:hover, .trending-item:hover, .new-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.content-placeholder {
    height: 200px;
    background-color: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.content-card h3, .trending-info h3 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

.content-card p {
    padding: 0 15px 15px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.trending-info {
    padding: 15px;
}

.stats {
    display: flex;
    justify-content: space-between;
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin-top: 5px;
}

.new-item p {
    padding: 15px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Categories */
.category-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.category-item svg {
    margin-bottom: 10px;
}

.category-item span {
    display: block;
    font-weight: 500;
}

/* CTA section */
.cta-section {
    background: var(--gradient);
    text-align: center;
    position: relative;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.cta-section .container {
    position: relative;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--accent-color);
    font-weight: 500;
}

.view-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    color: var(--medium-gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.copyright p:not(:last-child) {
    margin-bottom: 10px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--darker-bg);
        padding: 80px 20px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 20px;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 5px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .content-grid, .trending-grid, .new-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .content-grid, .trending-grid, .new-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
