﻿.main-content-wrapper {
    margin-bottom: 100px;
}

/* ========== Competition List Grid ========== */
.competition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /*margin-bottom: 40px;*/
    padding: 20px;
}

@media (max-width: 1200px) {
    .competition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .competition-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Competition Card ========== */
.competition-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.competition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.competition-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.competition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.competition-status-badge {
    position: absolute;
/*    top: 12px;
    left: 12px;*/
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background-color: #E3F2FD;
    z-index: 1;
    background: #fff !important;
}

.competition-status-badge.not-started {
    background-color: rgba(15, 168, 116, 0.10);
    color: #0FA874;
}

.competition-status-badge.ongoing {
    background-color: rgba(7, 145, 191, 0.10);
    color: #0791BF;
}

    .competition-status-badge.ended {
        color: #CF4655;
        background-color: rgba(207, 70, 85, 0.10);
    }

.competition-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.competition-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

.competition-title a {
    color: #333;
    text-decoration: none;
}

    .competition-title a:hover {
        color: var(--primary-red);
        
    }

.competition-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    box-sizing: content-box;
    padding-bottom: 10px;
    height: 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.competition-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.competition-date img {
    width: 14px;
    height: 14px;
}

.competition-view-link {
    display: inline-flex;
    align-items: center;
    color: #F8285A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.competition-view-link:hover {
    color: #D81B60;
    text-decoration: underline;
}

.competition-view-link i,
.competition-view-link svg {
    margin-left: 6px;
    font-size: 12px;
}

/* ========== Competition Header ========== */
.competition-header {
    display: flex;
    justify-content: space-between;
}

.header-filter {
    display: flex;
    column-gap: 16px;
    align-items: center;
    margin: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

/* ========== Competition Filter ========== */
.competition-filter-section {
    font-family: "Inter", sans-serif;
    width: 100%;
}

.competition-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.competition-filter-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

.competition-filter-input-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #fff;
}

.competition-filter-input-wrapper input:hover {
    border-color: #b10000;
}

.competition-filter-input-wrapper input:focus {
    border-color: #b10000;
    box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);
}

.competition-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.competition-filter-input-wrapper.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.competition-filter-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

.competition-filter-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.competition-filter-dropdown li:hover {
    background: #f2f2f2;
}

.competition-filter-dropdown li.selected {
    background: #b10000;
    color: white;
}

.competition-content {
    border: 1px solid #E4E4E4;
    border-top: 2px solid #B60002;
    border-radius: 4px;
}

.competition-time {
    font-size: 14px;
    line-height: 20px;
}

.interact {
    display: flex;
    justify-content: space-between;
}

.interact-like,
.interact-views {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 14px;
    line-height: 20px;
}

.interact-like img,
.interact-views img {
    width: 18px;
}

/* ========== Filter Styles ========== */
.see-more img {
    transform: unset;
}

input[type=checkbox] {
    opacity: 1;
    position: relative;
}

.custom-checkbox:checked::after {
    left: 5px;
    top: 2px;
}

/* ========== Empty State ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    background: #fff;
    border-radius: 8px;
    margin: 20px;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

.empty-state-icon svg {
    width: 120px;
    height: 120px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.empty-state-message {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media only screen and (max-width: 750.98px) {
    .competition-header {
        flex-direction: column;
    }
    
    .empty-state {
        padding: 60px 20px;
        min-height: 400px;
    }
    
    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-title {
        font-size: 20px;
    }
    
    .empty-state-message {
        font-size: 14px;
    }
}
