﻿/* ================================================
   마케팅 예산 시뮬레이터 - CSS
   ================================================ */

/* 공지사항 배너 */
.notice {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    background-color: #f9fafb;
}

.notice strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.notice-error {
    border-color: #ef4444;
    background-color: #fee2e2;
}

.notice-error strong {
    color: #991b1b;
}

.notice-warning {
    border-color: #f59e0b;
    background-color: #fef3c7;
}

.notice-warning strong {
    color: #92400e;
}

/* 결과 카드 */
.result-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 해석 섹션 */
.interpretation-section {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.interpretation-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.interpretation-summary {
    background-color: white;
    border-left: 4px solid #8b5cf6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.interpretation-summary p {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.6;
}

.interpretation-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.detail-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.detail-item p {
    margin: 0 0 0.75rem 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-item p:last-child {
    margin-bottom: 0;
}

.action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.action-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: 700;
}

/* 비교 섹션 */
.interpretation-comparison {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.interpretation-comparison h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .label {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.comparison-row .value {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.comparison-row.success {
    background-color: #f0fdf4;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.comparison-row.success .value {
    color: #166534;
}

.comparison-row.warning {
    background-color: #fffbeb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.comparison-row.warning .value {
    color: #b45309;
}

.comparison-row.danger {
    background-color: #fef2f2;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.comparison-row.danger .value {
    color: #991b1b;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .result-card {
        padding: 1.5rem;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .result-label {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 1.1rem;
    }

    .interpretation-section {
        padding: 1.5rem;
    }

    .interpretation-details {
        grid-template-columns: 1fr;
    }

    .detail-item {
        padding: 1rem;
    }

    .interpretation-comparison {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .interpretation-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .interpretation-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 입력 필드 스타일 통일 */
#budgetForm .form-group {
    margin-bottom: 1.5rem;
}

#budgetForm label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

#budgetForm .number-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#budgetForm .number-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* 버튼 그룹 */
.button-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.button-group .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-group .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.button-group .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.button-group .btn-secondary {
    background-color: #f3f4f6;
    color: white;
    border: 1px solid #d1d5db;
}

.button-group .btn-secondary:hover {
    background-color: #e5e7eb;
}

@media (max-width: 640px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}

/* SEO 콘텐츠 섹션 */
.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

.seo-content h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
}

.content-section h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

.content-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.content-section ul {
    color: #4b5563;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.formula-box {
    background-color: white;
    border-left: 4px solid #8b5cf6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.formula-box p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: #1f2937;
}

.success-box,
.warning-box,
.caution-box,
.danger-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.success-box {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.success-box h4 {
    color: #166534;
    margin-top: 0;
}

.success-box p {
    color: #166534;
    margin-bottom: 0;
}

.warning-box {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.warning-box h4 {
    color: #92400e;
    margin-top: 0;
}

.warning-box p {
    color: #92400e;
    margin-bottom: 0;
}

.caution-box {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.caution-box h4 {
    color: #92400e;
    margin-top: 0;
}

.caution-box p {
    color: #92400e;
    margin-bottom: 0;
}

.danger-box {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.danger-box h4 {
    color: #991b1b;
    margin-top: 0;
}

.danger-box p {
    color: #991b1b;
    margin-bottom: 0;
}

/* 결과 섹션 애니메이션 */
.result-section {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

