@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --text-primary: #f1f1f4;
    --text-secondary: #8888a0;
    --border: #2a2a3a;
    --success: #22c55e;
    --danger: #ef4444;
}

/* Base */
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.bg-pattern--intense {
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo--large {
    font-size: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--full {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.card--elevated {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* User Badge */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-badge::before {
    content: '●';
    color: var(--success);
    font-size: 0.6rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert--centered {
    text-align: center;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Auth Pages (Login/Logout) */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

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

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: var(--text-primary);
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

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

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.game-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-dark);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-image--small {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-info {
    padding: 1.25rem;
}

.game-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.rating {
    color: #fbbf24;
}

.track-form {
    margin-top: 0.5rem;
}

/* Games List */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: background 0.2s ease;
}

.game-list-item:hover {
    background: var(--bg-card-hover);
}

.game-list-item--finished {
    border-color: var(--success);
    border-left-width: 4px;
}

.game-details {
    flex: 1;
}

.game-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge--finished {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge--playing {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

.status-badge--backlog {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-secondary);
}

.status-badge--paused {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.date-finished {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* State selector */
.state-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.state-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.state-select:focus {
    outline: none;
    border-color: var(--accent);
}

.game-actions {
    display: flex;
    gap: 0.5rem;
}

/* Button Variants */
.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.action-links {
    margin-top: 2rem;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Steps */
.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-section .card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.content-section .card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Game List Link */
.game-list-item--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-list-item--link:hover {
    background: var(--bg-card-hover);
}

.game-list-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.game-list-item--link:hover .game-list-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Back Navigation */
.back-nav {
    margin-bottom: 2rem;
}

.back-link-inline {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link-inline:hover {
    color: var(--accent);
}

/* Game Detail Page */
.game-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.game-detail-image {
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.game-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image--large {
    font-size: 1.25rem;
}

.game-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.game-detail-status {
    margin-bottom: 1.5rem;
}

.status-badge--large {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
}

.game-detail-date {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-detail-date .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-detail-date .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
}

.game-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.game-detail-actions .btn {
    width: 100%;
}

.delete-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Game Edit Form */
.game-edit-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.game-edit-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.game-edit-form .form-group {
    margin-bottom: 1.25rem;
}

.game-edit-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.game-edit-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-edit-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.game-edit-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.rating-input {
    width: 120px !important;
    -moz-appearance: textfield;
}

.rating-input::-webkit-inner-spin-button,
.rating-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Rating Display */
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.75rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Rating Color Tiers */
.rating--great {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.rating--good {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.rating--mixed {
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
}

.rating--poor {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Badge variants (no background) */
.rating-badge.rating--great { color: #22c55e; background: none; }
.rating-badge.rating--good { color: #fbbf24; background: none; }
.rating-badge.rating--mixed { color: #f97316; background: none; }
.rating-badge.rating--poor { color: #ef4444; background: none; }

/* Game Notes Display */
.game-notes-display {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-notes-display h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.game-notes-display p {
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Game Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Tag Badges */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-badge--owned {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.tag-badge--wishlisted {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.tag-badge--physical {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.tag-badge--digital {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.tag-badge--favorite {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .page-header {
        padding-top: 2rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features {
        margin-top: 3rem;
    }

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

    .game-list-item {
        gap: 1rem;
    }

    .game-image--small {
        width: 100px;
        min-width: 100px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn--large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .game-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-detail-info h1 {
        font-size: 2rem;
    }

    .action-bar {
        flex-wrap: wrap;
    }

    .filter-form {
        flex-wrap: wrap;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .container {
        padding: 1rem;
    }

    .page-header {
        padding-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .features {
        margin-top: 2rem;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

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

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.25rem;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

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

    .game-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .game-image--small {
        width: 100%;
        min-width: unset;
    }

    .game-details {
        width: 100%;
    }

    .game-status {
        flex-wrap: wrap;
    }

    .game-actions {
        width: 100%;
    }

    .game-actions form {
        width: 100%;
    }

    .game-actions .btn {
        width: 100%;
    }

    .action-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-form {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .user-badge {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .card--elevated {
        padding: 1.5rem;
    }

    .auth-container {
        padding: 1rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.25rem;
    }

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

    .cta-section {
        margin-top: 2rem;
    }

    .game-detail {
        gap: 1.5rem;
    }

    .game-detail-info h1 {
        font-size: 1.5rem;
    }

    .game-detail-actions {
        max-width: none;
    }

    .game-list-arrow {
        display: none;
    }
}

/* Site Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

/* RAWG Attribution */
.rawg-attribution {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.rawg-attribution a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.rawg-attribution a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
