/* ==========================================================================
   1. 기본 레이아웃 & 리셋
   ========================================================================== */
   body {
    font-family: "Nanum Gothic", sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 20px;
}
.page-layout {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.main-container {
    width: 680px;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. 챗봇 컨테이너 & 헤더
   ========================================================================== */
.chat-container {
    width: 100%;
    min-height: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    background: linear-gradient(135deg, #5c0a9a 0%, #9b4dca 100%);
    color: #fff;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(92, 10, 154, 0.2);
    border-bottom: 3px solid #4c0882;
}

.chat-header h1 {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.title-main {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.title-highlight {
    font-size: 24px;
    color: #ffd700;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   3. 별 애니메이션
   ========================================================================== */
.star {
    width: 12px;
    height: 12px;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    display: inline-block;
    animation: twinkle 1.5s infinite;
}

.star:nth-child(2) { animation-delay: 0.5s; }
.star:nth-child(3) { animation-delay: 1s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* ==========================================================================
   4. 채팅 본문 영역
   ========================================================================== */
.chat-body {
    flex: 1;
    padding: 20px;
    height: calc(100vh - 300px);
    overflow-y: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   5. 사주 정보 디스플레이
   ========================================================================== */
.saju-display {
    background: linear-gradient(135deg, #f5f6fa 0%, #ffffff 100%);
    border: 2px solid #5c0a9a;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(92, 10, 154, 0.1);
    margin: 20px auto;
    max-width: 80%;
    padding: 25px;
    text-align: center;
}

.saju-display p {
    color: #2d3436;
    font-size: 16px;
    line-height: 1.8;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(92, 10, 154, 0.1);
}

.saju-display p:last-child {
    border-bottom: none;
}

.saju-display .saju-korean {
    color: #2d3436;
    font-size: 18px;
    font-weight: bold;
}

.saju-display .saju-hanja {
    color: #5c0a9a;
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================================================
   6. 메시지 스타일
   ========================================================================== */
.message {
    display: flex;
    align-items: flex-start;
    margin: 15px;
    gap: 10px;
}

.message.user {
    flex-direction: row-reverse;
}

.message.bot {
    margin-bottom: 16px;
    gap: 15px;
    padding: 15px;
    margin: 10px;
    background-color: #f8f9fa;
    border-radius: 15px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
    line-height: 1.4;
    position: relative;
}

.message.user .message-bubble {
    background-color: #2196F3;
    color: white;
    margin-right: 12px;
    border-top-right-radius: 4px;
}

/* 아바타 스타일 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 2px solid #2196F3;
}

.logo200 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    flex-grow: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 15px;
    padding: 20px 24px;
    box-shadow: 0 3px 10px rgba(92, 10, 154, 0.08);
    border: 1px solid rgba(92, 10, 154, 0.1);
    transition: all 0.3s ease;
    animation: messageAppear 0.4s ease;
}

.message-content:hover {
    box-shadow: 0 5px 15px rgba(92, 10, 154, 0.12);
    border-color: rgba(92, 10, 154, 0.2);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message.bot p {
    margin: 0;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 16px;
}

/* ==========================================================================
   7. 운세 섹션 스타일
   ========================================================================== */
.fortune-section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fortune-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(92,10,154,0.1);
}

.fortune-icon {
    font-size: 24px;
}

.fortune-title {
    font-size: 18px;
    font-weight: 600;
    color: #5c0a9a;
}

.fortune-content {
    line-height: 1.8;
    color: #333;
    padding: 5px 0;
}

.fortune-content p {
    margin: 12px 0;
    line-height: 1.6;
    font-size: 16px;
}

.fortune-content strong {
    color: #5c0a9a;
    font-weight: 600;
}

/* 운세 섹션 타입별 스타일 */
.positive-aspect { border-left: 4px solid #4CAF50; }
.negative-aspect { border-left: 4px solid #FF9800; }
.advice-aspect { border-left: 4px solid #2196F3; }
.fortune-general { border-left: 4px solid #9C27B0; }

/* ==========================================================================
   8. 메시지 포맷팅 스타일 (개선된 줄바꿈 처리)
   ========================================================================== */

/* 텍스트 문단 스타일 */
.text-paragraph {
    margin: 12px 0;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 16px;
    padding: 8px 12px;
    background: linear-gradient(to right, rgba(92, 10, 154, 0.02), transparent);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.text-paragraph:hover {
    background: linear-gradient(to right, rgba(92, 10, 154, 0.05), transparent);
    border-left-color: rgba(92, 10, 154, 0.3);
}

/* 글머리 기호 그룹 */
.bullet-group {
    margin: 16px 0;
    padding: 15px 12px;
    background: linear-gradient(135deg, #faf9fc 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 4px solid #9b4dca;
    box-shadow: 0 2px 8px rgba(92, 10, 154, 0.08);
    animation: fadeIn 0.3s ease;
}

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

/* 개별 글머리 기호 아이템 */
.bullet-item {
    margin: 10px 0;
    padding: 8px 0 8px 28px;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 15px;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bullet-item:hover {
    transform: translateX(4px);
    color: #5c0a9a;
}

.bullet-item:before {
    content: "●";
    position: absolute;
    left: 8px;
    top: 8px;
    color: #9b4dca;
    font-size: 12px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 글머리 기호 제목 (섹션 제목용) */
.bullet-title {
    font-size: 16px;
    font-weight: 700;
    color: #5c0a9a;
    padding: 12px 0 12px 28px;
    margin: 12px 0;
    background: linear-gradient(to right, rgba(155, 77, 202, 0.08), transparent);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bullet-title:hover {
    background: linear-gradient(to right, rgba(155, 77, 202, 0.15), transparent);
    transform: translateX(6px);
}

.bullet-title:before {
    content: "◆";
    color: #9b4dca;
    font-size: 14px;
    font-weight: 700;
}

/* 섹션 구분선 */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #9b4dca 30%, #9b4dca 70%, transparent);
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(92, 10, 154, 0.15);
    opacity: 0.8;
    animation: fadeIn 0.5s ease;
}

/* 한자 표기 스타일 */
.hanja {
    color: #7c4dca;
    font-size: 0.92em;
    margin-left: 3px;
    font-weight: 500;
    background: linear-gradient(to bottom, transparent 50%, rgba(124, 77, 202, 0.1) 50%);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 응답 내 구분선 */
.message-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #9b4dca, transparent);
    margin: 20px 0;
    box-shadow: 0 1px 2px rgba(92, 10, 154, 0.1);
}

/* ==========================================================================
   9. 섹션 제목 스타일 (기존 섹션 8에서 이동)
   ========================================================================== */
.major-section {
    color: #5c0a9a;
    font-size: 1.5em;
    font-weight: 700;
    margin: 25px 0 18px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f4fc 0%, #ffffff 100%);
    border-left: 5px solid #5c0a9a;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(92, 10, 154, 0.12);
    display: block;
    position: relative;
    animation: slideIn 0.4s ease;
}

.major-section:before {
    content: "✦";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5c0a9a;
    font-size: 1.2em;
}

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

.section-title {
    color: #5c0a9a;
    font-size: 1.25em;
    font-weight: 600;
    margin: 20px 0 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #faf9fc 0%, #ffffff 100%);
    border-left: 4px solid #9b4dca;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(92, 10, 154, 0.08);
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.section-title:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(92, 10, 154, 0.15);
    background: linear-gradient(135deg, #f8f4fc 0%, #ffffff 100%);
}

.section-title:before {
    content: "▶";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9b4dca;
    font-size: 0.8em;
}

.sub-section {
    color: #5c0a9a;
    font-size: 1.15em;
    font-weight: 600;
    margin: 16px 0 12px;
    padding: 10px 15px;
    padding-left: 18px;
    background: linear-gradient(to right, rgba(155, 77, 202, 0.08), transparent);
    border-left: 3px solid #9b4dca;
    border-radius: 4px;
    display: block;
    transition: all 0.2s ease;
}

.sub-section:hover {
    background: linear-gradient(to right, rgba(155, 77, 202, 0.15), transparent);
    transform: translateX(3px);
}

/* ==========================================================================
   10. 입력 영역 (기존 섹션 9에서 이동)
   ========================================================================== */
.user-input {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
}

.user-input input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #5c0a92;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.user-input button {
    background-color: #5c0a92;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.user-input button:hover {
    background-color: #4c0882;
}

/* ==========================================================================
   10. 생년월일 입력 폼
   ========================================================================== */
.birthdate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 15px;
    background-color: #f8f9fa;
    align-items: center;
    margin: 20px 0;
}

.birthdate-input,
.birth-hour-select {
    padding: 12px;
    border: 2px solid #5c0a92;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.birthdate-submit,
.birthdate-edit {
    background-color: #5c0a92;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.birthdate-submit {
    width: auto;
}

.birthdate-submit:hover,
.birthdate-edit:hover {
    background-color: #4c0882;
}

.birthdate-display {
    display: none;
}

#saved-birthdate {
    font-weight: bold;
    color: #5c0a92;
}

/* ==========================================================================
   11. 로딩 메시지
   ========================================================================== */
#loading-message {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    left: 50%;
}

#loading-message.initial-loading {
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(92, 10, 154, 0.15);
}

#loading-message.chat-loading {
    bottom: 80px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(92, 10, 154, 0.1);
    flex-direction: row;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(92, 10, 154, 0.1);
    border-top: 3px solid #5c0a9a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.chat-loading .spinner {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   12. 광고 영역
   ========================================================================== */
   .ad-container {
    width: 160px;
    position: sticky;
    top: 20px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
}

.mobile-ad-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  justify-content: center;
  align-items: center;
}

/* 광고 위치 미세 조정 */
.ad-container.left-ad {
    margin-right: auto; /* 왼쪽 정렬 */
}

.ad-container.right-ad {
    margin-left: auto; /* 오른쪽 정렬 */
}

/* ==========================================================================
   13. 예시 질문 섹션
   ========================================================================== */
   .example-questions {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
}

.example-title {
    color: #5c0a9a;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.question-category {
    margin: 20px 0;
}

.category-title {
    color: #5c0a9a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.example-item {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.example-item:before {
    content: "•";
    color: #9b4dca;
    position: absolute;
    left: 0;
}

/* ==========================================================================
   14. 서비스 소개 섹션
   ========================================================================== */
.service-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(92, 10, 154, 0.1);
    margin: 2rem 0;
    border: 2px solid rgba(92, 10, 154, 0.1);
}

.intro-section h2 {
    text-align: center;
    color: #5c0a9a;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(92, 10, 154, 0.1);
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.intro-content > div {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(92, 10, 154, 0.1);
    border-left: 4px solid #5c0a9a;
    box-shadow: 0 2px 8px rgba(92, 10, 154, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-content > div:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(92, 10, 154, 0.1);
}

.intro-content h3 {
    color: #5c0a9a;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.intro-content p {
    color: #495057;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
    padding-left: 2.5rem;
}

/* ==========================================================================
   15. 반응형 디자인
   ========================================================================== */
/* PC 화면 (1201px 이상) */
@media (min-width: 1201px) {
  .page-layout {
      flex-direction: row;
      justify-content: center;
  }
  
  .ad-container {
      display: flex;
  }
  
  .mobile-ad-bottom {
      display: none;
  }
}


/* 태블릿 & 작은 데스크톱 (1200px 이하) */
@media (max-width: 1200px) {
  .page-layout {
      flex-direction: column;
      width: 100%;
      align-items: center;
      padding: 0 10px;
  }
  
  .main-container {
      width: 100%;
      max-width: 680px;
      margin-bottom: 140px;
  }
  
  .ad-container {
      display: none !important; /* 확실하게 숨김 처리 */
      position: absolute; /* sticky 대신 absolute로 변경 */
      visibility: hidden; /* 추가적인 숨김 처리 */
  }
  
  .mobile-ad-bottom {
      display: flex;
  }
}



/* 모바일 화면 (768px 이하) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .page-layout {
        padding: 0 5px;
    }
    
    .title-main {
        font-size: 22px;
    }
    
    .title-highlight {
        font-size: 20px;
    }
    
    .birthdate-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .birthdate-input,
    .birth-hour-select {
        width: 100%;
        max-width: none;
    }
    
    .input-group {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .birthdate-input {
        flex: 2;
    }
    
    .birth-hour-select {
        flex: 1;
    }
    
    .birthdate-submit {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        margin-top: 5px;
    }
    
    .service-intro {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-content > div {
        padding: 1.2rem 1.5rem;
    }
    
    .intro-content p {
        padding-left: 1.5rem;
    }
}


/* 모바일 화면 (768px 이하) 추가 스타일 */
@media (max-width: 768px) {
  .page-layout {
      padding: 0 5px;
  }
  
  .main-container {
      margin-bottom: 120px;
  }
}


/* 768px 이하 모바일 화면에서의 추가 조정 */
@media (max-width: 768px) {
  .site-footer {
      padding: 20px 0;
      margin-bottom: 120px;
  }

  .footer-content {
      padding: 0 15px;
  }
}


/* 태블릿 & 중간 화면 (760px ~ 1200px) */
@media (min-width: 760px) and (max-width: 1200px) {
  /* 페이지 전체 레이아웃 */
  body {
      padding-bottom: 120px; /* 하단 광고 높이만큼 패딩 추가 */
  }
  
  .main-container {
      margin-bottom: 40px; /* 기존 마진 조정 */
  }
  
  .site-footer {
      margin-bottom: 120px; /* 하단 광고 높이만큼 여백 추가 */
  }

  /* 광고 관련 */
  .ad-container {
      display: none;
  }
  
  .mobile-ad-bottom {
      display: flex;
  }
}

/* 모바일 화면에서의 채팅 레이아웃 */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .page-layout {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .chat-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .chat-body {
        padding: 10px;
    }

    /* 메시지 스타일링 */
    .message {
        padding: 0 8px;
        margin: 8px 0;
    }

    .message.bot {
        display: flex;
        gap: 4px;  /* 8px에서 4px로 간격 축소 */
        padding: 10px;
    }


    /* 프로필 이미지 */
   /* 챗봇 프로필 이미지 */
   .message.bot .logo200 {
       width: 38px;
       height: 38px;
       flex-shrink: 0;
   }

    /* 메시지 내용 */
    .message-content {
        max-width: 85%;
        padding: 12px 14px;
        border-radius: 12px;
    }

     /* 메시지 내용 */
   .message.bot .message-content {
    flex: 1;
    max-width: calc(100% - 42px);  /* 38px(이미지) + 4px(gap) */
    margin-left: 0; /* 기존 margin 제거 */
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

    .message.user .message-content {
        background-color: #2196F3;
        color: white;
        margin-right: 8px;
    }
}


/* ==========================================================================
   16. 푸터 섹션션
   ========================================================================== */

/* 푸터 기본 스타일 수정 */
.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  position: relative;
  z-index: 1;
}

/* 푸터 내부 컨텐츠 */
.footer-content {
  position: relative;
  z-index: 2; /* 광고보다 위에 표시 */
}

/*------------------------------------------------------
메인컨텐츠
---------------------------------------------- */
.main-content {
  min-height: calc(100vh - 120px - 200px); /* 뷰포트 높이 - 광고 높이 - 푸터 예상 높이 */
}

/* ==========================================================================
   17. 브라우저 호환성 (SVG, Edge 브라우저 등)
   ========================================================================== */

/* 모든 SVG 요소에 대한 기본 스타일 */
svg {
    display: inline-block;
    vertical-align: top;
}

/* 모든 카카오톡 버튼 이미지에 대한 강력한 크기 제한 */
.kakao-chat-btn img,
.kakao-chat-btn img[src*="kakaotalk.png"],
.kakao-chat-btn img[src*="kakao"] {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transform: scale(1) !important;
    zoom: 1 !important;
}

/* 공유 버튼에서도 동일한 크기 적용 */
.share-btn img[src*="kakaotalk.png"],
.share-btn img[src*="kakao"] {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
}

/* Internet Explorer 및 Edge Legacy 지원 */
@supports (-ms-ime-align: auto) {
    .kakao-chat-btn img,
    .kakao-chat-btn svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }
}

/* Edge Chromium 지원 */
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
    .kakao-chat-btn img,
    .kakao-chat-btn svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}


