@charset "utf-8";

/****************************************************************************************************************************************
이벤트 카테고리 탭
*****************************************************************************************************************************************/
.event-category-tabs {
    position: relative;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
}

.category-tab-list {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.category-tab-item {
    position: relative;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.category-tab-item > a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #b5aaaa;
    background: #0b0e18;
    border: 1px solid #45515d;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.category-tab-item.active > a,
.category-tab-item:hover > a {
    color: #16bdf9;
    background: #0d4a6b;
    border: 1px solid #16bdf9;
    box-shadow: 0 0 8px 5px rgba(22, 189, 249, 0.3);
}

/****************************************************************************************************************************************
이벤트 리스트 컨테이너
*****************************************************************************************************************************************/
.event-list-container {
    position: relative;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.event-grid {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    list-style: none;
}

/* 큰 화면 (1200px 이상): 4장씩 */
@media (min-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 중간 화면 (800px ~ 1199px): 2장씩 */
@media (min-width: 800px) and (max-width: 1199px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event-grid > li {
    list-style: none;
}

.event-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.event-item-inner {
    position: relative;
    width: 100%;
    min-height: 180px;
    border: 1px solid #a1a1a1;
    filter: brightness(0.6);
    transition: all 0.3s;
    overflow: hidden;
    background: #0b0e18;
}

.event-item-image {
    position: relative;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s;
}

.event-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(22, 189, 249, 0.9);
    border-radius: 3px;
    text-transform: uppercase;
}

.event-item-badge.ended {
    background: rgba(108, 117, 125, 0.9);
}

.event-item-badge.pending {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.event-item-badge > span {
    display: inline-block;
}

.event-item-title {
    position: relative;
    margin: 0;
    padding: 15px 15px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #d7d7d7;
    background: #050505;
    border: 1px solid rgba(161, 161, 161, 0.6);
    border-top: none;
    transition: all 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item-period {
    position: relative;
    margin: 0;
    padding: 8px 15px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    background: #0b0e18;
    border: 1px solid rgba(161, 161, 161, 0.3);
    border-top: none;
}

@media (hover: hover) and (pointer: fine) {
    .event-item:hover > .event-item-inner {
        border: 1px solid #16bdf9;
        filter: brightness(1);
    }
    
    .event-item:hover > .event-item-inner > .event-item-image {
        transform: scale(1.1);
    }
    
    .event-item:hover > .event-item-title {
        color: #fff;
        background: #0d4a6b;
        border: 1px solid #16bdf9;
        filter: brightness(1);
    }
}

/****************************************************************************************************************************************
이벤트 상세 페이지
*****************************************************************************************************************************************/
.event-detail-container {
    position: relative;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}

.event-status-badge {
    position: relative;
    margin: 0 0 20px 0;
    padding: 0;
}

.event-status-badge .badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
}

.event-title-image {
    position: relative;
    margin: 0 0 20px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.event-title-image > img {
    width: 100%;
    height: auto;
    display: block;
}

.event-title {
    position: relative;
    margin: 0 0 20px 0;
    padding: 0;
}

.event-title > h2 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.event-period {
    position: relative;
    margin: 0 0 20px 0;
    padding: 15px;
    background: #0b0e18;
    border: 1px solid #45515d;
    border-radius: 5px;
}

.event-period > p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #d7d7d7;
}

.event-period > p > strong {
    color: #16bdf9;
    margin-right: 10px;
}

.event-content-image {
    position: relative;
    margin: 0 0 30px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.event-content-image > img {
    width: 100%;
    height: auto;
    display: block;
}

.event-navigation {
    position: relative;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #45515d;
    border-bottom: 1px solid #45515d;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
}

.event-navigation > div {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0;
}

.event-navigation .btn {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid;
    white-space: nowrap;
    display: inline-block;
}

.event-navigation .btn-outline-primary {
    color: #16bdf9;
    border-color: #16bdf9;
    background: transparent;
}

.event-navigation .btn-outline-primary:hover {
    color: #fff;
    background: #16bdf9;
    box-shadow: 0 0 8px 5px rgba(22, 189, 249, 0.3);
}

.event-navigation .btn-outline-secondary {
    color: #b5aaaa;
    border-color: #45515d;
    background: transparent;
}

.event-navigation .btn-outline-secondary:hover:not(:disabled) {
    color: #fff;
    border-color: #16bdf9;
    background: #0d4a6b;
}

.event-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/****************************************************************************************************************************************
로딩 및 빈 상태
*****************************************************************************************************************************************/
#eventLoading,
#eventEmpty {
    position: relative;
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    color: #b5aaaa;
    font-size: 16px;
}

/****************************************************************************************************************************************
미디어쿼리
*****************************************************************************************************************************************/
@media (max-width: 800px) {
    .event-category-tabs {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .category-tab-list {
        gap: 5px;
    }
    
    .category-tab-item > a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .event-list-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .event-grid {
        gap: 10px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .event-item-inner {
        min-height: 150px;
    }
    
    .event-item-image {
        height: 150px;
    }
    
    .event-item-title {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .event-item-period {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .event-detail-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .event-title > h2 {
        font-size: 20px;
    }
    
    .event-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .event-navigation > div {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .event-navigation .btn {
        width: 100%;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 639px) {
    .event-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .event-item-inner {
        min-height: 140px;
    }
    
    .event-item-image {
        height: 140px;
    }
    
    .category-tab-item > a {
        padding: 6px 10px;
        font-size: 11px;
    }
}
