/* 전체 레이아웃 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    overflow: hidden;
    background: #ffffff;
}

/* 전체 화면 컨테이너 (1920x1080) */
.full-screen {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* 중앙 컨텐츠 박스 (822x632) */
.content-box {
    width: 822px;
    height: 632px;
    background: transparent;
    background-image: url('../images/bg-page1-final.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible;
    z-index: 10;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* 헤더 로고 영역 */
.header-section {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    animation: fadeInDown 0.6s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 6px 16px;
    border-radius: 12px;
    font-weight: 700;
    margin: 8px 0 0 0;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 질문 섹션 */
.question-section {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 20px;
    animation: slideInLeft 0.7s ease-out;
}

/* 답변 섹션 */
.answer-section {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 20px;
    animation: slideInRight 0.7s ease-out 0.3s backwards;
}

/* 사용자 아바타 */
.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.question-avatar {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.answer-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 말풍선 공통 스타일 */
.speech-bubble {
    position: relative;
    padding: 25px 30px;
    border-radius: 20px;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.speech-bubble:hover {
    transform: translateY(-3px);
}

/* 질문 말풍선 */
.question-bubble {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.question-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #1e3a8a;
}

/* 답변 말풍선 */
.answer-bubble {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1a1a1a;
    border: 2px solid #e9ecef;
}

.answer-bubble::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #e9ecef;
}

/* 말풍선 아이콘 */
.bubble-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.question-bubble .bubble-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.answer-bubble .bubble-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 말풍선 콘텐츠 */
.bubble-content {
    flex: 1;
}

/* 텍스트 스타일 */
.question-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.answer-content {
    flex: 1;
}

.answer-text {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.answer-text strong {
    font-weight: 700;
    color: #1e40af;
    font-size: 19px;
}

.highlight {
    background: linear-gradient(transparent 50%, #93c5fd 50%);
    padding: 2px 6px;
    font-weight: 700;
    color: #1e40af;
    border-radius: 3px;
}

/* 특징 태그 */
.feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.tag i {
    font-size: 11px;
}

/* 데모 버튼 섹션 */
.demo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    animation: fadeInUp 0.7s ease-out 0.6s backwards;
}

/* 데모 버튼 */
.demo-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 12px 35px rgba(245, 87, 108, 0.45),
        0 0 0 0 rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    overflow: hidden;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.demo-button:hover::before {
    left: 100%;
}

.demo-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 45px rgba(245, 87, 108, 0.5),
        0 0 0 8px rgba(245, 87, 108, 0.1);
}

.demo-button:active {
    transform: translateY(-1px) scale(1);
}

.button-icon {
    font-size: 22px;
}

.button-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.demo-button:hover .button-arrow {
    transform: translateX(5px);
}

/* 페이지 네비게이션 */
.page-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    z-index: 20;
    animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    background: #f0f0f0;
    color: #999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-number:hover {
    background: #e0e0e0;
    color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-number.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.page-number.active:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* 애니메이션 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 반응형 처리 */
@media screen and (max-width: 1920px) {
    .full-screen {
        width: 100vw;
        height: 100vh;
    }
}

/* 스크롤바 스타일링 (선택사항) */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}
