/* Base Styles */
:root {
    --reddit-orange: #ff4500;
    --reddit-orange-light: #ff8717;
    --reddit-bg-dark: #1a1a1b;
    --reddit-card: #2d2d2e;
    --text-light: #ffffff;
    --text-gray: #818384;
    --text-dark: #d7dadc;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius: 4px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--reddit-bg-dark);
}

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a:hover {
    color: var(--reddit-orange-light);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h1 span {
    color: var(--reddit-orange);
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

img, svg {
    max-width: 100%;
    height: auto;
}

section {
    padding: 4rem 0;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--reddit-orange);
    color: var(--text-light);
    font-weight: 600;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.cta-button:hover {
    background-color: var(--reddit-orange-light);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    font-weight: 600;
    border: 1px solid var(--text-gray);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.secondary-button:hover {
    border-color: var(--reddit-orange);
    color: var(--reddit-orange);
    background-color: rgba(255, 69, 0, 0.1);
}

/* Header Styles */
.main-header {
    background-color: var(--reddit-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    height: 70px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: block;
    width: 180px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-list li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-gray);
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    color: var(--text-light);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--reddit-orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

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

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 5rem;
    position: relative;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-wrapper {
    display: flex;
    align-items: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Trending Section */
.trending-section {
    background-color: #121212;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background-color: var(--reddit-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    padding: 1.5rem;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 24px;
    height: 24px;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.upvotes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--reddit-orange);
    font-weight: 600;
}

/* Categories Section */
.categories-section {
    background-color: var(--reddit-bg-dark);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.category-item {
    background-color: var(--reddit-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    width: 180px;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: rgba(45, 45, 46, 0.8);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
}

.category-item h3 {
    margin-bottom: 0.5rem;
}

.post-count {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Communities Section */
.communities-section {
    background-color: #121212;
}

.communities-list {
    max-width: 800px;
    margin: 0 auto;
}

.community-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--reddit-card);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.community-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.community-item:last-child {
    margin-bottom: 0;
}

.community-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--reddit-orange);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.community-info h3 {
    margin-bottom: 0.25rem;
}

.community-info p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.member-count {
    font-size: 0.8rem;
    color: var(--reddit-orange-light);
    font-weight: 600;
}

/* How it Works Section */
.how-section {
    background-color: var(--reddit-bg-dark);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    background-color: var(--reddit-card);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--reddit-orange);
    color: white;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--radius);
}

.step-item h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--text-gray);
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Testimonial Section */
.testimonial-section {
    background-color: #121212;
    padding: 3rem 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--reddit-card);
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    text-align: center;
}

.quote-icon {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    color: var(--reddit-orange);
    font-weight: 600;
}

/* Final CTA Section */
.final-cta {
    background-color: var(--reddit-bg-dark);
    text-align: center;
    padding: 5rem 0;
}

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

.final-cta p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: #0d0d0d;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-branding p {
    color: var(--text-gray);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--reddit-orange);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--reddit-orange);
    padding-left: 5px;
}

.footer-favicon {
    display: flex;
    justify-content: flex-end;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-section .container {
        flex-direction: column-reverse;
    }
    
    .hero-content, .hero-visual {
        width: 100%;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .cta-wrapper {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-favicon {
        grid-column: span 2;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--reddit-bg-dark);
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav .nav-list {
        flex-direction: column;
    }
    
    .main-nav .nav-list li {
        margin: 0 0 1rem 0;
    }
    
    .community-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-branding {
        text-align: center;
    }
    
    .footer-branding p {
        max-width: none;
    }
    
    .footer-favicon {
        grid-column: span 1;
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
    
    .secondary-button {
        margin: 1rem 0 0 0;
    }
}
