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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f1f2f6;
}

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

/* Header Styles - XenForo Style */
.header {
    background: #2d2d2d;
    border-bottom: 3px solid #0074d9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-icon {
    background: #0074d9;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.logo-text {
    min-width: 0;
}

.logo-text h2 {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    color: #ccc;
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
}

.nav-menu a {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: #3d3d3d;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: #3d3d3d;
    border-radius: 6px;
    padding: 0.3rem;
    min-width: 250px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    outline: none;
    flex: 1;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: #0074d9;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #0056b3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Selector */
.language-selector {
    background: #3d3d3d;
    color: white;
    border: 2px solid #0074d9;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

.language-selector:hover {
    background: #4d4d4d;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.language-selector:focus {
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.2);
}

.language-selector option {
    background: #2d2d2d;
    color: white;
    padding: 0.5rem;
}

/* Language Change Notification */
.language-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.language-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.language-notification i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .language-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .language-notification.show {
        transform: translateY(0);
    }
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.auth-btn.signup-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid transparent;
}

.auth-btn.signup-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.auth-btn i {
    font-size: 0.875rem;
}

/* Forum Stats */
.forum-stats {
    padding: 40px 0;
    background: #2d2d2d;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #3d3d3d;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-icon {
    background: #0074d9;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0074d9;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

/* Forum Categories - XenForo Style */
.forum-categories {
    padding: 120px 0 40px;
    background: white;
    margin-top: 80px;
}

.forum-category {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: #f8f9fa;
}

.category-icon {
    background: #0074d9;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.category-info h3 a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-info h3 a:hover {
    color: #0074d9;
}

.category-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.category-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    text-align: center;
}

.topics-count, .posts-count {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.last-post {
    min-width: 200px;
    text-align: right;
}

.last-post-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.thread-title a {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.thread-title a:hover {
    color: #0074d9;
}

.thread-author {
    color: #0074d9;
    font-size: 0.8rem;
    font-weight: 500;
}

.thread-time {
    color: #666;
    font-size: 0.8rem;
}

/* Recent Topics Section */
.recent-topics {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.topics-list {
    max-width: 1200px;
    margin: 0 auto;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.topic-item:hover {
    background: #f8f9fa;
}

.topic-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.topic-icon-new {
    color: #28a745;
    font-size: 1.2rem;
}

.topic-icon-hot {
    color: #dc3545;
    font-size: 1.2rem;
}

.topic-icon-normal {
    color: #6c757d;
    font-size: 1.2rem;
}

.topic-icon-pinned {
    color: #ffc107;
    font-size: 1.2rem;
}

.topic-content {
    flex: 1;
    min-width: 0;
}

.topic-title {
    margin-bottom: 0.5rem;
}

.topic-title a {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.topic-title a:hover {
    color: #0074d9;
}

.topic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.topic-category {
    color: #0074d9;
    font-weight: 500;
}

.topic-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-align: center;
}

.topic-replies, .topic-views {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.topic-replies {
    font-weight: 600;
    color: #0074d9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-card.featured {
    grid-column: span 2;
    display: flex;
    min-height: 300px;
}

.article-card.featured .article-image {
    flex: 1;
}

.article-card.featured .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card.featured .article-image {
    height: auto;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffd700;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #2a5298;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta i {
    color: #2a5298;
}


/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #333;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        gap: 1rem;
    }
    
    .search-box {
        display: none;
    }
    
    .language-selector {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        padding-right: 1.5rem;
        background-size: 0.8rem;
    }
    
    .auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2d2d2d;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.15);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .forum-categories {
        padding: 100px 0 30px;
        margin-top: 70px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .last-post {
        min-width: auto;
        width: 100%;
    }
    
    .last-post-info {
        align-items: flex-start;
        text-align: left;
    }
    
    .topic-item {
        flex-wrap: wrap;
        padding: 0.8rem;
    }
    
    .topic-stats {
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .forum-categories {
        padding: 100px 0 25px;
        margin-top: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.cta-button:focus,
.newsletter-form button:focus,
.nav-menu a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Login Page Styles */
.login-page {
    margin-top: 80px;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f1f2f6 0%, #e8e9ec 100%);
}

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

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

.login-header h1 {
    font-size: 2.5rem;
    color: #2d2d2d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.login-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.login-form-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #0074d9;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label a {
    color: #0074d9;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, #0074d9 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 116, 217, 0.3);
}

/* Login Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.remember-me {
    margin-bottom: 0;
}

.forgot-password a {
    color: #0074d9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Login Divider */
.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.social-btn:hover {
    border-color: #0074d9;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.google-btn:hover {
    border-color: #db4437;
    background: rgba(219, 68, 55, 0.05);
}

.discord-btn:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

.social-btn i {
    font-size: 1.1rem;
}

.login-benefits {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.login-benefits h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #2d2d2d;
    margin-bottom: 2rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #0074d9;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: #2d2d2d;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    line-height: 1.5;
}

/* Coming Soon Notification */
.coming-soon-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
    z-index: 1001;
    display: none;
    animation: slideInDown 0.5s ease forwards;
    max-width: 500px;
    width: 90%;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.notification-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-form-container,
    .login-benefits {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .coming-soon-notification {
        top: 80px;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
}
