:root {
    /* Cores base */
    --cor-fundo: #0f0f0f;
    --cor-texto: #e0e0e0;
    --cor-principal: #00ff88;
    --cor-hover: #0078d4;

    /* Cabeçalho */
    --cor-header: #1a1a1a;
    --cor-header-sombra: rgba(0, 255, 0, 0.2);

    /* Botões */
    --cor-botao: #00c76f;
    --cor-botao-hover: #00a85b;

    /* Dropdown */
    --cor-dropdown-fundo: #333;
    --cor-dropdown-hover: #555;

    /* Sidebar */
    --cor-sidebar: #f4f4f4;
    --cor-sidebar-texto: #333;
    --cor-sidebar-hover: #e1e1e1;
    --cor-sidebar-borda: #ddd;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    display: flex;
    min-height: 100vh;
}

/* CABEÇALHO */
.site-header {
    background-color: var(--cor-header);
    padding: 20px;
    box-shadow: 0 2px 4px var(--cor-header-sombra);
    position: fixed;
    z-index: 1001;
    width: 100%;
    height: 20px;
    top: 0;
    left: 0;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

/* LINKS DO NAV */
.site-header nav a {
    color: var(--cor-principal);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: var(--cor-hover);
}

/* DROPDOWN DE PERFIL */
.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    overflow: hidden;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--cor-dropdown-fundo);
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--cor-texto);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--cor-dropdown-hover);
}

.show {
    display: block;
}

/* CONTEÚDO PRINCIPAL (geral) */
.container {
    padding: 20px;
    text-align: left;
    margin-left: 260px;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
}

/* BOTÕES (geral) */
button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--cor-botao);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--cor-botao-hover);
}

/* FORMULÁRIO (geral, mas não usado no perfil) */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--cor-texto);
}

input[type="text"], textarea, select {
    padding: 8px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    background-color: var(--cor-header);
    color: var(--cor-texto);
    width: 100%;
}

textarea {
    height: 100px;
    resize: vertical;
}

.champion-role-group {
    margin-bottom: 20px;
}

.champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: var(--cor-header);
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
}

.champion-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.champion-button input[type="checkbox"] {
    display: none;
}

.champion-button img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.champion-button input[type="checkbox"]:checked + img {
    border-color: var(--cor-botao);
}

.champion-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.champion-preview img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 5px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
}

/* TUTORIAIS (não usado no perfil) */
.tutorial-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--cor-header);
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
}

.tutorial-section h2 {
    color: var(--cor-principal);
    margin-bottom: 10px;
}

.tutorial-section ol, .tutorial-section ul {
    text-align: left;
    margin-left: 20px;
}

.tutorial-section li {
    margin-bottom: 10px;
}

.tutorial-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    margin-top: 10px;
}

/* Estilo para o menu lateral */
.sidebar {
    width: 260px;
    background-color: var(--cor-sidebar);
    color: var(--cor-sidebar-texto);
    border-right: 1px solid var(--cor-sidebar-borda);
    position: fixed;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1000;
    left: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 8px 16px;
    border-bottom: 1px solid var(--cor-sidebar-borda);
    position: relative;
}

