/* Takımlar Sayfası Stilleri */

/* Ana konteyner */
.teams-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Sayfa başlığı */
.teams-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.teams-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #9a0000;
}

/* Takımlar grid yapısı */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Takım kartı */
.team-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    animation-fill-mode: forwards;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.team-card:hover .team-logo img {
    transform: scale(1.05);
}

/* Takım logosu konteynerı */
.team-logo-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    padding-bottom: 70%;
    border-radius: 12px 12px 0 0;
}

/* Takım logosu */
.team-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Takım bilgisi */
.team-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.team-card:hover .team-name {
    color: #9a0000;
}

.team-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standart özellik */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    color: #777;
}

.founded-date {
    display: flex;
    align-items: center;
}

.founded-date i {
    margin-right: 5px;
    color: #9a0000;
}

.team-members {
    display: flex;
    align-items: center;
}

.team-members i {
    margin-right: 5px;
    color: #e65100;
}

/* Detaylar butonu */
.team-details {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(154, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .team-details {
    opacity: 1;
    transform: translateY(0);
}

.team-details i {
    margin-left: 5px;
}

/* Takım oluştur butonu */
.create-team {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.create-team .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #9a0000;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.create-team .btn:hover {
    background-color: #7c0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(154, 0, 0, 0.15);
}

.create-team .btn i {
    margin-right: 8px;
}

/* Düşme animasyonu */
@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    70% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-drop-in {
    animation: dropIn 0.6s ease forwards;
}

/* Responsive düzen */
@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .teams-title {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-info {
        padding: 15px;
    }
}

/* Boş durum mesajı */
.empty-teams {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-teams i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
