﻿/* CVR 계산기 전용 CSS */

/* ==================== 라디오 버튼 그룹 ==================== */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: #8b5cf6;
}

/* ==================== 경고/에러 배너 ==================== */
#noticeArea {
    margin-bottom: 2rem;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.notice-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notice-close:hover {
    opacity: 1;
}

/* ==================== 결과 카드 ==================== */
#resultCard {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #a78bfa 100%);
    border-radius: 14px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    margin-bottom: 2rem;
}

.result-value {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.result-item-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
    display: block;
}

.result-item-value {
    font-size: 2rem;
    font-weight: 700;
}

.result-item-unit {
    font-size: 1rem;
    opacity: 0.9;
    margin-left: 0.3rem;
}

/* ==================== 분석 바(1줄 요약) ==================== */
#analysisBar {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0284c7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.analysis-bar-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #0284c7;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.analysis-bar-text {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 500;
    line-height: 1.6;
}

/* ==================== 분석 3카드 ==================== */
#analysisCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.analysis-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.analysis-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.analysis-card-content {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

.analysis-item {
    margin-bottom: 0.8rem;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

.analysis-item strong {
    color: #1f2937;
}

.analysis-subtext {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

.checklist-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: flex-start;
}

.checklist-icon {
    margin-top: 0.1rem;
}

.checklist-text {
    flex: 1;
}

/* ==================== 주의 사항 박스 ==================== */
#cautionBox {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #92400e;
}

.caution-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #b45309;
}

.caution-item {
    margin-bottom: 0.8rem;
}

.caution-item:before {
    content: "• ";
    font-weight: bold;
}

.caution-item:last-child {
    margin-bottom: 0;
}

/* ==================== 다음 단계 연결 ==================== */
#nextStepsSection {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.next-steps-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.next-steps-description {
    font-size: 0.9rem;
    color: #065f46;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.next-steps-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.next-steps-btn {
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: #fff !important;
}

.next-steps-btn-ctr {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
}

.next-steps-btn-ctr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.next-steps-btn-cpc {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff !important;
}

.next-steps-btn-cpc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.next-steps-btn-cpa {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff !important;
}

.next-steps-btn-cpa:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ==================== 반응형 ==================== */
@media (max-width: 768px) {
    #analysisCards {
        grid-template-columns: 1fr;
    }

    .result-value {
        grid-template-columns: 1fr;
    }

    .next-steps-buttons {
        grid-template-columns: 1fr;
    }

    #resultCard {
        padding: 1.5rem;
    }

    .result-item-value {
        font-size: 1.5rem;
    }

    .notice {
        padding: 1rem;
        font-size: 0.9rem;
    }

    #cautionBox {
        padding: 1rem;
    }
}
