/* League Archive Page Styles - Teams Design Pattern */

.page-teams {
    padding: 2rem 0;
    max-width: calc(100% - 6.2rem);
    display: flex;
    margin: 0 auto;
    width: 100%;
    gap: 50px 10%;
    flex-wrap: wrap;
}

.page-teams .teams {
    display: flex;
    gap: 2rem;
    min-width: 45%;
    justify-content: space-between;
    aspect-ratio: 396 / 179;
    background: url(../../../../themes/aleagues/assets/images/background.png) no-repeat center;
    background-size: cover;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0px .4rem .4rem 0px #00000040;

}

.page-teams .teams::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffb0;
    border-radius: 0.5rem;
}

.page-teams .teams .teams-left,
.page-teams .teams .teams-right {
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-teams .teams .teams-left {
    padding: 1.8rem 0 1.3rem 1.1rem;
}

.page-teams .teams .teams-left__logo img {
    width: 4.3rem;
    height: 4.3rem;
    margin: 0 0 1.3rem 0;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}

.page-teams .teams .teams-left__title {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.page-teams .teams .teams-left__country {
    display: block;
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.page-teams .teams .teams-left__count {
    display: block;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Date styles */
.page-teams .teams .teams-left__dates {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-teams .teams .teams-left__date {
    display: flex;
    align-items: center;
    background-color: #3A3A44;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    width: fit-content;
}

.page-teams .teams .teams-left__date-label {
    margin-right: 0.5rem;
    min-width: 6.5rem;
    position: relative;
}

.page-teams .teams .teams-left__date-label::after {
    content: " |";
    margin-left: 0.3rem;
    color: #F15B2E;
    position: absolute;
    right: 0;
}

.page-teams .teams .teams-left__date-value {
    margin-left: 0.3rem;
}

.page-teams .teams-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-teams .teams .teams-right__icon {
    padding: 0 1.3rem;
    background-color: #3A3A44;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-teams .teams .teams-right__icon--custom {
    border-top: .1rem solid #F15B2E;
    border-bottom: .1rem solid #F15B2E;
}

.page-teams .teams .teams-right__icon:hover {
    background-color: #F15B2E;
}

.page-teams .teams .teams-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3.1rem;
    background: #f8f9fa;
    margin-bottom: 2rem;
}

.page-header__title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.page-header__title img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.page-header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.page-header .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    line-height: 1.6rem;
    display: flex;
    align-items: center;
}

.page-header .btn-primary {
    background-color: #3A3A44;
    color: white;
}

.page-header .btn-primary:hover {
    background-color: #d14524;
    transform: translateY(-1px);
}

.page-header .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.page-header .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.page-header .add {
    font-size: 1.2rem;
}

/* No Teams/Leagues State */
.page-teams .no-teams {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 2rem;
    width: 100%;
}

.page-teams .no-teams p {
    font-size: 1.6rem;
    margin: 0;
    color: #495057;
}

/* Delete Confirmation Modal Styles */
.delete-team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.delete-team-modal__content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.delete-team-modal__content h2 {
    color: #F15B2E;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.delete-team-modal__content p {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.delete-team-modal__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.delete-team-modal__buttons .btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.delete-team-modal__buttons .btn-danger {
    background-color: #F15B2E;
    color: #fff;
}

.delete-team-modal__buttons .btn:not(.btn-danger) {
    background-color: #3A3A44;
    color: #fff;
}

.delete-team-modal__buttons .btn:hover {
    opacity: 0.85;
}

/* Single League Specific Styles */
.single-league .page-teams {
    max-width: 100%;
    gap: 2.6rem;
}

.single-league .single-league__left {
    width: 100%;
    max-width: 37.4rem;
}

.single-league .page-teams .teams {
    box-shadow: .5rem .4rem .45rem 0 #00000040;
    width: 45%;
}

.single-league .single-league__right {
    flex: 1;
    max-width: calc(100% - 40.3rem);
}

/* Responsive Design */
@media screen and (max-width: 1000px) {
    .single-league .page-teams {
        flex-direction: column;
    }
    
    .single-league .single-league__left {
        max-width: 100%;
    }
    
    .single-league .single-league__right {
        max-width: 100%;
    }
    
    .page-header {
        padding: 1rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    .page-teams {
        flex-direction: column;
        gap: 2rem;
        max-width: calc(100% - 2rem);
        padding: 1rem 0;
    }
    
    .page-teams .teams {
        height: 15rem;
        width: 100%;
        min-width: auto;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .page-header__title {
        font-size: 2.2rem;
    }
    
    .page-teams .teams .teams-left__title {
        font-size: 1.4rem;
    }
    
    .page-teams .teams .teams-left__country,
    .page-teams .teams .teams-left__count {
        font-size: 1rem;
    }
    
    .page-teams .teams .teams-left__date {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
    
    .page-teams .teams .teams-left__dates {
        margin-top: 0.8rem;
        gap: 0.4rem;
    }
    
    .delete-team-modal__content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .delete-team-modal__content h2 {
        font-size: 1.4rem;
    }
    
    .delete-team-modal__content p,
    .delete-team-modal__buttons .btn {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .page-teams .teams .teams-left {
        padding: 1.5rem 0 1rem 0.8rem;
    }
    
    .page-teams .teams .teams-left__logo img {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .page-teams .teams .teams-left__title {
        font-size: 1.2rem;
    }
    
    .page-teams .teams .teams-left__country,
    .page-teams .teams .teams-left__count {
        font-size: 1rem;
    }
    
    .page-teams .teams .teams-right__icon {
        padding: 0 1rem;
    }
    
    .page-header__title {
        font-size: 1.8rem;
    }
    
    .page-teams .teams .teams-left__country,
    .page-teams .teams .teams-left__count {
        font-size: 1rem;
    }
    
    .page-teams .teams .teams-left__date {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
    
    .page-teams .teams .teams-left__dates {
        margin-top: 0.6rem;
        gap: 0.3rem;
    }
}

/* Teams - Trashed items specific styles */
.teams--trashed {
    opacity: 0.8;
    position: relative;
}

.teams--trashed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.5rem;
}

.teams--trashed .teams-left,
.teams--trashed .teams-right {
    position: relative;
    z-index: 2;
}

.teams-left__trash-date {
    font-size: 1.1rem;
    color: #dc3545;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

/* Teams Right - Button variants for trash actions */
.teams--trashed .teams-right__icon img {
    filter: brightness(0) invert(1);
}

.teams-right__icon--danger {
    background-color: #dc3545 !important;
}

.teams-right__icon--danger:hover {
    background-color: #c82333 !important;
    transform: translateY(-2px);
}

.restore-league {
    background-color: #28a745 !important;
}

.restore-league:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
}

/* Remove the filter for danger icons */
.teams-right__icon--danger img {
    filter: brightness(0) invert(1);
}

.restore-league img {
    filter: brightness(0) invert(1);
}

/* Trash info banner */
.trash-info {
    margin-bottom: 2rem;
}

.trash-info p {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.single-league {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
}
/* League Detail Page Styles */
.league-detail-content {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0px .4rem .4rem 0px #00000040;
}

.league-detail-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #F15B2E;
    padding-bottom: 0.5rem;
}

.league-detail-info {
    margin-bottom: 2rem;
}

.league-detail-info .info-item {
    display: flex;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
}

.league-detail-info .info-item:last-child {
    border-bottom: none;
}

.league-detail-info .info-item strong {
    min-width: 12rem;
    color: #3A3A44;
    font-weight: 600;
}

.league-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.league-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #F15B2E;
}

.league-section h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: #6c757d;
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
}

.league-not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 3.1rem;
}

.league-not-found p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #495057;
}

/* League Detail Responsive */
@media screen and (max-width: 768px) {
    .league-detail-content {
        padding: 1.5rem;
    }
    
    .league-detail-content h2 {
        font-size: 1.6rem;
    }
    
    .league-detail-info .info-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .league-detail-info .info-item strong {
        min-width: auto;
    }
    
    .league-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .league-section {
        padding: 1rem;
    }
    
    .league-not-found {
        margin: 1rem;
        padding: 2rem 1rem;
    }
} 