/* 
   aipornforum.site Stylesheet
   Red/Dark Theme - Unique from previous sites
*/

:root {
    /* Color Variables - Red/Dark Theme */
    --color-primary: #E53E3E;           /* Red */
    --color-primary-dark: #B91C1C;      /* Dark Red */
    --color-primary-light: #FCA5A5;     /* Light Red */
    --color-secondary: #F97316;         /* Orange */
    --color-dark: #1A202C;              /* Dark Gray */
    --color-dark-2: #2D3748;            /* Darker Gray */
    --color-light: #F7FAFC;             /* Off White */
    --color-gray: #A0AEC0;              /* Mid Gray */
    
    /* Typography */
    --font-family: 'Roboto', sans-serif;
    --heading-font: 'Oswald', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-light);
    background-color: var(--color-dark);
    min-height: 100vh;
    background-image: radial-gradient(rgba(229, 62, 62, 0.15) 2px, transparent 2px);
    background-size: 30px 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-secondary);
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

h3 {
    font-size: 1.75rem;
    color: var(--color-primary-light);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style-type: none;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:hover::before {
    left: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 32, 44, 0.95);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: var(--spacing-md);
}

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-color: var(--color-secondary);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9) 0%, rgba(45, 55, 72, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23E53E3E" opacity="0.3"/></svg>');
    background-size: 50px 50px;
    z-index: -1;
}

.hero-section .container {
    text-align: center;
    max-width: 800px;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-dark-2);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(229, 62, 62, 0.2);
}

footer .container {
    text-align: center;
}

footer p {
    margin-bottom: 0;
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-dark);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
    opacity: 0;
}

.mobile-menu.active {
    height: calc(100vh - 60px);
    opacity: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu nav {
    display: block;
    padding: var(--spacing-lg);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-menu li a {
    display: block;
    font-size: 1.25rem;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-9.5px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* Forums Section */
.forums-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark-2);
}

.section-subtitle {
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.forums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.forum-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.7) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(229, 62, 62, 0.1);
}

.forum-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(229, 62, 62, 0.3);
}

.forum-icon {
    background-color: rgba(229, 62, 62, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.forum-icon svg {
    color: var(--color-primary);
}

.forum-card h3 {
    margin-top: var(--spacing-sm);
    font-size: 1.25rem;
}

.forum-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.forum-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forum-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: var(--spacing-xs) 0;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.forum-link:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* Popular Topics Section */
.popular-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark);
}

.topics-list {
    margin-top: var(--spacing-lg);
}

.topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(45, 55, 72, 0.4) 0%, rgba(26, 32, 44, 0.6) 100%);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.topic-info {
    flex: 1;
}

.topic-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.topic-excerpt {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.topic-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--color-gray);
}

.small-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    white-space: nowrap;
}

.view-all-topics {
    margin-top: var(--spacing-lg);
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-dark-2);
}

.faq-container {
    margin-top: var(--spacing-lg);
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    background: linear-gradient(90deg, rgba(45, 55, 72, 0.4) 0%, rgba(26, 32, 44, 0.6) 100%);
    overflow: hidden;
    border: 1px solid rgba(229, 62, 62, 0.1);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-light);
}

.faq-toggle {
    position: relative;
    width: 24px;
    height: 24px;
}

.faq-toggle:before,
.faq-toggle:after {
    content: '';
    position: absolute;
    background-color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-toggle:before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.faq-toggle:after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.faq-item.active .faq-toggle:after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%), var(--color-dark);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-lg);
}

.large-btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.secondary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* Enhanced Footer Styles */
footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: var(--color-dark-2);
    border-top: 1px solid rgba(229, 62, 62, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    flex-basis: 30%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-light);
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: var(--color-gray);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-logo {
        flex-basis: 100%;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .topic-meta {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .nav-cta {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .forum-card {
        padding: var(--spacing-md);
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}
