/**
 * Udong Special (우동특가) Styles
 * 파일 경로: assets/css/udong-special.css
 */

/* 우동특가 카드 전체 스타일 */
.udong-special-card {
    border: 1px solid #ffe8cc !important;
    background-color: #fffaf0 !important;
    /* Soft Yellow/Beige */
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.udong-special-card:hover {
    box-shadow: 0 8px 24px rgba(255, 111, 15, 0.15) !important;
    transform: translateY(-4px);
}

/* 우동특가 뱃지 (썸네일 우측 상단) */
.udong-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6f0f, #ff922b);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
    animation: pulse-small 2s infinite;
}

/* 할인율 뱃지 (썸네일 좌측 상단) */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e03131;
    /* Red */
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

/* 우동특가 카테고리 아이콘 강조 (탭 바) */
.category-tab[data-category="udong-special"],
.layer-item[data-category="udong-special"] {
    background-color: #fff4e6 !important;
    color: #000000 !important;
    border: 1px solid #fa5252 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    transform: none !important;
    /* 위로 오르지 않게 고정 */
}

/* 호버 및 클릭 시: 이동 방지 및 색상 고정 (PC와 동일하게) */
.category-tab[data-category="udong-special"]:hover, 
.category-tab[data-category="udong-special"]:active,
.layer-item[data-category="udong-special"]:hover,
.layer-item[data-category="udong-special"]:active {
    background-color: #fff4e6 !important;
    color: #ff6f0f !important;
    transform: none !important;
}

/* 활성화 상태: 진한 주황 배경 + 흰색 글씨 */
.category-tab[data-category="udong-special"].active,
.layer-item[data-category="udong-special"].active {
    background-color: #ff6f0f !important;
    color: #ffffff !important;
    border-color: #ff6f0f !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(255, 111, 15, 0.2) !important;
}

/* 활성화 상태에서 마우스를 올렸을 때: 흰색 글씨 유지 및 배경 살짝 강조 */
.category-tab[data-category="udong-special"].active:hover,
.layer-item[data-category="udong-special"].active:hover {
    background-color: #e55a00 !important;
    color: #ffffff !important;
}

/* 외부 링크 아이콘 */
.external-link-icon {
    font-size: 12px;
    color: #ff6f0f;
    margin-left: 5px;
}

@keyframes pulse-small {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 모바일 리스트 뷰 대응 */
@media (max-width: 767px) {
    .product-card.udong-special-card {
        background-color: #fffaf0 !important;
        border-color: #ffdeeb;
        /* 미세한 다른 톤 */
    }

    .udong-badge {
        top: 4px;
        right: 4px;
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 유저 전용 특별 혜택 스타일 */
.udong-benefit-row {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff9db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #fff3bf;
}

.benefit-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 12px;
    color: #f08c00;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}