﻿/* ================================================
   ROAS 계산기 - 고도화 스타일
   의사결정 도구 UI 컴포넌트
   ================================================ */

/* ===== 1. 알림 배너 ===== */
.roas-notice {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.5;
}

.roas-notice strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.roas-notice p {
    margin: 0;
}

.roas-notice-error {
    background-color: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.roas-notice-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
}

/* ===== 2. 결과 카드 ===== */
.roas-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.roas-result-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roas-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.roas-card-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.roas-card-gray {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.card-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ===== 3. 분석 섹션 ===== */
.roas-analysis-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.roas-analysis-section h3 {
    margin: 0 0 1.5rem 0;
    color: #1f2937;
    font-size: 1.2rem;
}

/* ===== 4. 1줄 요약 바 ===== */
.roas-summary-bar {
    background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.roas-summary-bar strong {
    font-weight: 600;
}

/* ===== 5. 해석 블록 ===== */
.roas-interpretation {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.interpretation-status {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.interpretation-detail {
    color: #374151;
    line-height: 1.7;
}

.interpretation-detail p {
    margin: 0.75rem 0;
}

.interpretation-detail strong {
    color: #1f2937;
    font-weight: 600;
}

.improvement-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.improvement-list li {
    padding: 0.5rem 0;
    padding-left: 0;
    color: #374151;
}

.improvement-list li::before {
    content: '';
    display: inline-block;
    margin-right: 0.5rem;
}

/* ===== 6. 다음 단계 버튼 그룹 ===== */
.roas-next-steps {
    background-color: #ecfdf5;
    border: 2px solid #a7f3d0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.roas-next-steps p {
    margin: 0.5rem 0;
    color: #047857;
}

.roas-next-steps strong {
    color: #065f46;
    font-weight: 600;
}

.next-steps-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.btn-next-step {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* ===== 7. 반응형 디자인 ===== */
@media (max-width: 768px) {
    .roas-analysis-section {
        padding: 1.5rem;
    }

    .roas-result-cards {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .roas-result-card {
        padding: 1rem;
    }

    .card-value {
        font-size: 1.4rem;
    }

    .card-label {
        font-size: 0.75rem;
    }

    .next-steps-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .roas-analysis-section {
        padding: 1rem;
    }

    .roas-result-cards {
        grid-template-columns: 1fr;
    }

    .roas-summary-bar {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .interpretation-detail {
        font-size: 0.95rem;
    }

    .improvement-list li {
        font-size: 0.9rem;
    }

    .next-steps-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-next-step {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

