/* ============================================
   VERIFICATION BADGE SYSTEM
   數據驗證徽章組件
   ============================================ */

.verification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Tier 1: 公開可驗證 */
.verification-badge[data-tier="1"] {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.verification-badge[data-tier="1"]:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: scale(1.1);
}

/* Tier 2: Analytics 截圖可用 */
.verification-badge[data-tier="2"] {
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.verification-badge[data-tier="2"]:hover {
    background: rgba(255, 152, 0, 0.25);
    transform: scale(1.1);
}

/* Tier 3: NDA 保護 */
.verification-badge[data-tier="3"] {
    background: rgba(156, 39, 176, 0.15);
    border: 2px solid rgba(156, 39, 176, 0.4);
}

.verification-badge[data-tier="3"]:hover {
    background: rgba(156, 39, 176, 0.25);
    transform: scale(1.1);
}

/* Tooltip 容器 */
.verification-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 30, 0.98);
    color: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    max-width: 320px;
    white-space: normal;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Tooltip 箭頭 */
.verification-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 30, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* 顯示 Tooltip */
.verification-badge:hover::after,
.verification-badge:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .verification-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .verification-badge::after {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        max-width: 250px;
    }
}

/* ============================================
   驗證說明區塊
   ============================================ */

.verification-notice {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.08), rgba(100, 149, 237, 0.02));
    border: 1px solid rgba(100, 149, 237, 0.25);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    font-size: 0.95rem;
}

.verification-notice h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #6495ed;
    font-size: 1.1rem;
}

.verification-notice p {
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.verification-notice a {
    color: #6495ed;
    text-decoration: underline;
}

.verification-notice a:hover {
    opacity: 0.8;
}

.verification-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.verification-legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.verification-legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.verification-legend-icon.tier-1 {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.verification-legend-icon.tier-2 {
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.verification-legend-icon.tier-3 {
    background: rgba(156, 39, 176, 0.15);
    border: 2px solid rgba(156, 39, 176, 0.4);
}
