/* Importar fontes */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* Botão de voltar ao menu */
.back-to-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252, #e53935);
}

.back-to-menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #034EA0 0%, #1a5bb8 50%, #034EA0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Efeito de fundo animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 192, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66, 192, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(66, 192, 240, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Container principal */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header do jogo */
.game-header {
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(66, 192, 240, 0.3);
}

.game-title-section {
    position: relative;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(66, 192, 240, 0.5),
        0 0 20px rgba(66, 192, 240, 0.3),
        0 0 30px rgba(66, 192, 240, 0.2);
    margin-bottom: 15px;
    letter-spacing: 3px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(66, 192, 240, 0.5),
            0 0 20px rgba(66, 192, 240, 0.3),
            0 0 30px rgba(66, 192, 240, 0.2);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(66, 192, 240, 0.7),
            0 0 25px rgba(66, 192, 240, 0.5),
            0 0 35px rgba(66, 192, 240, 0.3);
    }
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.decoration-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #42C0F0, transparent);
    border-radius: 2px;
}

.decoration-star {
    font-size: 1.5rem;
    color: #42C0F0;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Logo IEL */
.iel-logo-section {
    text-align: center;
}

.iel-logo-img {
    height: 120px;
    filter: brightness(0) invert(1);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Seção de perfis */
.profiles-section {
    width: 100%;
    max-width: 1200px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(66, 192, 240, 0.5);
    letter-spacing: 2px;
}

/* Grid de perfis */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards de perfil */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    border: 2px solid rgba(66, 192, 240, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 192, 240, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(66, 192, 240, 0.6);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(66, 192, 240, 0.3);
}

/* Header do card */
.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 25px 15px;
    background: rgba(66, 192, 240, 0.1);
    border-bottom: 1px solid rgba(66, 192, 240, 0.2);
    position: relative;
    z-index: 2;
}

.profile-icon {
    width: 50px;
    height: 50px;
    background: rgba(66, 192, 240, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(66, 192, 240, 0.4);
}

.profile-icon i {
    width: 24px;
    height: 24px;
    color: #42C0F0;
}


/* Conteúdo do card */
.card-content {
    padding: 20px 25px;
    position: relative;
    z-index: 2;
}

.profile-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(66, 192, 240, 0.3);
}

.profile-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Estatísticas do card */
.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
    width: 16px;
    height: 16px;
    color: #42C0F0;
}

.stat-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* Footer do card */
.card-footer {
    padding: 0 25px 25px;
    position: relative;
    z-index: 2;
}

.play-button {
    width: 100%;
    background: linear-gradient(135deg, #42C0F0 0%, #2a9fd8 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(66, 192, 240, 0.3);
}

.play-button:hover {
    background: linear-gradient(135deg, #52d0ff 0%, #3aaff8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 192, 240, 0.4);
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(66, 192, 240, 0.3);
}

/* Instruções do jogo */
.game-instructions {
    width: 100%;
    max-width: 600px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(66, 192, 240, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.instruction-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(66, 192, 240, 0.5);
}

.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-item i {
    width: 20px;
    height: 20px;
    color: #42C0F0;
    flex-shrink: 0;
}

.instruction-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .back-to-menu-btn {
        top: 15px !important;
        left: 15px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .game-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-content {
        padding: 30px 15px;
        gap: 30px;
    }
    
    .iel-logo-img {
        height: 100px;
    }
    
    .card-header {
        padding: 15px 20px 10px;
    }
    
    .card-content {
        padding: 15px 20px;
    }
    
    .card-footer {
        padding: 0 20px 20px;
    }
    
    .instruction-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-menu-btn {
        top: 10px !important;
        left: 10px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .game-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .play-button {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .instruction-item {
        padding: 10px 12px;
    }
    
    .instruction-item span {
        font-size: 0.9rem;
    }
}