/* CSS - Design Clássico Preto e Branco - Versão Final com Responsividade Melhorada */

@import url('https://fonts.googleapis.com/css2?family=Jersey+15&family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TOP HEADER ==================== */
.top-header {
    background: var(--black);
    border-bottom: 2px solid var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-family: 'Jersey 15', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* ==================== HERO IMAGE ==================== */
.hero-image {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/images/mestres.png');
    background-size: cover;
    background-position: center;
    height: 450px;
    position: relative;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* ==================== MAIN INTRO & SEARCH ==================== */
.main-intro {
    padding: 60px 5% 20px;
    text-align: center;
    background: var(--black);
}

.main-title {
    font-family: 'Jersey 15', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.main-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    font-family: 'Lato', sans-serif;
}

.search-section {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* ==================== PLAYERS GRID ==================== */
.players-section {
    padding: 40px 5% 80px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Player Card - Imagens em preto e branco, cursor pointer, posição ajustada */
.player-card {
    background: var(--black);
    border: 2px solid var(--white);
    transition: transform 0.3s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.player-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(1);
    display: block;
}

.player-info {
    padding: 20px;
    text-align: center;
    border-top: 2px solid var(--white);
    background: var(--black);
    flex-grow: 1;
}

.player-info h3 {
    font-family: 'Jersey 15', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 0.1rem;
}

.player-info p {
    font-size: 0.9rem;
    color: #aaa;
    font-family: 'Lato', sans-serif;
}

/* ==================== IMAGE BOTTOM ==================== */
.image-bottom {
    background: url('/images/fundobottom.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 500px;
    filter: brightness(2);
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 3px solid white;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-around;
    height: 300px;
    margin-bottom: 20px;
    background: var(--black);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.images-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.images-logo .divider {
    height: 30px;
    margin-left: 30px;
    border: 2px solid white;
}

.images-logo .logo {
    width: 100px;
    border: none;
}

.images-logo img {
    display: flex;
    width: 40px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.social-links a img {
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    width: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.social-links a img:hover {
    transform: translateY(-5px);
}

.social-direitos {
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
}

/* ==================== PLAYER PAGE ==================== */

.body-player {
    background: var(--black);
    color: var(--white);
    padding: 20px;
}

/* ==================== PAGE TITLE ==================== */
.page-title-section {
    padding: 80px 5% 40px;
    text-align: center;
    background: var(--black);
}

.page-title {
    font-family: 'Jersey 15', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.status-message {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
}

/* ==================== LAYOUT ==================== */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.layout .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==================== PROFILE AREA ==================== */
.profile-area {
    background: var(--black);
    border: 2px solid var(--white);
    padding: 40px 20px;
    border-radius: 0;
    text-align: center;
    margin-top: 20px;
}

.player-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(1);
    border: 3px solid var(--white);
    margin-bottom: 20px;
}

.player-name {
    font-family: 'Jersey 15', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.1rem;
}

.player-rating {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ==================== GAMES AREA ==================== */
.games-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.years-filter {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.years-filter button {
    padding: 8px 16px;
    border: 2px solid var(--white);
    background: var(--black);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Lato', sans-serif;
}

.years-filter button:hover,
.years-filter button.active {
    background: var(--white);
    color: var(--black);
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.game-card {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 20px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--black);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 600px;
    transition: var(--transition);
}

.game-card div {
    color: black;
    font-weight: bold;
}

.game-card strong {
    color: black;
    font-weight: bold;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 0 var(--black);
}

/* Estilos de Resultado */
.game-card.win {
    border-left: 8px solid #2ecc71;
}

.game-card.win:hover {
    background: #bfffbd;
}

.game-card.win .result-text {
    color: #2ecc71;
}

.game-card.loss {
    border-left: 8px solid #e74c3c;
}

.game-card.loss:hover {
    background: #ffbdbd;
}

.game-card.loss .result-text {
    color: #e74c3c;
}

.game-card.draw {
    border-left: 8px solid #95a5a6;
}

.game-card.draw:hover {
    background: #d3d3d3;
}

.game-card.draw .result-text {
    color: #7f8c8d;
}

.result-text {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Botões de Controle */
.btns-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.btn-load {
    padding: 12px 30px;
    border: 2px solid var(--white);
    background: var(--black);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.btn-load:hover {
    background: var(--white);
    color: var(--black);
}


/* ==================== RESPONSIVIDADE GERAL ==================== */

/* Tablets */
@media (max-width: 1024px) {

    .site-title {
        font-size: 1.4rem;
        letter-spacing: 0.2rem;
        display: none;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        margin: 10px;
    }

    .main-title {
        font-size: 3rem;
        letter-spacing: 0.25rem;

    }

    .players-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .player-card {
        background: var(--black);
        border: 2px solid var(--white);
        transition: transform 0.3s ease;
        height: 420px;
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .player-card img {
        height: 260px;
    }

    .image-bottom {
        overflow: hidden;
        width: 100%;
    }

    .body-player {
        padding: 69px;
    }

    .page-title {
        font-size: 2.5rem;
        letter-spacing: 0.25rem;
    }

    .profile-area {
        padding: 30px 15px;
    }

    .player-avatar {
        width: 120px;
        height: 120px;
    }

    .player-name {
        font-size: 1.8rem;
    }



}

/* Mobile Grande */
@media (max-width: 768px) {
    .top-header {
        padding: 0.8rem 3%;
        width: 100%;
    }

    .site-title {
        font-size: 1.4rem;
        letter-spacing: 0.2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .page-title-section {
        margin-top: 50px;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .hero-image {
        height: 350px;
        margin-top: 50px;
    }

    .images-logo {
        margin-left: 30px;
    }

    .main-intro {
        padding: 40px 3% 15px;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

    .main-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .search-input {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .players-section {
        padding: 30px 3% 60px;
    }

    .players-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .player-card {
        background: var(--black);
        border: 2px solid var(--white);
        transition: transform 0.3s ease;
        height: 420px;
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .player-card img {
        height: 240px;
    }

    .player-info {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .player-info h3 {
        font-size: 1.5rem;
    }

    .player-info p {
        font-size: 1.2rem;
    }

    .image-bottom {
        height: 300px;
    }

    .footer {
        height: auto;
        padding: 2rem 0;
        gap: 20px;
    }

    .social-links {
        gap: 30px;
    }

    .page-title-section {
        padding: 60px 3% 30px;
    }

    .page-title {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .status-message {
        font-size: 1rem;
    }

    .body-player {
        padding: 15px;
    }

    .profile-area {
        padding: 25px 15px;
        margin-top: 15px;
    }

    .player-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .player-name {
        font-size: 1.5rem;
    }

    .player-rating {
        font-size: 0.9rem;
    }

    .games-area {
        gap: 25px;
    }

    .years-filter {
        gap: 8px;
        margin-bottom: 15px;
    }

    .years-filter button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .games-grid {
        gap: 12px;
    }

    .game-card {
        width: 95%;
        padding: 15px;
        max-width: none;
    }

    .btns-container {
        gap: 10px;
        margin-top: 15px;
    }

    .btn-load {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

}

/* Mobile Pequeno */
@media (max-width: 480px) {

    .body-player {
        margin: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .content {
        width: 95%;
    }

    .result-text {
        display: none;
    }

    .footer {
        gap: 15px;
        padding: 1.5rem 0;
    }

    .images-logo {
        gap: 5px;
    }

    .images-logo img {
        width: 30px;
    }

    .images-logo .logo {
        width: 80px;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a img {
        width: 30px;
    }

    .social-direitos {
        font-size: 0.9rem;
    }

    .page-title-section {
        padding: 50px 2% 20px;
    }

    .page-title {
        font-size: 1.6rem;
        letter-spacing: 0.15rem;
    }

    .status-message {
        font-size: 0.9rem;
    }

    .body-player {
        padding: 10px;
    }

    .layout {
        padding: 0 2%;
    }

    .profile-area {
        padding: 20px 10px;
        margin-top: 10px;
    }

    .player-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .player-name {
        font-size: 1.5rem;
    }

    .player-rating {
        font-size: 1rem;
    }

    .games-area {
        gap: 20px;
    }

    .years-filter {
        gap: 5px;
        margin-bottom: 10px;
    }

    .years-filter button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .games-grid {
        gap: 10px;
    }

    .game-card {
        width: 100%;
        padding: 12px;
    }

    .btns-container {
        gap: 8px;
        margin-top: 12px;
    }

    .btn-load {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

}