/* Gamers Only Hub Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

body {
    background-color: #0d0d10;
    /* deeply dark bg */
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    /* Sci-fi/Gaming font */
    color: #ff3e3e;
    /* Gamer Red */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.7);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #ff3e3e;
    padding-bottom: 10px;
}

p {
    max-width: 700px;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    /* Slight card effect */
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ff3e3e;
}

a {
    color: #ff3e3e;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px #ff3e3e;
    text-decoration: underline;
}

/* Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d10;
}

::-webkit-scrollbar-thumb {
    background: #ff3e3e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 62, 62, 0.2);
    width: 100%;
    max-width: 700px;
}

.game-item img {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-item h3 {
    margin: 0 0 5px 0;
    text-align: left;
    border: none;
}

.game-item p {
    text-align: left;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
}

/* Sign Up Form Styles */
.signup-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 62, 62, 0.2);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
}

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

label {
    display: block;
    color: #ff3e3e;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 12px;
    background: #1a1a20;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    /* Fix padding issue */
}

input:focus {
    outline: none;
    border-color: #ff3e3e;
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #ff3e3e;
    color: #ff3e3e;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #ff3e3e;
    color: #fff;
    box-shadow: 0 0 15px #ff3e3e;
    transform: translateY(-2px);
}

.back-link {
    background: none !important;
    border: none !important;
}

/* Dashboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 62, 62, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 62, 62, 0.4);
}

.dashboard-card h2 {
    color: #ff3e3e;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-top: 0;
}

.game-status-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.game-status-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.status-badge {
    background: #ff3e3e;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.action-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: transparent;
    border: 1px solid #ff3e3e;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 62, 62, 0.2);
}

.action-btn.danger {
    border-color: #555;
    color: #888;
}

.action-btn.danger:hover {
    border-color: #ff0000;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.add-game-box {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.add-game-box input {
    padding: 8px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
}

textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a20;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #ff3e3e;
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.3);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.pagination button {
    background: transparent;
    border: 1px solid #ff3e3e;
    color: #ff3e3e;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination button:hover:not(:disabled) {
    background: #ff3e3e;
    color: #fff;
    box-shadow: 0 0 10px #ff3e3e;
}

.pagination button:disabled {
    cursor: default;
    border-color: #555;
    color: #555;
}

#page-info {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.1rem;
}

.add-game-box button {
    background: #ff3e3e;
    color: white;
    border: none;
    border-radius: 4px;
    width: 35px;
    font-size: 1.2rem;
    cursor: pointer;
}

.delete-btn {
    color: #666;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    margin-left: 10px;
}

.delete-btn:hover {
    color: #fe0000;
}