@charset "utf-8";
/* ================================================================
    광고 위젯 타입별 최종 커스텀 스타일 (완전 분리) widget.css
================================================================ */
.premium-home-section {
    margin-top: 11px;
    clear: both;
}

.signboard-home-section {
    margin-top: -9px;
    clear: both;
}

.threecolor-home-section {
    margin-top: -9px;
    clear: both;
}

.oneline-home-section {
    margin-top: -9px;
    clear: both;
}

.free-home-section {
    margin-top: 30px;
    clear: both;
}

/* --- 공통 애니메이션 정의 --- */
@keyframes na-pulsate-glow {
    
 0% {
        border-color: rgba(60, 60, 60, 0.8);
        box-shadow: 0 0 8px rgba(30, 30, 30, 0.5);
    }

    
 50% {
        border-color: rgba(120, 120, 120, 1);
        box-shadow: 0 0 18px rgba(60, 60, 60, 0.7);
    }

    
 100% {
        border-color: rgba(60, 60, 60, 0.8);
        box-shadow: 0 0 8px rgba(30, 30, 30, 0.5);
    }
}

/* ================================================================
    1. 프리미엄 광고 위젯 (마사지힐링 브랜드 완전 개선)
================================================================ */
.premium-gallery-widget .na-glowing-item {
    width: 20% !important;
    position: relative;
    filter: none !important;
    padding: 0 8px;
    margin-bottom: 16px;
}

