/* Base Styles */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #0d47a1;
    --accent-color: #ff9800;
    --accent-dark: #f57c00;
    --upvote-color: #ff4500;
    --downvote-color: #7193ff;
    --light-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #1a1a1b;
    --text-light: #7c7c7c;
    --border-radius: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 1.2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo h1 {
    margin-bottom: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    margin: -2rem -1rem 2rem;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Trending Section */
.trending-section {
    padding: 3rem 1rem;
    text-align: center;
}

.reddit-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.post {
    display: flex;
    align-items: flex-start;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: left;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    min-width: 40px;
}

.post-vote span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
}

.post-content {
    flex: 1;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Categories Section */
.categories-section {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--card-bg);
    margin: 2rem -1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.category:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(-5px);
}

.category h3 {
    margin-bottom: 0;
}

/* Access Section */
.access-section {
    padding: 5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    margin: 2rem -1rem -2rem;
    color: white;
}

.access-section h2 {
    font-size: 2.2rem;
}

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

.access-section .cta-button {
    background-color: white;
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

.access-section .cta-button:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--text-light);
    padding: 3rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
}
