﻿.contest-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2156f5;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

    .contest-action:hover {
        color: #2156f5;
        text-decoration: none;
    }

    .contest-action i {
        font-size: 16px;
    }



.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;
    }

    .main-content-wrapper, .sidebar {
        padding: 0;
    }
}

/* ========== 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: 180px;
    overflow: hidden;
}

.competition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border-radius: 4px;*/
}

.competition-status-badge {
    position: absolute;
    /*    top: 12px;
    left: 12px;*/
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

    .competition-status-badge.not-started {
        background: #fffaf1;
        border: 1px solid #f2c46f;
        color: #f29a1a;
    }

    .competition-status-badge.ongoing {
        background-color: #E6F4FF;
        border: 1px solid #91CAFF;
        color: #1677FF;
    }

    .competition-status-badge.ended {
        background-color: #FFF1F0;
        border: 1px solid #FFA39E;
        color: #F5222D;
    }

.competition-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.competition-title a:hover {
    color: var(--blue-alias-brand);
}

.competition-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
}

    .competition-title a {
        color: #1f1f1f;
        text-decoration: none;
    }

.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-filter-text {
    white-space: nowrap;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.competition-count-summary {
    margin: 0 20px;
    color: #6c757d;
    font-size: 14px;
}

/* ========== 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: 150px;
        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: var(--color-primary);
        }

        .competition-filter-input-wrapper input:focus {
            border-color: var(--color-primary);
        }

.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: var(--color-primary);
            color: white;
        }

.competition-content {
    border: 1px solid #E4E4E4;
    border-top: 1px solid var(--blue-alias-brand);
    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);
    }
}

/* ========== Skeleton Loading ========== */
.skeleton-loading-card {
    pointer-events: none;
    user-select: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.skeleton-loading-item {
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

    .skeleton-loading-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
        animation: skeleton-shimmer 1.5s infinite;
    }

.skeleton-loading-image {
    width: 100%;
    height: 200px;
}

.skeleton-loading-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 100px;
    height: 24px;
    z-index: 1;
}

.skeleton-loading-title {
    width: 85%;
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-loading-title-line2 {
    width: 60%;
    height: 20px;
    margin-top: 4px;
}

.skeleton-loading-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-loading-text-short {
    width: 75%;
    margin-bottom: 12px;
}

.skeleton-loading-date {
    width: 60%;
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-loading-button {
    width: 100%;
    height: 40px;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========== 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;
    }
}