.premium-gallery-widget .glowing-card {
    position: relative;
    border: solid 1px #af8aaf94;
    border-radius: 0px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    animation: none;
    will-change: transform, box-shadow;
    box-shadow: 0 3px 3px rgba(91, 77, 184, 0.35), 
                0 4px 12px rgba(233, 30, 99, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.premium-gallery-widget .glowing-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 45px rgba(91, 77, 184, 0.5), 
                0 8px 25px rgba(233, 30, 99, 0.4),
                0 0 30px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-gallery-widget .card-content {
    position: relative;
    z-index: 3;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F9F7FF 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #1f2937;
    border: none;
    border-radius: 12px;
}

.premium-gallery-widget .card-image-wrap {
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #f3f4f6;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(91, 77, 184, 0.2), 
                inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.premium-gallery-widget .card-image-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.6s ease;
}

.premium-gallery-widget .glowing-card:hover .card-image-wrap img {
    transform: scale(1.08);
}

.premium-gallery-widget .card-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6B5B95 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
    flex-grow: 1;
    text-shadow: none;
    min-height: 45px;
    text-align: center;
    padding: 8px 12px 4px;
    border-image: none;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, transparent, rgba(233, 30, 99, 0.6), transparent) 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-gallery-widget .card-title a {
    color: #6B5B95;
    text-decoration: none;
    background: linear-gradient(135deg, #6B5B95 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-gallery-widget .card-title a:hover {
    color: #E91E63;
}

.premium-gallery-widget .ad-info-box {
    font-size: 13px;
    color: #6B5B95;
    margin-top: auto;
    text-align: center;
    padding-bottom: 8px;
    padding-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-top: 1px solid rgba(233, 30, 99, 0.2);
}

.premium-gallery-widget .ad-info-box span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.premium-gallery-widget .ad-info-box i {
    color: #E91E63;
    font-size: 14px;
}

.premium-gallery-widget .ad-info-box .px-1 {
    padding-left: 0;
    padding-right: 0;
    color: #6B5B95;
}

.premium-gallery-widget .recommend-badge {
    position: absolute;
    top: -19px;
    left: -4px;
    transform: none;
    z-index: 15;
    background: linear-gradient(135deg, #6B5B95 0%, #E91E63 100%);
    color: #ffffff;
    padding: 2px 4px;
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: premium-glow 2s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: none;
    white-space: nowrap;
    border: 1px solid rgb(122 0 251 / 34%);
}

@keyframes premium-glow {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
        transform: scale(1.1);
    }
}


.premium-gallery-widget .badge-container {
    position: absolute;
    top: -19px;
    right: -3px;
    z-index: 14;
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.premium-gallery-widget .status-badge {
    position: static !important;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.premium-gallery-widget .status-badge.badge-urgent { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
}

.premium-gallery-widget .status-badge.badge-recommend { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
}

.premium-gallery-widget .status-badge.badge-open { 
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); 
}

.premium-gallery-widget .status-badge.badge-guarantee { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
}

/* ================================================================
    2. 간판 광고 위젯
================================================================ */
.signboard-gallery-widget .na-glowing-item {
    width: 25% !important;
    position: relative;
    filter: none !important;
}

.signboard-gallery-widget .glowing-card {
    position: relative;
    border-radius: 5px;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.signboard-gallery-widget .glowing-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 45px rgba(91, 77, 184, 0.5), 
                0 8px 25px rgba(233, 30, 99, 0.4),
                0 0 30px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.signboard-gallery-widget .card-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    border: solid 1px #af8aaf94;
}

.signboard-gallery-widget .card-image-wrap {
    position: relative;
    width: 100%;
    background-color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    padding-bottom: 65px;
}

.signboard-gallery-widget .card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.signboard-gallery-widget .glowing-card:hover .card-image-wrap img {
    transform: scale(1.0);
}

.signboard-gallery-widget .ad-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    line-height: 4px;
    margin: 0 0 10px;
    flex-grow: 1;
    min-height: 0px;
    text-align: center;
}

.signboard-gallery-widget .ad-info-box i {
    color: #E91E63;
    font-size: 14px;
}

.signboard-gallery-widget .ad-title a {
    color: #6B5B95;
    text-decoration: none;
    background: linear-gradient(135deg, #6B5B95 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signboard-gallery-widget .ad-title a:hover {
    color: #333;
}

.signboard-gallery-widget .ad-info-box {
    font-size: 13px;
    color: #6B5B95;
    margin-top: auto;
    padding-top: 0px;
    text-align: center;
    font-weight: 500;
}

.signboard-gallery-widget .glowing-card:hover .ad-info-box {
    color: #333;
}

.signboard-gallery-widget .premium-badge-image {
    display: none;
}

/* [ ★★★ 수정: 간판 뱃지 ★★★ ] */
.signboard-gallery-widget .badge-container {
    position: absolute;
    top: -17px;
    right: 0px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    gap: 3px;
}

.signboard-gallery-widget .status-badge {
    position: static !important;
    padding: 1px 3px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.signboard-gallery-widget .status-badge.badge-urgent { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
}

.signboard-gallery-widget .status-badge.badge-recommend { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
}

.signboard-gallery-widget .status-badge.badge-open { 
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); 
}

.signboard-gallery-widget .status-badge.badge-guarantee { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
}

/* ================================================================
    3. 삼색 광고 위젯
================================================================ */
.threecolor-gallery-widget .na-glowing-item {
    width: 25% !important;
    position: relative;
    filter: none !important;
}

.threecolor-gallery-widget .glowing-card {
    position: relative;
    border-radius: 5px;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.threecolor-gallery-widget .glowing-card:hover {
}

.threecolor-gallery-widget .card-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    border: solid 1px #d5d5d5;
}

.threecolor-gallery-widget .card-image-wrap {
    position: relative;
    width: 100%;
    background-color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    padding-bottom: 45px;
}

.threecolor-gallery-widget .card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.threecolor-gallery-widget .glowing-card:hover .card-image-wrap img {
    transform: scale(1.0);
}

.threecolor-gallery-widget .ad-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    line-height: 5px;
    margin: 0 0 8px;
    flex-grow: 1;
    min-height: 0px;
    text-align: center;
}

.threecolor-gallery-widget .ad-title a {
    color: #333;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(100, 100, 100, 0.8), transparent) 1;
}

.threecolor-gallery-widget .ad-title a:hover {
    color: #333;
}

.threecolor-gallery-widget .ad-info-box {
    font-size: 13px;
    color: #3b3b3bd6;
    margin-top: auto;
    padding-top: 0px;
    text-align: center;
    font-weight: 500;
}

.threecolor-gallery-widget .glowing-card:hover .ad-info-box {
    color: #333;
}

.threecolor-gallery-widget .premium-badge-image {
    display: none;
}

/* [ ★★★ 수정: 삼색 뱃지 ★★★ ] */
.threecolor-gallery-widget .badge-container {
    position: absolute;
    top: -17px;
    right: 5px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    gap: 3px;
}

.threecolor-gallery-widget .status-badge {
    position: static !important;
    padding: 1px 3px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.threecolor-gallery-widget .status-badge.badge-urgent {
    background: #ef4444de;
}

.threecolor-gallery-widget .status-badge.badge-recommend {
    background: #f39c12de;
}

.threecolor-gallery-widget .status-badge.badge-open {
    background: #22c55e;
}

.threecolor-gallery-widget .status-badge.badge-guarantee {
    background: #3b82f6;
}

/* ================================================================
    4. 한줄 광고 위젯
================================================================ */
.oneline-gallery-widget .na-glowing-item {
    width: 25% !important;
    position: relative;
    filter: none !important;
}

.oneline-gallery-widget .glowing-card {
    position: relative;
    border-radius: 5px;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.oneline-gallery-widget .glowing-card:hover {
}

.oneline-gallery-widget .card-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    border: solid 1px #d5d5d5;
    background-color: #e7e7e7;
}

.oneline-gallery-widget .card-image-wrap {
    position: relative;
    width: 100%;
    background-color: #333;
    margin-bottom: 10px;
    overflow: hidden;
}

.oneline-gallery-widget .card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.oneline-gallery-widget .glowing-card:hover .card-image-wrap img {
    transform: scale(1.0);
}

.oneline-gallery-widget .ad-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    line-height: 5px;
    margin: 0 0 0px;
    flex-grow: 1;
    min-height: 0px;
    text-align: center;
    padding-bottom: 4px;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(100, 100, 100, 0.8), transparent) 1;
}

.oneline-gallery-widget .ad-title a {
    color: #333;
    text-decoration: none;
}

.oneline-gallery-widget .ad-title a:hover {
    color: #333;
}

.oneline-gallery-widget .ad-info-box {
    font-size: 13px;
    color: #3b3b3bd6;
    margin-top: auto;
    padding-top: 0px;
    text-align: center;
    font-weight: 500;
}

.oneline-gallery-widget .glowing-card:hover .ad-info-box {
    color: #333;
}

.oneline-gallery-widget .premium-badge-image {
    display: none;
}

.oneline-gallery-widget .badge-container {
    position: absolute;
    top: -17px;
    right: 5px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    gap: 3px;
}

.oneline-gallery-widget .status-badge {
    position: static !important;
    padding: 1px 3px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.oneline-gallery-widget .status-badge.badge-urgent {
    background: #ef4444de;
}

.oneline-gallery-widget .status-badge.badge-recommend {
    background: #f39c12de;
}

.oneline-gallery-widget .status-badge.badge-open {
    background: #22c55e;
}

.oneline-gallery-widget .status-badge.badge-guarantee {
    background: #3b82f6;
}

/* ================================================================
    5. 무료 광고 위젯 (뱃지 없음)
================================================================ */
.free-gallery-widget .na-glowing-item {
    width: 25% !important;
    position: relative;
    filter: none !important;
}

.free-gallery-widget .glowing-card {
    position: relative;
    background: #1a212d;
    border: 2px solid rgba(60, 60, 60, 0.8);
    border-radius: 5px;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.free-gallery-widget .glowing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(180, 180, 180, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.free-gallery-widget .card-content {
    position: relative;
    padding: 15px;
    z-index: 2;
    color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border: 1px solid #000;
}

.free-gallery-widget .card-image-wrap {
    position: relative;
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    padding-bottom: 56.25%;
}

.free-gallery-widget .card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.free-gallery-widget .glowing-card:hover .card-image-wrap img {
    transform: scale(1.0);
}

.free-gallery-widget .ad-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E0E0E0;
    line-height: 1.4;
    margin: 0 0 10px;
    flex-grow: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    min-height: 43px;
}

.free-gallery-widget .ad-title a {
    color: inherit;
    text-decoration: none;
}

.free-gallery-widget .ad-title a:hover {
    color: #ffffff;
}

.free-gallery-widget .ad-info-box {
    font-size: 14px;
    color: #aaa;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(100,100,100,0.3);
}

.free-gallery-widget .glowing-card:hover .ad-info-box {
    color: #ccc;
}

.free-gallery-widget .premium-badge-image {
    display: none;
}

.free-gallery-widget .status-badge {
    display: none;
}

/* 무료 광고는 뱃지 숨김 */
/* ================================================================
    게시글 제목 꾸미기 옵션 스타일
================================================================ */
.opt-bold {
    font-weight: 800 !important;
}

.opt-underline {
    text-decoration: underline !important;
}

.opt-italic {
    font-style: italic !important;
}

.fg-hotpink {
    color: #FF69B4 !important;
}

.fg-blue {
    color: #3498DB !important;
}

.fg-spring {
    color: #2ECC71 !important;
}

.fg-yellow {
    color: #F1C40F !important;
}

.fg-white {
    color: #FFFFFF !important;
}

.bg-yellow, .bg-hotpink, .bg-teal {
    padding: 6px 3px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff !important;
    display: inline-block;
}

.bg-yellow {
    background-color: #F1C40F;
}

.bg-hotpink {
    background-color: #FF69B4;
}

.bg-teal {
    background-color: #1abc9c;
}
