.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #28a745; /* Yeşil arka plan */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Gölge artırıldı */
    border-radius: 10px; /* Köşe yuvarlatma artırıldı */
    width: 90%; /* Genişlik %90 */
    margin: 20px auto; /* Ortalamak için ve üstte boşluk */
    position: relative;
    z-index: 1000;
}

.logo img {
    max-width: 100px;
}

.login-button button {
    padding: 10px 20px;
    background-color: #007bff; /* Mavi arka plan */
    color: white; /* Beyaz yazı rengi */
    border: none; /* Kenar yok */
    border-radius: 5px; /* Yuvarlak köşeler */
    cursor: pointer; /* İmleç değişimi */
    transition: background-color 0.3s; /* Arka plan geçişi */
}

.login-button button:hover {
    background-color: #0056b3; /* Daha koyu mavi hover rengi */
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-menu li {
    margin-right: 25px;
    font-weight: bold; /* Kalın yazı */
    color: white; /* Beyaz yazı rengi eklendi */
    cursor: pointer; /* İmleç değişimi */
    transition: color 0.3s; /* Renk geçişi */
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.nav-menu li:hover {
    color: #007bff; /* Mavi hover rengi */
}

.nav-menu li a:hover {
    color: #007bff;
}

/*From now belong to Second Header File*/

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

body {
    padding-top: 100px; /* Header'ın altında başlaması için üstten boşluk */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-section img {
    height: 50px;
    width: auto;
}

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

.nav-section a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-section a:hover {
    color: #4CAF50;
}

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

.action-section button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.action-section button:hover {
    background-color: #45a049;
}

.action-section img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

/* Kartım Popup Styles */
.kartim-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.kartim-popup-content {
    background-color: #eefff2;
    width: 80%;
    height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 20px;
    animation: popupAnimation 0.3s ease-out;
    overflow: hidden;
}

.kartim-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.kartim-close:hover {
    color: #000;
}

.kartim-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.kartim-left {
    flex: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.kartim-right {
    flex: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin-right: 20px;
}

.fifa-card-container {
    position: relative;
    width: 100%;
    height: auto;
}

.fifa-card {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-stat {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
}

/* Pozisyonlar */
.card-stat[data-position="top-left"] {
    top: 25%;
    left: 25%;
    font-size: calc(1vw + 14px);
}

.card-stat[data-position="top-center"] {
    top: 25%;
    left: 50%;
    font-size: calc(1vw + 14px);
}

.card-stat[data-position="top-right"] {
    top: 25%;
    left: 75%;
    font-size: calc(1vw + 14px);
}

.card-stat[data-position="bottom-left"] {
    top: 75%;
    left: 25%;
    font-size: calc(1vw + 14px);
}

.card-stat[data-position="bottom-center"] {
    top: 75%;
    left: 50%;
    font-size: calc(1vw + 14px);
}

.card-stat[data-position="bottom-right"] {
    top: 75%;
    left: 75%;
    font-size: calc(1vw + 14px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    width: 90%;
    height: 100%;
    padding: 15px;
}

.stat-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px 15px 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 200px;
}

.stat-title {
    color: #28a745;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 2px;
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.stat-subtitle {
    font-size: 0.8em;
    color: #666;
    width: 100%;
    margin-top: 2px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sub-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0px;
    margin-bottom: 6px;
    transition: background-color 0.3s;
    width: 100%;
    min-height: 28px;
    text-align: center;
    background-color: transparent;
}

.sub-stat:hover {
    background-color: transparent;
}

.sub-stat-name {
    color: #495057;
    font-weight: 500;
    font-size: 0.8em;
    flex: 1;
    text-align: left;
    margin-right: 40px;
}

.sub-stat-value {
    color: #28a745;
    font-weight: bold;
    font-size: 0.8em;
    text-align: right;
    min-width: 30px;
}

.sub-stats-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@keyframes popupAnimation {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}