/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== HEADER & NAVBAR ===== */
.main-header.full {
    background-color: #1a1a1a;
    width: 100%;
    padding: 10px 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    height: 40px;
    margin-right: 20px;
}

.nav-menu-left {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu-left li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.nav-menu-left li a:hover {
    text-decoration: underline;
}

.nav-menu-right {
    display: flex;
    gap: 10px;
}

/* DROPDOWN STYLING */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e2e2e;
    padding: 10px 0;
    min-width: 180px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-content li a:hover {
    background-color: #444;
}

.dropdown:hover .dropdown-content {
    display: block;
}


.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn.primary {
    background-color: #28a745;
    color: white;
}

.btn.primary:hover {
    background-color: #218838;
}

.btn.secondary {
    background-color: #007bff;
    color: white;
}

.btn.secondary:hover {
    background-color: #0069d9;
}

/* ===== HERO SECTION ===== */
.hero {
    background: url('bg.jpg') center center no-repeat;
    background-size: cover;
    background-color: #222;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animate hero content */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Button hover effect */
.btn {
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    transform: scale(1.03);
}


.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    display: inline-block;
    border-radius: 10px;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    padding: 20px;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.news-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.news-card small {
    color: #888;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links li a:hover {
    text-decoration: underline;
}

/* ===== FORM ELEMENTS ===== */
form {
    max-width: 400px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

form button:hover {
    background-color: #0056b3;
}

.public-header {
    padding: 20px 0;
    text-align: center;
    background-color: #f0f0f0;
}

.public-header-inner {
    max-width: 100%;
}

.public-logo {
    height: 60px;
}

.form-section {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.auth-form button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.form-link {
    margin-top: 20px;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu-left,
    .nav-menu-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-content {
        padding: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== user Dashboard ===== */

.dashboard-header {
    background: linear-gradient(90deg, #007bff, #28a745);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.dash-section {
    margin: 40px 0;
}

.game-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    border-left: 5px solid #28a745;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.badge {
    background-color: #007bff;
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* Dashboard header */
h2 {
    font-size: 2.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
    text-align: center;
}

/* Section titles */
.dash-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    padding-left: 12px;
    color: #007bff;
}

.site-header {
    background-color: #1a1a1a;
    padding: 15px 20px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    height: 40px;
}

.site-nav a {
    color: white;
    margin-left: 20px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.settings-container {
    max-width: 600px;
    margin: 30px auto 60px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.profile-form input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
}

.profile-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.profile-form button:hover {
    background-color: #0056b3;
}

.flash-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.forum-index {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.forum-category-list {
    list-style: none;
    padding: 0;
}

.forum-category {
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.2s;
}

.forum-category a {
    text-decoration: none;
    color: #333;
}

.forum-category:hover {
    background-color: #f9f9f9;
}

.forum-category-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.thread-list {
    list-style: none;
    padding: 0;
}

.thread-item {
    margin-bottom: 15px;
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: background 0.2s;
}

.thread-item:hover {
    background: #f5f5f5;
}

.thread-item a {
    color: #333;
    text-decoration: none;
}

.forum-post-form {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.forum-post-form input[type="text"],
.forum-post-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.forum-post-form button {
    margin-top: 15px;
    padding: 10px 20px;
    font-weight: bold;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.forum-post-form button:hover {
    background: #0056b3;
}

.forum-thread {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.forum-post {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.forum-header {
    background: linear-gradient(90deg, #1c1c1c, #292929);
    padding: 12px 20px;
    border-bottom: 2px solid #007bff;
}

.forum-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-nav {
    display: flex;
    gap: 20px;
}

.forum-nav a {
    color: #f0f0f0;
    font-weight: 500;
    text-decoration: none;
}

.forum-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.forum-alert {
    background: #ffeeba;
    color: #856404;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0c36d;
    text-align: center;
}

.user-meta {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #777;
}

.post-user {
    width: 180px;
    font-size: 0.95rem;
    color: #444;
    border-right: 1px solid #ddd;
    padding-right: 15px;
    text-align: left;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #ccc;
}

.role-group-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
    font-weight: bold;
}

.role-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    margin: 2px 0;
    color: white;
    border-radius: 4px;
}

.post-body {
    flex: 1;
    padding-left: 20px;
}

.post-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.post-content {
    font-size: 1rem;
    line-height: 1.5;
}

.post-box {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.post-content {
    font-size: 1rem;
}

.reply-form {
    margin-top: 40px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
}

.reply-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.reply-form button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.reply-form button:hover {
    background: #0056b3;
}

.sub-category-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
}

.sub-category-list li {
    margin: 5px 0;
}

.sub-category-list li a {
    color: #007bff;
    text-decoration: none;
}

.sub-category-list li a:hover {
    text-decoration: underline;
}

.thread-count {
    color: #888;
    font-size: 0.85rem;
    margin-left: 4px;
}

.badge-sticky {
    background: #ffc107;
    color: #333;
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-left: 10px;
    border-radius: 4px;
}

.thread-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    transition: background 0.2s;
}

.thread-item:hover {
    background: #f9f9f9;
}

.thread-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
}

.thread-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.thread-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-category-list li a {
    font-size: 0.95rem;
}

.forum-board-group {
    margin-bottom: 40px;
}

.forum-board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.forum-board-table th,
.forum-board-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.forum-board-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.forum-board-table td a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.forum-board-table td a:hover {
    text-decoration: underline;
}

.last-post-cell a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.last-post-cell small {
    font-size: 0.8rem;
    color: #666;
}

.last-post-cell {
    font-size: 0.9rem;
    line-height: 1.4;
}

.last-post-cell a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.last-post-cell a:hover {
    text-decoration: underline;
}

.last-post-cell small {
    color: #666;
    font-size: 0.8rem;
}

.thread-admin-tools {
    margin: 10px 0 20px;
    display: flex;
    gap: 10px;
}

.thread-admin-tools form button {
    background: #eee;
    border: 1px solid #ccc;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.thread-admin-tools .danger {
    background: #dc3545;
    color: white;
    border: none;
}

.reply-form {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reply-form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.reply-form button {
    padding: 8px 16px;
    font-size: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reply-form button:hover {
    background: #0056b3;
}