/* ===== 공통 ===== */
:root {
    --primary: #4A90D9;
    --primary-dark: #357ABD;
    --secondary: #6C63FF;
    --success-green: #28A745;
    --warm-orange: #FF9500;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    color: #333;
    padding-top: 72px;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
}

/* ===== 히어로 ===== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    overflow: hidden;
}

/* 유튜브 배경 영상 - 꽉 찬 화면 */
.hero-video-wrap {
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vw;
    height: 200vh;
    min-width: 100%;
    min-height: 100%;
    border: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* 장식 아이콘들 */
.hero-deco {
    position: absolute;
    opacity: 0.12;
    font-size: 3rem;
    color: #fff;
    animation: decoFloat 6s ease-in-out infinite;
    z-index: 1;
}
.hero-deco:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.hero-deco:nth-child(2) { top: 25%; right: 10%; animation-delay: 1.5s; font-size: 4rem; }
.hero-deco:nth-child(3) { bottom: 20%; left: 12%; animation-delay: 3s; font-size: 3.5rem; }
.hero-deco:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 0.8s; font-size: 2rem; }
.hero-deco:nth-child(5) { top: 40%; left: 5%; animation-delay: 2s; font-size: 2rem; }
.hero-deco:nth-child(6) { top: 10%; right: 25%; animation-delay: 4s; font-size: 2.5rem; }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.7) 0%, rgba(118,75,162,0.7) 100%);
    z-index: 1;
}

/* 하단 웨이브 */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

.hero-content {
    position: relative;
    animation: heroFadeIn 1s ease-out;
    z-index: 2;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

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

.hero-content .btn-primary {
    background: #4A90D9;
    border: none;
    border-radius: 30px;
}
.hero-content .btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
}
.hero-content .btn-outline-light {
    border-radius: 30px;
    border-width: 2px;
}
.hero-content .btn-outline-light:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section { height: 450px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-deco { display: none; }
    .hero-content .btn-lg { font-size: 0.95rem; padding: 10px 20px; }
    .hero-video-wrap { display: none; }
}

/* ===== 국가 카드 ===== */
.country-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
}

.country-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(74,144,217,0.15);
}

.country-flag {
    font-size: 2.5rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #f8f9fa;
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4ff;
}

/* ===== 이용 방법 Step ===== */
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===== 시터 카드 ===== */
.sitter-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
}

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

.sitter-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===== 챗봇 위젯 ===== */
#chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(74,144,217,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 32px);
        right: -8px;
        height: 450px;
    }
}

.chatbot-header {
    background: var(--primary);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.bot .message-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chat-message.user .message-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chatbot-quick {
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.quick-btn {
    padding: 4px 12px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: transparent;
    color: var(--primary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-btn:hover {
    background: var(--primary);
    color: #fff;
}

.chatbot-input {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.chatbot-input .form-control {
    border-radius: 24px;
}

.chatbot-input .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
}

/* 타이핑 인디케이터 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aaa;
    animation: typing 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ===== 카드 공통 ===== */
.card {
    border-radius: 12px;
}

/* ===== 네비게이션 ===== */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 600;
}

/* ===== 푸터 ===== */
footer a:hover {
    color: #fff !important;
}
