/**
 * Team Exciting Widgets CSS
 *
 * @package Team_Exciting_Core
 * @since 1.0.0
 */

/* ==========================================================================
   Recent Posts Widget
   ========================================================================== */
.te-recent-posts-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.te-recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.te-recent-post-item:first-child {
    padding-top: 0;
}

.te-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.te-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.te-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.te-post-thumb:hover img {
    transform: scale(1.1);
}

.te-post-content {
    flex: 1;
    min-width: 0;
}

.te-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.te-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.te-post-title a:hover {
    color: #ff6b00;
}

.te-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.te-post-date i {
    font-size: 11px;
}

/* ==========================================================================
   Category Widget
   ========================================================================== */
.te-category-widget {
    padding: 0;
}

.te-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.te-category-item {
    margin-bottom: 10px;
}

.te-category-item:last-child {
    margin-bottom: 0;
}

.te-category-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.te-category-item a:hover,
.te-category-item.active a {
    background: #ff6b00;
    transform: translateX(5px);
}

.te-category-item i {
    margin-right: 10px;
    font-size: 12px;
    color: #ff6b00;
}

.te-category-item a:hover i,
.te-category-item.active a i {
    color: #fff;
}

.te-cat-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.te-cat-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 10px;
}

.te-category-item a:hover .te-cat-count,
.te-category-item.active a .te-cat-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Upcoming Matches Widget
   ========================================================================== */
.te-upcoming-matches-widget {
    padding: 0;
}

.te-matches-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.te-match-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.te-match-item:last-child {
    margin-bottom: 0;
}

.te-match-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.te-match-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.te-match-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.te-match-title a:hover {
    color: #ff6b00;
}

.te-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.te-match-game,
.te-match-status,
.te-match-players {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.te-match-game i,
.te-match-players i {
    color: #ff6b00;
}

.te-match-status {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.te-status-upcoming {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.te-status-registration_open {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.te-status-ongoing {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.te-widget-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.te-btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.te-btn-view-all:hover {
    background: #ff8533;
    transform: translateX(3px);
}

.te-btn-view-all i {
    font-size: 12px;
}

/* ==========================================================================
   Contact Info Widget
   ========================================================================== */
.te-contact-info-widget {
    padding: 0;
}

.te-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.te-contact-item:last-child {
    margin-bottom: 0;
}

.te-contact-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    color: #ff6b00;
    font-size: 16px;
}

.te-contact-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.te-contact-text p {
    margin: 0;
}

.te-contact-text a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.te-contact-text a:hover {
    color: #ff6b00;
}

/* ==========================================================================
   Widget General Styles
   ========================================================================== */
.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget .widget-title,
.widget .widgettitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b00;
    color: #fff;
    position: relative;
}

.widget .widget-title::after,
.widget .widgettitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .te-post-thumb {
        width: 60px;
        height: 60px;
    }

    .te-post-title {
        font-size: 13px;
    }

    .widget .widget-title,
    .widget .widgettitle {
        font-size: 18px;
    }
}
