/* 추가 기능 스타일 - 출석체크, 랭킹, 추천인 */

/* 출석체크 위젯 */
.attendance-widget .widget-body {
    padding: 15px;
    text-align: center;
}

.attendance-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #28a745;
}

.attendance-done i {
    font-size: 32px;
}

.attendance-done span {
    font-weight: 600;
}

.attendance-done small {
    color: var(--text-muted);
}

.btn-attendance {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
}

.btn-attendance:hover {
    background: linear-gradient(135deg, #e573eb 0%, #e5475c 100%);
    color: white;
}

/* 미니 랭킹 리스트 */
.mini-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.mini-ranking-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mini-ranking-list li:last-child {
    border-bottom: none;
}

.mini-ranking-list .rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.mini-ranking-list li.top1 .rank { background: #ffd700; }
.mini-ranking-list li.top2 .rank { background: #c0c0c0; }
.mini-ranking-list li.top3 .rank { background: #cd7f32; color: #fff; }

.mini-ranking-list .nickname {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-ranking-list .score {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* 메인 페이지 추가 섹션 */
.community-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.highlight-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.highlight-card .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-card .card-header h3 {
    font-size: 15px;
    margin: 0;
}

.highlight-card .card-body {
    padding: 15px 20px;
}

/* 오늘의 인기글 스타일 */
.today-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.today-popular-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.today-popular-list li:last-child {
    border-bottom: none;
}

.today-popular-list .rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    background: #e9ecef;
}

.today-popular-list li:nth-child(1) .rank-badge { background: #ffd700; }
.today-popular-list li:nth-child(2) .rank-badge { background: #c0c0c0; }
.today-popular-list li:nth-child(3) .rank-badge { background: #cd7f32; color: white; }

.today-popular-list .post-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.today-popular-list .post-title {
    color: var(--text-dark);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.today-popular-list .post-title:hover {
    color: var(--primary-color);
}

.today-popular-list .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* 활동 랭킹 미리보기 */
.activity-preview {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 20px 0;
}

.activity-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activity-rank .medal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.activity-rank.gold .medal { background: linear-gradient(135deg, #ffd700, #ffb300); }
.activity-rank.silver .medal { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.activity-rank.bronze .medal { background: linear-gradient(135deg, #cd7f32, #b8690f); color: white; }

.activity-rank .name {
    font-size: 13px;
    font-weight: 500;
}

.activity-rank .score {
    font-size: 11px;
    color: var(--text-muted);
}

/* 퀵 액션 박스 */
.quick-action-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.quick-action:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.quick-action i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.quick-action span {
    font-size: 12px;
    font-weight: 500;
}

/* 풀 와이드 콘텐츠 섹션 */
.full-content-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin: 30px -15px;
}

.full-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* 반응형 */
@media (max-width: 1024px) {
    .community-highlights {
        grid-template-columns: 1fr;
    }

    .quick-action-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .activity-preview {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   메인 레이아웃 개선 - 네이버 스타일
   ============================================ */

/* 컨테이너 확장 */
body .container {
    max-width: 1400px;
}

/* 메인 콘텐츠 영역 확장 */
.main-layout {
    gap: 25px;
}

.main-layout .main-content {
    flex: 1;
    min-width: 0;
}

/* 카테고리 그리드 개선 */
.category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* 실시간 섹션 그리드 */
.realtime-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 퀵 링크 그리드 확장 */
.quick-links-grid {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* 공지/인기글 탭 섹션 개선 */
.combined-section {
    margin-bottom: 25px;
}

.combined-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combined-body {
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

/* 탭 패널 슬라이드 애니메이션 */
.combined-body .tab-panel {
    display: none;
    animation: tabSlideIn 0.4s ease;
}

.combined-body .tab-panel.active {
    display: block;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 탭 자동재생 컨트롤 */
.tab-auto-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.tab-autoplay-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tab-autoplay-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tab-autoplay-btn.playing {
    background: var(--primary-color);
    color: white;
}

.tab-autoplay-btn.playing:hover {
    background: var(--primary-dark);
}

/* 탭 버튼 활성화 애니메이션 */
.combined-section .tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.combined-section .tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.combined-section .tab-btn.active::after {
    width: 100%;
}

/* 탭 진행 표시 바 */
.tab-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    animation: progressBar 4s linear infinite;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

/* 하이라이트 카드 높이 통일 */
.highlight-card {
    min-height: 280px;
}

.highlight-card .card-body {
    min-height: 200px;
}

/* 새 회원 환영 섹션 */
.new-members-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.new-members-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.new-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.new-member-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* 사이드바 위젯 개선 */
.sidebar .widget {
    margin-bottom: 20px;
}

.sidebar .widget-header {
    padding: 12px 15px;
    font-size: 14px;
}

/* 실시간 현황 바 개선 */
.live-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px 25px !important;
}

.live-status-bar .status-item {
    flex: 1;
    min-width: 100px;
}

/* 랭킹 페이지 개선 */
.ranking-page .ranking-tabs {
    flex-wrap: wrap;
}

/* 출석체크 페이지 개선 */
.attendance-page .attendance-card {
    max-width: 800px;
    margin: 0 auto;
}

/* 추가 반응형 */
@media (max-width: 1200px) {
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .community-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr !important;
    }

    .community-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .live-status-bar {
        flex-wrap: wrap;
    }

    .live-status-bar .status-divider {
        display: none;
    }

    .live-status-bar .status-item {
        min-width: 45%;
    }
}

/* 슬라이더 높이 조정 */
.hero-slider {
    margin-bottom: 25px;
}

/* 배너 영역 개선 */
.content-banner {
    margin: 25px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 더보기 링크 스타일 */
.more-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 빈 상태 스타일 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
}


/* 로고 이미지 스타일 */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.mobile-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 광고 플레이스홀더 스타일 */
.ad-placeholder .placeholder-content {
    padding: 30px 15px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border: 2px dashed #d0d7de;
    border-radius: var(--radius-lg);
}

.ad-placeholder .placeholder-content i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 10px;
    display: block;
}

.ad-placeholder .placeholder-content span {
    display: block;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.ad-placeholder .placeholder-content small {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.ad-placeholder .placeholder-content .btn {
    font-size: 12px;
    padding: 6px 16px;
}

/* 사이드바 배너 이미지 */
.sidebar-banner img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: opacity 0.2s;
}

.sidebar-banner img:hover {
    opacity: 0.9;
}


/* ============================================
   3단 레이아웃 (왼쪽 광고 + 메인 + 오른쪽 사이드바)
   ============================================ */

/* 왼쪽 사이드바 */
.left-sidebar {
    position: fixed;
    left: calc((100vw - 1400px) / 2 - 180px);
    top: 200px;
    width: 160px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.left-ad-banner {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.left-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.left-ad-banner.placeholder {
    border: 2px dashed #e5e7eb;
    background: #fafafa;
}

/* 샘플 광고 배너 스타일 */
.left-ad-banner.sample-ad {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.left-ad-banner.sample-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.left-ad-banner.sample-ad img {
    width: 160px;
    height: auto;
    max-height: 600px;
}

.sample-ad-link {
    display: block;
}

.ad-placeholder-box {
    padding: 30px 15px;
    text-align: center;
    color: #9ca3af;
}

.ad-placeholder-box i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.ad-placeholder-box span {
    display: block;
    font-weight: 500;
    font-size: 13px;
}

.ad-placeholder-box small {
    display: block;
    font-size: 11px;
    margin-top: 5px;
}

/* 제휴 박스 */
.sponsor-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    border-radius: var(--radius-md);
    text-align: center;
}

.sponsor-box h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.sponsor-box p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sponsor-box .btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 11px;
    padding: 6px 14px;
}

.sponsor-box .btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 3단 레이아웃일 때 메인 콘텐츠 */
.main-layout.three-column {
    margin-left: 0;
}

/* 반응형: 화면이 좁으면 왼쪽 사이드바 숨김 */
@media (max-width: 1600px) {
    .left-sidebar {
        left: 10px;
    }
}

@media (max-width: 1400px) {
    .left-sidebar {
        display: none;
    }
}

/* 메인 콘텐츠 영역 넓게 */
@media (min-width: 1600px) {
    body .container {
        max-width: 1400px;
    }
}

/* ============================================
   부스트 게시글 스타일
   ============================================ */

/* 부스트 행 스타일 */
.boost-row {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-left: 3px solid #f59e0b !important;
}

.boost-row:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

/* 부스트 배지 */
.badge-boost {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: boostPulse 2s ease-in-out infinite;
}

.badge-boost i {
    font-size: 10px;
}

@keyframes boostPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* 게시글 상세에서 부스트 표시 */
.post-boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.post-boost-badge i {
    font-size: 11px;
}

/* 부스트 버튼 */
.btn-boost {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-boost:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.btn-boost:active {
    transform: translateY(0);
}

/* 비로그인 부스트 버튼 */
.btn-boost-login {
    opacity: 0.9;
}

/* 부스트 상태 표시 */
.boost-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #fcd34d;
}

.boost-status i {
    color: #f59e0b;
    animation: boltPulse 1.5s ease-in-out infinite;
}

.boost-status small {
    font-weight: 400;
    opacity: 0.8;
}

@keyframes boltPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 광고 탭 버튼 스타일 */
.tab-btn.tab-boost {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius) var(--radius) 0 0;
    color: #92400e;
    font-weight: 600;
}

.tab-btn.tab-boost:hover,
.tab-btn.tab-boost.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tab-btn.tab-boost i {
    color: #f59e0b;
}

.tab-btn.tab-boost:hover i,
.tab-btn.tab-boost.active i {
    color: white;
}

/* 부스트 리스트 아이템 */
.boost-list .boost-item {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 3px solid #f59e0b;
    margin-bottom: 2px;
    border-radius: 4px;
}

.boost-list .boost-item:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.boost-list .boost-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

/* 부스트 빈 상태 */
.boost-list .no-data {
    padding: 40px 20px;
    text-align: center;
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: var(--radius);
}

.boost-list .no-data i {
    font-size: 32px;
    color: #f59e0b;
    margin-bottom: 10px;
    display: block;
}

.boost-list .no-data small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #b45309;
}

.boost-list .no-data a {
    color: #d97706;
    font-weight: 600;
}

/* ============================================
   프리미엄 광고 슬라이드 섹션
   ============================================ */

.boost-showcase-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
}

.boost-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.boost-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.boost-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boost-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6); }
}

.boost-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.boost-count {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.boost-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boost-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boost-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.boost-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.boost-page-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.boost-showcase-container {
    position: relative;
    z-index: 1;
}

.boost-slider {
    position: relative;
}

.boost-page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.boost-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.boost-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    justify-content: center !important;
}

.boost-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    min-height: 140px !important;
    width: 220px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

.boost-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.boost-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3), 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: #f59e0b !important;
}

.boost-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.boost-showcase-section .boost-badge,
.boost-card .boost-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.boost-board {
    font-size: 11px !important;
    color: #6b7280 !important;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    writing-mode: horizontal-tb !important;
}

.boost-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #1f2937 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 45px !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
}

.boost-card-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
    flex-wrap: nowrap !important;
    writing-mode: horizontal-tb !important;
}

.boost-author {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
}

.boost-author i {
    color: #9ca3af !important;
}

.boost-stats {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #9ca3af !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
}

.boost-stats i {
    margin-right: 3px !important;
    color: #d1d5db !important;
}

.boost-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.boost-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.boost-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.boost-dot.active {
    background: #f59e0b;
    width: 30px;
    border-radius: 5px;
}

/* 빈 상태 */
.boost-empty {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.boost-empty-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.boost-empty h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

.boost-empty p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.boost-benefits {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.benefit-item i {
    color: #10b981;
}

/* 반응형 - 프리미엄 광고 */
@media (max-width: 768px) {
    .boost-showcase-section {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .boost-showcase-header {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .boost-title {
        flex-direction: column !important;
        text-align: center !important;
    }

    .boost-title h2 {
        font-size: 20px !important;
    }

    .boost-grid {
        gap: 12px !important;
    }

    .boost-card {
        width: 180px !important;
        padding: 16px !important;
        min-height: 120px !important;
    }

    .boost-card-title {
        font-size: 14px !important;
        min-height: 40px !important;
    }

    .boost-benefits {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .boost-card {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* ============================================
   부스트 구매 페이지 (boost.php) 스타일
   ============================================ */
.boost-purchase-page {
    max-width: 600px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    display: block !important;
    visibility: visible !important;
}

.boost-purchase-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
}

.boost-purchase-card .boost-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 30px !important;
    text-align: center !important;
    display: block !important;
}

.boost-purchase-card .boost-header h1 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
    color: white !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .boost-header p {
    opacity: 0.9;
    margin: 0;
    color: white !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .boost-post-info {
    padding: 20px 30px !important;
    border-bottom: 1px solid #e5e7eb !important;
    display: block !important;
}

.boost-purchase-card .boost-post-info .board-badge {
    background: #e8f4fd !important;
    color: #4f46e5 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.boost-purchase-card .boost-post-info h3 {
    margin: 12px 0 8px !important;
    font-size: 16px !important;
    color: #1f2937 !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .boost-post-info .post-meta {
    font-size: 13px !important;
    color: #6b7280 !important;
}

.boost-purchase-card .boost-post-info .post-meta span {
    margin-right: 15px !important;
}

.boost-purchase-card .my-points {
    display: flex !important;
    align-items: center !important;
    padding: 15px 30px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.boost-purchase-card .my-points .label {
    color: #6b7280 !important;
    margin-right: 10px !important;
}

.boost-purchase-card .my-points .value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    flex: 1 !important;
}

.boost-purchase-card .boost-form {
    padding: 30px !important;
    display: block !important;
}

.boost-purchase-card .boost-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

.boost-purchase-card .boost-option {
    position: relative !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #fff !important;
    display: block !important;
    width: 100% !important;
}

.boost-purchase-card .boost-option:hover:not(.disabled) {
    border-color: #4f46e5 !important;
}

.boost-purchase-card .boost-option.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.boost-purchase-card .boost-option input {
    position: absolute !important;
    opacity: 0 !important;
}

.boost-purchase-card .boost-option input:checked + .option-content {
    color: #4f46e5 !important;
}

.boost-purchase-card .boost-option:has(input:checked) {
    border-color: #4f46e5 !important;
    background: #f0f4ff !important;
}

.boost-purchase-card .boost-option.popular {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

.boost-purchase-card .popular-badge {
    position: absolute !important;
    top: -10px !important;
    left: 20px !important;
    background: #f59e0b !important;
    color: white !important;
    padding: 2px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.boost-purchase-card .option-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.boost-purchase-card .option-header .duration {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .option-header .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .option-content p {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 0 !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .option-content .discount {
    display: inline-block !important;
    margin-top: 8px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.boost-purchase-card .boost-notice {
    background: #f0f9ff !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-bottom: 25px !important;
    font-size: 13px !important;
    color: #0369a1 !important;
}

.boost-purchase-card .boost-notice i {
    margin-right: 8px !important;
}

.boost-purchase-card .boost-notice ul {
    margin: 10px 0 0 20px !important;
    padding: 0 !important;
}

.boost-purchase-card .boost-notice li {
    margin-bottom: 5px !important;
    writing-mode: horizontal-tb !important;
}

.boost-purchase-card .boost-badge-sm {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.boost-purchase-card .boost-actions {
    display: flex !important;
    gap: 15px !important;
}

.boost-purchase-card .boost-actions .btn {
    flex: 1 !important;
}

.boost-purchase-card .boost-active {
    padding: 40px 30px !important;
    text-align: center !important;
    display: block !important;
}

.boost-purchase-card .boost-active .active-badge,
.boost-purchase-card .active-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.boost-purchase-card .boost-active p {
    color: #6b7280 !important;
    margin-bottom: 15px !important;
}

.boost-purchase-card .boost-active .boost-info {
    background: #f8f9fa !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
}

@media (max-width: 640px) {
    .boost-purchase-page {
        margin: 20px 15px !important;
    }

    .boost-purchase-card .boost-header,
    .boost-purchase-card .boost-form {
        padding: 20px !important;
    }
}

/* ============================================
   소상공인 파트너스 섹션
   ============================================ */

.business-partners-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
    margin-bottom: 30px;
}

.partners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.partners-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partners-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.partners-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.partners-subtitle {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
}

.partners-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #6b7280;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.partners-inquiry:hover {
    background: #667eea;
    color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.partner-category i {
    font-size: 10px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.partner-badge i {
    font-size: 10px;
}

.partner-card-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.partner-info {
    text-align: center;
    width: 100%;
}

.partner-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.partner-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-card-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.partner-link-text {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.partner-card:hover .partner-link-text {
    gap: 10px;
}

.partner-link-text i {
    font-size: 11px;
}

.partner-name-only {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.partner-name-only span {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}

.partner-benefit {
    margin-top: 10px;
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-benefit i {
    font-size: 10px;
}

.partners-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
}

.partners-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.partners-empty p {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6b7280;
}

.partners-empty small {
    font-size: 12px;
}

/* 파트너스 반응형 */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .business-partners-section {
        padding: 20px;
    }

    .partners-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .partners-title {
        flex-direction: column;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-card {
        padding: 15px 12px;
        min-height: 110px;
    }

    .partner-name-only span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
