/* ====================================
   無盡藏 AI 챗봇 랜딩 페이지 스타일
   ==================================== */

:root {
    --primary-color: #2d8659;
    --secondary-color: #FFD700;
    --accent-color: #dc143c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #faf9f7;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 주의사항 배너 ========== */
.notice-banner {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.notice-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notice-banner i {
    font-size: 1.2rem;
}

/* ========== 헤더 ========== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 51px;
    z-index: 998;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* 로고 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.dharma-wheel {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dark);
}

/* 데스크탑 네비게이션 */
.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* 헤더 도구 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

#google_translate_element {
    max-width: 150px;
}

/* 구글 번역 위젯 스타일 오버라이드 */
.goog-te-combo {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* 모바일 햄버거 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== 모바일 오프캔버스 메뉴 ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.mobile-nav-link {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-color);
}

/* 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== 히어로 섹션 ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #191970);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--accent-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 4rem;
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
}

.hero-title-sub {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    display: block;
    margin-bottom: 30px;
}

.hero-tagline {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* ========== 섹션 공통 ========== */
.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* ========== 상담 분야 섹션 ========== */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
}

/* ========== 챗봇 섹션 ========== */
.chatbot-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
}

.chatbot-window {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), #191970);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.chatbot-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease-out;
}

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

.message-content {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 70%;
    line-height: 1.5;
}

.bot-message .message-content {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.user-message {
    text-align: right;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

.chatbot-quick-replies {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    background: white;
    border-top: 1px solid var(--border-color);
}

.quick-reply {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quick-reply:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input button {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-input button:hover {
    background: #1e5f3e;
    transform: scale(1.1);
}

/* ========== 연락처 섹션 ========== */
.contact {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-note {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.contact-note h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.service-info ul {
    list-style: none;
    margin-top: 15px;
}

.service-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #191970);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-logo h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-tagline {
    font-style: italic;
    font-size: 1.1rem;
}

/* ========== 플로팅 챗봇 버튼 ========== */
.floating-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 999;
}

.floating-chatbot:hover {
    transform: scale(1.1);
    background: #1e5f3e;
}

.floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .floating-chatbot {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}