/* Game Collection Tracker Styles */

/* Login Gate */
.login-gate {
    min-height: calc(100vh - 285px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
}

.login-container {
    max-width: 500px;
    width: 100%;
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.auth-tab.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.auth-form-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.demo-note-small {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    text-align: center;
}

.demo-note-small p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

.demo-note-small code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.auth-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    text-align: center;
}

.auth-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--primary);
    font-weight: 600;
}

.login-help ul {
    list-style: none;
    padding-left: 0;
}

.login-help li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.login-help li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.login-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--darker-bg);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.login-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-note a {
    color: var(--primary);
    text-decoration: none;
}

.login-note a:hover {
    text-decoration: underline;
}

.login-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    text-align: left;
}

.login-credentials small {
    font-size: 0.85rem;
    line-height: 1.6;
}

.login-credentials strong {
    color: var(--primary);
}

.login-credentials code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.demo-credentials-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-credentials-box h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.demo-creds-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.demo-creds-content p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--text);
}

.demo-creds-content strong {
    color: var(--text-muted);
}

.cred-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

.demo-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.signup-box {
    background: rgba(255, 0, 119, 0.1);
    border: 1px solid rgba(255, 0, 119, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
    text-align: center;
}

.signup-box h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.signup-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-signup {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: #ff1188;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 119, 0.3);
}

.login-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.login-help p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.login-help ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.login-help li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.login-help a {
    color: var(--primary);
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

/* Game Collection Interface */
.game-collection {
    min-height: calc(100vh - 285px);
}

/* User Header */
.user-header {
    background: linear-gradient(135deg, #1a1f2e 0%, #0a0e1a 100%);
    border-bottom: 2px solid var(--primary);
    padding: 2rem 0;
    margin-top: 185px;
}

.user-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-welcome h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.user-welcome h1 span {
    color: var(--primary);
}

.user-welcome p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-logout {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 119, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

/* Stats Bar */
.stats-bar {
    background: rgba(26, 31, 46, 0.5);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filters Section */
.filters-section {
    background: rgba(10, 14, 26, 0.5);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

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

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: rgba(26, 31, 46, 0.5);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.game-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: var(--darker-bg);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.game-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.game-card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.game-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 1;
}

.game-status-badge.completed {
    background: rgba(0, 255, 136, 0.9);
    color: var(--darker-bg);
}

.game-status-badge.in-progress {
    background: rgba(0, 212, 255, 0.9);
    color: var(--darker-bg);
}

.game-status-badge.want-to-play {
    background: rgba(255, 0, 119, 0.9);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-status h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.status-buttons {
    display: grid;
    gap: 0.75rem;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn:hover {
    transform: translateX(5px);
}

.status-btn.completed {
    border-color: rgba(0, 255, 136, 0.3);
}

.status-btn.completed:hover,
.status-btn.completed.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

.status-btn.in-progress {
    border-color: rgba(0, 212, 255, 0.3);
}

.status-btn.in-progress:hover,
.status-btn.in-progress.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.status-btn.want-to-play {
    border-color: rgba(255, 0, 119, 0.3);
}

.status-btn.want-to-play:hover,
.status-btn.want-to-play.active {
    background: rgba(255, 0, 119, 0.2);
    border-color: var(--accent);
}

.status-btn.remove {
    border-color: rgba(255, 0, 0, 0.3);
}

.status-btn.remove:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.status-icon {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-header {
        margin-top: 165px;
    }

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

    .user-welcome h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .game-card-image {
        height: 280px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}
