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

:root {
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941e;
    --forest: #2d5016;
    --forest-light: #3d6b1f;
    --blue-magic: #4a90e2;
    --blue-dark: #2c5aa0;
    --sunset: #ff7f50;
    --dark-bg: #0f0f0f;
    --dark-card: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
    --border-color: #333;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

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

.main-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--blue-dark) 100%);
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z" fill="rgba(212,175,55,0.1)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo h1 {
    font-size: 4rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.4);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.main-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.user-info {
    color: var(--text-gray);
}

.user-info .welcome strong {
    color: var(--gold);
}

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 600px);
}

.hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.3) 0%, rgba(44, 90, 160, 0.3) 100%);
    border-radius: 10px;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark-bg);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.game-info-section {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    text-align: center;
}

.info-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
}

.funding-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 10px;
    margin: 40px 0;
}

.funding-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.funding-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.funding-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.benefit p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.funding-btn {
    margin-bottom: 20px;
}

.funding-note {
    color: var(--text-gray);
    font-style: italic;
}

.community-section {
    padding: 60px 0;
    text-align: center;
}

.auth-container {
    max-width: 500px;
    margin: 60px auto;
}

.auth-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-title {
    color: var(--gold);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

.link {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.link:hover {
    text-decoration: underline;
    color: var(--gold-light);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-info {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid var(--blue-magic);
    color: var(--blue-magic);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--dark-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    margin-bottom: 30px;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dark-bg);
    font-weight: bold;
}

.profile-info h2 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 2rem;
}

.profile-role {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.profile-content {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3,
.profile-section h4 {
    color: var(--gold);
    margin-bottom: 20px;
}

.profile-form {
    margin-top: 20px;
}

.forum-container {
    max-width: 1000px;
    margin: 0 auto;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.forum-header h2 {
    color: var(--gold);
    font-size: 2.5rem;
}

.forum-category {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
    padding: 20px 30px;
}

.category-info h3 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.category-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.topics-list {
    padding: 20px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
}

.topic-item.pinned {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.topic-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.topic-icon {
    font-size: 1.5rem;
}

.topic-content {
    flex: 1;
}

.topic-content h4 {
    margin-bottom: 8px;
}

.topic-content h4 a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.topic-content h4 a:hover {
    color: var(--gold-light);
}

.topic-meta {
    display: flex;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.topic-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: bold;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.topic-last-post {
    text-align: right;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.topic-last-post strong {
    color: var(--gold);
}

.no-topics {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.topic-container {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topic-header h2 {
    color: var(--gold);
    font-size: 2rem;
}

.post-item {
    display: flex;
    gap: 30px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.topic-post {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.post-author {
    flex-shrink: 0;
    text-align: center;
    width: 150px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
    font-weight: bold;
    margin: 0 auto 10px;
}

.author-name {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 5px;
}

.author-role {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.post-content {
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-text {
    color: var(--text-light);
    line-height: 1.8;
}

.replies-title {
    color: var(--gold);
    margin: 40px 0 20px;
    font-size: 1.5rem;
}

.reply-form-container {
    background: var(--dark-card);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

.reply-form-container h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.create-topic-container,
.topic-form {
    max-width: 900px;
    margin: 0 auto;
}

.create-topic-container h2 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 2rem;
}

.topic-form .form-group {
    margin-bottom: 25px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--gold-light);
}

.btn-danger-link {
    color: #e74c3c;
}

.btn-danger-link:hover {
    color: #c0392b;
}

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

.admin-container h2 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.admin-nav-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px 5px 0 0;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.admin-nav-link.active {
    background: var(--gold);
    color: var(--dark-bg);
    border-color: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(212, 175, 55, 0.1) 100%);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 3rem;
}

.stat-info {
    flex: 1;
}

.admin-sections {
    display: grid;
    gap: 30px;
}

.admin-section {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.admin-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.admin-table {
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-weight: bold;
}

.admin-table td {
    color: var(--text-light);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table a {
    color: var(--gold);
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.badge-co-admin {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: white;
}

.badge-moderator {
    background: linear-gradient(135deg, var(--blue-magic) 0%, var(--blue-dark) 100%);
    color: white;
}

.badge-user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.inline-form {
    display: inline;
}

.inline-form select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
}

.inline-form select:hover {
    border-color: var(--gold);
}

.main-footer {
    background: var(--dark-card);
    border-top: 2px solid var(--gold);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav .container {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .topic-item {
        flex-direction: column;
    }

    .post-item {
        flex-direction: column;
    }

    .post-author {
        width: 100%;
    }

    .admin-nav {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .funding-benefits {
        flex-direction: column;
        gap: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 300px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

.topic-actions {
    display: flex;
    gap: 10px;
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-form textarea {
    min-height: 150px;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

*::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

::selection {
    background: var(--gold);
    color: var(--dark-bg);
}

.reply-form textarea {
    min-height: 150px;
}

.no-topics p {
    margin-bottom: 15px;
}

