/* SSL 인증서 확인 도구 스타일 - json-csv-converter 디자인 언어 차용 (green/emerald 테마) */
.sslcheck-tool {
    --tool-primary: #16a34a;
    --tool-bg: #f0fdf4;
    --tool-gradient: linear-gradient(135deg, #16a34a 0%, #059669 100%);
}

/* 히어로 */
.sslcheck-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.sslcheck-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.sslcheck-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.sslcheck-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.sslcheck-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.sslcheck-tool .editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.sslcheck-tool .editor-body {
    padding: 18px;
}
.sslcheck-tool .editor-body h5 i {
    color: var(--tool-primary);
}

/* 도메인 입력 포커스 테마 */
.sslcheck-tool #domainInput:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-lg {
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
/* CRITICAL hover fix: 그라데이션·흰 글자 유지, 사라짐 방지 */
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

/* 상태 아이콘 */
.ssl-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 상태별 색상 (유효=초록 / 만료=빨강 / 주의=주황) */
.ssl-status-valid .ssl-status-icon {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}
.ssl-status-expired .ssl-status-icon,
.ssl-status-critical .ssl-status-icon {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.ssl-status-warning .ssl-status-icon {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

/* 만료 바 */
.ssl-expiry-bar {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
}
.ssl-expiry-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}
.ssl-expiry-bar-fill.bar-success { background-color: #16a34a; }
.ssl-expiry-bar-fill.bar-warning { background-color: #d97706; }
.ssl-expiry-bar-fill.bar-danger { background-color: #dc2626; }

/* 상세 정보 행 */
.ssl-detail-row {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fb;
}
.ssl-detail-label {
    font-size: 0.75rem;
    color: #868e96;
    margin-bottom: 0.25rem;
}
.ssl-detail-value {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
    color: #212529;
}

/* SAN 도메인 뱃지 강조 색상 */
.sslcheck-tool #sanList .badge.bg-primary {
    background-color: rgba(22, 163, 74, 0.1) !important;
    color: var(--tool-primary) !important;
}

/* 인증서 체인 */
.ssl-chain-item {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fb;
}
.ssl-chain-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tool-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ssl-chain-arrow {
    padding: 0.25rem 0;
    font-size: 1rem;
}

/* SSL 업체 추천 카드 */
.ssl-provider-card {
    display: block;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    background: #fff;
}
.ssl-provider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1.2rem rgba(22, 163, 74, 0.3);
}
.ssl-provider-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}
.ssl-provider-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #212529;
    margin-bottom: 0.25rem;
}
.ssl-provider-desc {
    font-size: 0.7rem;
    color: #868e96;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.ssl-provider-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: #212529;
}

/* 업체별 아이콘 색상 */
.ssl-provider-letsencrypt .ssl-provider-icon {
    background-color: rgba(0, 58, 112, 0.1);
    color: #003a70;
}
.ssl-provider-letsencrypt:hover { border-color: #003a70; }

.ssl-provider-cloudflare .ssl-provider-icon {
    background-color: rgba(243, 128, 32, 0.1);
    color: #f38020;
}
.ssl-provider-cloudflare:hover { border-color: #f38020; }

.ssl-provider-namecheap .ssl-provider-icon {
    background-color: rgba(222, 88, 51, 0.1);
    color: #de5833;
}
.ssl-provider-namecheap:hover { border-color: #de5833; }

.ssl-provider-digicert .ssl-provider-icon {
    background-color: rgba(0, 98, 152, 0.1);
    color: #006298;
}
.ssl-provider-digicert:hover { border-color: #006298; }

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.sslcheck-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.sslcheck-tool .accordion-button:focus {
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .sslcheck-hero { padding: 28px 20px; border-radius: 12px; }
    .sslcheck-hero h1 { font-size: 22px; }
}