.sidebar ul li a {
    color: var(--cor-sidebar-texto);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar ul li a:hover {
    color: var(--cor-hover);
    background-color: var(--cor-sidebar-hover);
}

.sidebar ul ul {
    display: none;
    padding-left: 20px;
}

.sidebar ul ul li {
    padding: 4px 16px;
    border-bottom: none;
}

.sidebar ul ul li a {
    font-size: 13px;
}

.sidebar .fas {
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Estilo para o conteúdo principal dentro do container (não usado no perfil) */
.content {
    margin-top: 50px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin: 0 0 0 0 !important;
    margin-top: 30px !important;
}

/* Estilos específicos para a página de perfil */
.profile-container {
    width: 100%;
    padding: 20px;

    margin-top: 100px; /* Espaço para o header fixo */
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

.profile-title {
    font-size: 2em;
    color: var(--cor-principal);
    margin-bottom: 20px;
    text-align: left;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 100%; /* Limite confortável */
    margin: 0 auto;
    padding: 20px;
    background-color: var(--cor-header);
    border-radius: 10px;
    border: 1px solid var(--cor-principal);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-label {
    font-weight: bold;
    color: var(--cor-texto);
}

.profile-input,
.profile-textarea,
.profile-select {
    padding: 10px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    background-color: #252525;
    color: var(--cor-texto);
    width: 100%;
    box-sizing: border-box;
}

.profile-textarea {
    height: 100px;
    resize: vertical;
}

.profile-lol-accounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-lol-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-lol-input {
    padding: 10px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    background-color: #252525;
    color: var(--cor-texto);
    width: 200px;
    box-sizing: border-box;
}

.profile-remove-btn {
    padding: 8px 15px;
    background-color: var(--cor-botao);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-remove-btn:hover {
    background-color: var(--cor-botao-hover);
}

.profile-add-btn {
    padding: 10px 20px;
    background-color: var(--cor-botao);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
    margin-top: 10px;
}

.profile-add-btn:hover {
    background-color: var(--cor-botao-hover);
}

.profile-champion-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-champion-role {
    margin-bottom: 10px;
}

.profile-champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Mais espaço horizontal */
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    background-color: #252525;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
}

.profile-champion-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.profile-champion-button input[type="checkbox"] {
    display: none;
}

.profile-champion-button img {
    width: 60px; /* Aumentado para melhor visualização */
    height: 60px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.profile-champion-button input[type="checkbox"]:checked + img {
    border-color: var(--cor-botao);
}

.profile-champion-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.profile-champion-preview img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
}

.profile-submit-btn {
    padding: 12px 25px;
    font-size: 16px;
    background-color: var(--cor-botao);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    align-self: center;
}

.profile-submit-btn:hover {
    background-color: var(--cor-botao-hover);
}

.profile-not-configured {
    color: var(--cor-texto);
    text-align: center;
    margin-top: 20px;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.content {
    margin: 0 auto;
    max-width: 1200px; /* Ajuste conforme necessário */
    padding: 20px;
}


/* Jogadores*/


 .players-container {
    width: 100%;
    margin-top: 100px;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    padding: 0px;
}

.players-content {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.player-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.player-card {
    width: 200px;
    height: 300px;
    border: 2px solid var(--cor-principal);
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    background: var(--cor-header);
    color: var(--cor-texto);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-card.destaque {
    animation: pulse 1.5s infinite;
}

.player-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.player-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1em;
    overflow-wrap: break-word;
}

.card-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px 10px;
}

.btn {
    display: inline-block;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn:hover {
    opacity: 0.9;
}

.btn.twitch {
    background-color: #6441a5;
}

.btn.twitch:hover {
    background-color: #7a5cc7;
}

.btn.twitch.streaming {
    animation: pulse 1.5s infinite;
}

.btn.disabled {
    background-color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.papel-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2em;
    color: gold;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 4px 8px;
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75em;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* Novidades */
.novidades-container {
    margin-top: 100px;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    padding: 20px 0;
    min-height: calc(100vh - 100px);
    width: 100%;
}

.novidades-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.novidade-form {
    background-color: var(--cor-header);
    border: 2px solid var(--cor-principal);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px; /* Limite máximo para o formulário */
}

.novidade-form select,
.novidade-form textarea {
    padding: 10px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    background-color: #252525;
    color: var(--cor-texto);
    width: 100%;
    box-sizing: border-box;
}

.novidade-form textarea {
    height: 100px;
    resize: vertical;
    overflow-wrap: break-word; /* Garante que o texto quebre corretamente */
}

.novidade-form button {
    padding: 10px 20px;
    background-color: var(--cor-botao);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
    width: auto;
}

.novidade-form button:hover {
    background-color: var(--cor-botao-hover);
}

.novidade-card {
    background-color: var(--cor-header);
    border: 2px solid var(--cor-principal);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    max-width: 600px; /* Limite máximo, mas ajustável */
    box-sizing: border-box;
    overflow-wrap: break-word; /* Quebra de texto para evitar transbordo */
}

.novidade-card h3 {
    color: var(--cor-principal);
    margin: 0 0 10px;
    font-size: 1.2em;
    word-wrap: break-word; /* Quebra de palavras longas */
}

.novidade-card p {
    margin: 0 0 10px;
    word-wrap: break-word; /* Quebra de texto longo */
}

.novidade-card small {
    color: #888;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .novidade-card {
        max-width: 100%; /* Ocupa toda a largura em telas pequenas */
        padding: 10px;
    }
    .novidade-form {
        padding: 15px;
        max-width: 100%; /* Ajusta o formulário em telas pequenas */
    }
    .novidades-content {
        padding: 0 10px; /* Reduz padding em telas menores */
    }
}

@media (min-width: 1200px) {
    .novidade-card {
        max-width: 800px; /* Aumenta o tamanho máximo em telas grandes */
    }
    .novidade-form {
        max-width: 800px; /* Aumenta o tamanho máximo do formulário */
    }
}

/* Jogador */
.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--cor-header);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.15);
    color: var(--cor-texto);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--cor-sidebar-borda);
}

.profile-info h2 {
    margin: 0 0 10px;
    color: var(--cor-principal);
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--cor-sidebar-borda);
    padding-bottom: 5px;
    color: var(--cor-texto);
}

.lol-accounts ul {
    padding-left: 20px;
    margin: 0;
}

.champion-role {
    margin-bottom: 20px;
}

.champion-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.champion-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid var(--cor-sidebar-borda);
}

.description-box {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 6px;
    white-space: pre-line;
    color: var(--cor-texto);
}

/* Coaches */
.coaches-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--cor-fundo) !important;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.coach-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.coach-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), var(--cor-principal), rgba(0, 0, 0, 0.3)) !important;
    border: 1px solid var(--cor-principal);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    color: var(--cor-texto) !important;
}

.coach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cor-principal), #ff00ff) !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.coach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.coach-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--cor-botao);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.coach-card h3 {
    color: var(--cor-principal);
    font-size: 1.5em;
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: capitalize;
    background: linear-gradient(90deg, var(--cor-principal), #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.coach-card p {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--cor-texto);
    line-height: 1.6;
    padding: 0 10px;
    text-align: left;
}

.coach-card p strong {
    color: var(--cor-principal);
    font-weight: 600;
}

.coach-card .rank-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #ffd700;
}

.coach-card .rank-info span {
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9em;
}

.coach-card .btn-agendar,
.coach-card .btn-sessions,
.coach-card .btn-profile {
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--cor-botao), #00cc66);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

.coach-card .btn-agendar:hover,
.coach-card .btn-sessions:hover,
.coach-card .btn-profile:hover {
    background: linear-gradient(135deg, var(--cor-botao-hover), #00994d);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.coach-card .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Responsividade */
@media (max-width: 600px) {
    .coach-list {
        grid-template-columns: 1fr;
    }

    .coaches-container {
        padding: 15px;
        margin: 10px auto;
    }

    .coach-card {
        padding: 15px;
        max-width: 100%;
    }

    .coach-card img {
        width: 80px;
        height: 80px;
    }

    .coach-card h3 {
        font-size: 1.3em;
    }

    .coach-card .btn-agendar,
    .coach-card .btn-sessions,
    .coach-card .btn-profile {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}