/* Layout Styles - Header, Footer, Game Grid, Leaderboard */

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-size: 0.9em;
}

/* Game Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.game-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.game-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fff;
}

.game-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-stats {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Leaderboard */
.leaderboard-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.leaderboard-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: translateY(-2px);
}

.leaderboard-content {
    min-height: 200px;
}

.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.player-rank {
    font-weight: bold;
    color: #4ecdc4;
    font-size: 1.2em;
    min-width: 30px;
}

.player-name {
    flex-grow: 1;
    margin-left: 20px;
}

.player-score {
    font-weight: bold;
    color: #ff6b6b;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    font-size: 0.9em;
    line-height: 1.6;
}

.status-online {
    color: #4caf50;
    font-weight: bold;
}

.status-offline {
    color: #f44336;
    font-weight: bold;
}