/* user_styles.css */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f6fa;
}

header {
    background-color: #34495e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header img {
    height: 80px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-title h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.dashboard-title p {
    font-size: 16px;
    color: #7f8c8d;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tournament-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.tournament-image {
    width: 100%;
    height: 200px; /* sabit bir yÃ¼kseklik verdik */
    object-fit: cover; /* taÅŸmayÄ± Ã¶nler, kutuya tam sÄ±ÄŸdÄ±rÄ±r */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
}

.tournament-card h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #2c3e50;
}

.tournament-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.tournament-card a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.tournament-card a:hover {
    background-color: #0056b3;
}

/* Åžampiyon ve dereceler kutusu */
.tournament-winners {
    background-color: #ecf0f1;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
}

.tournament-winners div {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.tournament-winners i {
    margin-right: 8px;
}

/* Turnuva kutusu eðer 1 adet varsa sabitle */
.tournament-grid.single .tournament-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Turnuva Detayýný Gör butonu - küçük kutularda daha küçük görünmesi için */
.tournament-grid.single .tournament-card a {
    padding: 6px 16px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* Mobil uyum */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
    .user-info {
        flex-direction: column;
    }
    .dashboard {
        padding: 10px;
    }
    .header img {
        height: auto;
        width: 150px;
        max-width: 100%;
    }
}

