/* Global body reset for the dark theme.*/
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    line-height: 1.6;
}

.game-hero {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 2.5rem 0 1.5rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-logo img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
}

.hero-details {
    flex: 1;
    text-align: left;
}

.hero-details h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}

.hero-details p {
    color: #ccc;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #bbb;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Hero sections used for top-of-page call-to-action blocks.*/
.hero {
    background-color: #333;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.section-left-aligned .btn-group {
    justify-content: flex-start;
}

.section {
    padding: 4rem 0;
    text-align: center;
}

.section-left-aligned {
    text-align: left;
}


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

.bg-darker {
    background-color: #222;
}

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

.content-admin {
    text-align: left;
    max-width: 960px;
    margin: 0 auto;
}

.content-admin-form {
    background: #111;
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.content-admin-form input,
.content-admin-form select,
.content-admin-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #1b1b1b;
    color: #fff;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.content-admin-form textarea {
    min-height: 140px;
    resize: vertical;
}

.content-admin-form .form-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.content-admin-form .form-options label {
    margin-bottom: 0;
    font-weight: 500;
}

.content-admin-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-status {
    min-height: 1.5rem;
    font-weight: 600;
}

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

.entries-preview .card {
    background: #1d1d1d;
}

.tournament-header {
    text-align: left;
    margin-bottom: 1rem;
}

#tournament-search {
    max-width: 480px;
}

.tournament-date {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 0.25rem;
}

.tournament-meta {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.tournament-detail {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.tournament-detail section {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.tournament-detail h2 {
    margin-top: 0;
}

.match-list {
    display: grid;
    gap: 1rem;
}

.match-card {
    background: #141414;
    border: 1px solid #2f2f2f;
    padding: 1rem;
    border-radius: 8px;
}

.match-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.match-card p {
    margin: 0.2rem 0;
    color: #ccc;
}

.status-badge {
    display: inline-block;
    background: #111;
    border: 1px solid #3a3a3a;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #eee;
}

.smallprint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.card.physical {
    background: #1f2c1f;
    border-color: #2ecc71;
}

.icon-green {
    color: #2ecc71;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#games-page .search-bar {
    width: 50%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
}

.icon-blue {
    color: #007bff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer {
    padding: 2rem 0;
}

/* Header Styles */
.main-header {
    background-color: #222;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: #007bff;
    margin-right: 0.5rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.search-container {
    display: flex;
    margin-right: 1.5rem;
}

.search-container input {
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #fff;
}

.search-container button {
    padding: 0.5rem;
    border: 1px solid #555;
    border-left: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background-color: #2a2a2a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

#breadcrumb {
    color: #ccc;
    font-size: 0.9rem;
}

#breadcrumb a {
    color: #00aaff;
    text-decoration: none;
}

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

#breadcrumb span {
    color: #fff;
}

/* Search Bar Styles */
.search-bar-container {
    margin-bottom: 2rem;
    text-align: center;
}

/* Players page-specific search/filter styling */
#player-search-input {
    width: min(440px, 100%);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #444;
    background-color: #111;
    color: #fff;
    font-size: 1rem;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
}

.filter-row label {
    font-size: 0.95rem;
    color: #ccc;
}

.filter-row select {
    background-color: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Ensure player cards stay readable */
.card {
    background: #1e1e1e;
    border-color: #333;
}

.card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.card p {
    color: #ccc;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
}

.filter-row label {
    font-size: 0.95rem;
    color: #ccc;
}

.filter-row select {
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

#blog-search-input,
#game-search-input {
    width: 50%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #333;
    color: #fff;
}

/* Game Details Page Styles */
.game-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    text-align: left;
}

.game-logo {
    width: 150px;
    height: 150px;
    margin-right: 2rem;
    border-radius: 10px;
    object-fit: cover;
}

.game-title-description {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 1.1rem;
    color: #ccc;
}

.game-nav {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.game-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.game-nav-link:hover,
.game-nav-link.active {
    background-color: #007bff;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Footer Styles */
footer {
    border-top: 1px solid #444;
}

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

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #007bff;
}

.footer-developed-by p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-developed-by a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.footer-developed-by a:hover {
    text-decoration: underline;
}

.social-media {
    margin-bottom: 2rem;
}

.social-media .btn {
    margin-right: 10px;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 5px 0;
}

.game-icons {
    display: flex;
    justify-content: left;
    gap: 2rem;
}

.game-icon a {
    text-decoration: none;
    color: #fff;
    text-align: center;
}

.game-icon a:hover {
    color: #007bff;
}

/* Reviews page mini navigation */
.review-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-nav .btn-link {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
}

.review-nav .btn-link.active {
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Media Queries for Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .header-content {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 1rem;
    }

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

    .game-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        margin-left: 0 !important;
        text-align: center;
    }

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

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

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

    .nav-link {
        margin-bottom: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        margin-bottom: 1rem;
    }
}