/* TheRing Game Hub Styles */

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-bg-hover: rgba(255, 255, 255, 0.2);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-border-hover: rgba(255, 255, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.hub-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.hub-header {
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.hub-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.title-icon {
    font-size: 64px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.title-text {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hub-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.hub-main {
    flex: 1;
    padding: 40px 20px;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Game Card */
.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg);
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card-content {
    position: relative;
    z-index: 1;
}

.game-icon {
    font-size: 72px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.game-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.game-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 16px;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Footer */
.hub-footer {
    padding: 30px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hub-title {
        font-size: 42px;
    }

    .title-icon {
        font-size: 48px;
    }

    .hub-subtitle {
        font-size: 16px;
    }

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

    .game-card {
        padding: 24px;
    }

    .game-icon {
        font-size: 56px;
    }

    .game-name {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hub-header {
        padding: 30px 15px;
    }

    .hub-main {
        padding: 30px 15px;
    }

    .hub-title {
        font-size: 36px;
        flex-direction: column;
        gap: 10px;
    }
}
