/* assets/css/portal.css */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --train-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --locked-gradient: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background animated shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.15);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.portal-header {
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.8);
}

.portal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-light);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-bottom: 6rem;
    flex: 1;
}

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.game-card:not(.locked-card):hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: rgba(59, 130, 246, 0.5);
}

.game-card-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.train-bg {
    background: var(--train-gradient);
    /* In future, use an actual image: background-image: url('../img/train-bg.jpg'); background-size: cover; */
}

.locked-bg {
    background: var(--locked-gradient);
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.new-badge {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.upcoming-badge {
    background: rgba(0,0,0,0.5);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.game-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.game-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.genre-tag {
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.game-card:hover .play-btn {
    color: var(--text-light);
}

.play-btn svg {
    transition: transform 0.3s ease;
}

.game-card:hover .play-btn svg {
    transform: translateX(4px);
}

.locked-card {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.portal-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(2, 6, 23, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .games-grid { grid-template-columns: 1fr; }
    .main-nav a { margin-left: 1rem; }
}
