/* 온누리인쇄나라 전용 CSS */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
}

/* 네비게이션 */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-info {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info i {
    color: var(--warning-color);
}

.hero-image i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 견적 계산기 */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 서비스 카드 */
.service-icon {
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* 특징 섹션 */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* 견적 결과 */
#quoteResult {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 알림 스타일 */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* 푸터 */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer a:hover {
    color: var(--warning-color) !important;
    transition: color 0.3s ease;
}

/* 스크롤 애니메이션 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* 프린트 스타일 */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* 버튼 한 줄 정렬 */
.btn-row {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.btn-row .btn {
    flex-shrink: 1;
    min-width: fit-content;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 1200px) {
    .btn-row .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .contact-info {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-info {
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info span {
        margin-right: 0 !important;
    }
}

@media (max-width: 992px) {
    .btn-row .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .btn-row {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .btn-row .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .btn-row .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .btn-row .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.3rem;
    }
}