/* ===========================================
 * 인기글 권한 제한 스타일
 *
 * 읽기 권한 없는 게시글:
 * - 제목 마스킹 (●●●●) + 왕관 아이콘
 * - 클릭 시 토스트 팝업
 * =========================================== */

/* ===================
   1. 홈페이지 인기글 제한
   =================== */
.ddtc-home__popular-item--restricted {
    cursor: pointer;
}

/* ===================
   3. 사이드바 인기글 제한
   =================== */
.sidebar-popular__item--restricted {
    cursor: pointer;
}

/* ===================
   4. 토스트 팝업
   =================== */
.ddtc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    max-width: calc(100vw - 32px);
    width: auto;
    min-width: 280px;
}

.ddtc-toast--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ddtc-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.ddtc-toast__icon svg {
    width: 18px;
    height: 18px;
}

.ddtc-toast__body {
    flex: 1;
    min-width: 0;
}

.ddtc-toast__message {
    font-size: 14px;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1.4;
    margin: 0;
}

.ddtc-toast__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ddtc-toast__link:hover {
    color: #d8b4fe;
}

.ddtc-toast__link svg {
    width: 12px;
    height: 12px;
}

.ddtc-toast__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.ddtc-toast__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

.ddtc-toast__close svg {
    width: 14px;
    height: 14px;
}

/* ===================
   5. 반응형
   =================== */
@media (max-width: 768px) {
    .ddtc-toast {
        bottom: 16px;
        padding: 12px 16px;
        gap: 10px;
        min-width: 0;
        width: calc(100vw - 32px);
    }

    .ddtc-toast__icon {
        width: 32px;
        height: 32px;
    }

    .ddtc-toast__icon svg {
        width: 16px;
        height: 16px;
    }

    .ddtc-toast__message {
        font-size: 13px;
    }

    .ddtc-toast__link {
        font-size: 12px;
    }
}
