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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #11111b 100%);
    min-height: 100vh;
    padding: 20px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background: #313244;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #89dceb;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.auth-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .auth-section {
        grid-template-columns: 1fr;
    }
}

.auth-method {
    border: 2px solid #45475a;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.auth-method:hover {
    border-color: #89b4fa;
    box-shadow: 0 4px 12px rgba(137, 180, 250, 0.2);
}

.auth-method h2 {
    color: #cdd6f4;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.auth-method p {
    color: #bac2de;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #45475a;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 10px;
    transition: border-color 0.3s;
    background: #1e1e2e;
    color: #cdd6f4;
}

input[type="text"]:focus {
    outline: none;
    border-color: #89b4fa;
    box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.2);
}

button {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #1e1e2e;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(137, 180, 250, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(137, 180, 250, 0.3);
    border-top: 3px solid #89b4fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #45475a;
    color: #f38ba8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #f38ba8;
}

.success {
    background: #45475a;
    color: #a6e3a1;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #a6e3a1;
}

.results-section {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-header h2 {
    color: #cdd6f4;
}

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

.stat-card {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #1e1e2e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.game-card {
    border: 1px solid #45475a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #313244;
}

.game-card:hover {
    box-shadow: 0 8px 24px rgba(137, 180, 250, 0.2);
    transform: translateY(-4px);
}

.game-card.drm-free {
    border-color: #a6e3a1;
    background: #1e1e2e;
}

.game-card.has-drm {
    border-color: #f38ba8;
    background: #1e1e2e;
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #45475a;
}

.game-image {
    width: 80px;
    height: 45px;
    background: #45475a;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-title {
    font-weight: 600;
    color: #cdd6f4;
    margin-bottom: 5px;
}

.game-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.game-status.drm-free {
    background: #a6e3a1;
    color: #1e1e2e;
}

.game-status.has-drm {
    background: #f38ba8;
    color: #1e1e2e;
}

.game-status.unknown {
    background: #9399b2;
    color: #1e1e2e;
}

.game-details {
    padding: 15px;
    font-size: 0.9em;
    color: #bac2de;
}

.drm-info {
    margin-bottom: 10px;
}

.drm-info label {
    font-weight: 600;
    color: #cdd6f4;
}

.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #45475a;
    color: #cdd6f4;
    border: 2px solid #585b70;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.filter-btn.active {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #1e1e2e;
    border-color: #89b4fa;
}

.back-button {
    background: #45475a;
    color: #cdd6f4;
    border: 2px solid #585b70;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    width: auto;
}

.back-button:hover {
    background: #585b70;
    border-color: #7f849c;
    transform: none;
    box-shadow: none;
}

.loading-state {
    text-align: center;
    padding: 40px;
}

.loading-state .loading {
    width: 40px;
    height: 40px;
    border-width: 4px;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #bac2de;
}

.empty-state h3 {
    color: #cdd6f4;
    margin-bottom: 10px;
}
