/**
 * 國際交流專區頁面樣式
 * public/international/international.css
 */

/* ============================================
   內容區塊
   ============================================ */

.international-content {
    padding: 60px 0 100px;
    background: var(--sand, #FFF8E7);
}

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

/* ============================================
   頁面說明
   ============================================ */

.page-intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro-text {
    font-size: 1.3125rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   分類選擇卡片
   ============================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    display: block;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.category-card.digital-nomad {
    border-left: 5px solid #667eea;
}

.category-card.backpacker {
    border-left: 5px solid #f5576c;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.digital-nomad .card-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.backpacker .card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.card-icon .material-icons {
    font-size: 2.5rem;
    color: #fff;
}

.card-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
    margin: 0 0 8px;
}

.card-content .subtitle {
    font-size: 1rem;
    color: var(--text-light, #6c757d);
    margin: 0 0 15px;
}

.card-content .description {
    font-size: 1rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.7;
    margin: 0 0 25px;
}

.btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green, #005639);
    transition: gap 0.3s ease;
}

.category-card:hover .btn-enter {
    gap: 15px;
}

.btn-enter .material-icons {
    font-size: 1.25rem;
}

.card-decoration {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.05;
}

.card-decoration .material-icons {
    font-size: 180px;
}

/* ============================================
   對話泡泡心得分享
   ============================================ */

.chat-testimonials {
    max-width: 900px;
    margin: 0 auto 60px;
}

.chat-bubble-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.chat-bubble-wrapper.left {
    flex-direction: row;
}

.chat-bubble-wrapper.right {
    flex-direction: row-reverse;
}

/* 頭像 */
.chat-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 對話內容 */
.chat-content {
    max-width: 70%;
}

@media (max-width: 768px) {
    .chat-content {
        max-width: 85%;
    }
}

/* 對話泡泡 */
.chat-bubble {
    background: #fff;
    padding: 20px 25px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 左側泡泡尾巴 */
.chat-bubble-wrapper.left .chat-bubble {
    border-bottom-left-radius: 5px;
}

.chat-bubble-wrapper.left .chat-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* 右側泡泡尾巴 */
.chat-bubble-wrapper.right .chat-bubble {
    border-bottom-right-radius: 5px;
}

.chat-bubble-wrapper.right .chat-bubble::before {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

/* 數位遊牧頁面泡泡顏色 */
.digital-nomad-page .chat-bubble-wrapper.left .chat-bubble {
    border-left: 3px solid #667eea;
}

.digital-nomad-page .chat-bubble-wrapper.right .chat-bubble {
    border-right: 3px solid #764ba2;
}

/* 背包客頁面泡泡顏色 */
.backpacker-page .chat-bubble-wrapper.left .chat-bubble {
    border-left: 3px solid #f093fb;
}

.backpacker-page .chat-bubble-wrapper.right .chat-bubble {
    border-right: 3px solid #f5576c;
}

.chat-bubble p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark, #2c3e50);
    margin: 0;
}

/* 作者資訊 */
.chat-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-left: 5px;
}

.chat-bubble-wrapper.right .chat-author {
    justify-content: flex-end;
    padding-right: 5px;
    padding-left: 0;
}

.chat-author .name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
}

.chat-author .country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9375rem;
    color: var(--text-light, #6c757d);
}

.chat-author .flag {
    font-size: 1rem;
}

/* ============================================
   其他分類連結
   ============================================ */

.other-category {
    margin-bottom: 50px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 450px;
    margin: 0 auto;
}

.category-link:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-link > .material-icons:first-child {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.nomad-link > .material-icons:first-child {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.backpacker-link > .material-icons:first-child {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.link-text {
    flex: 1;
}

.link-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--text-light, #6c757d);
}

.category-link .arrow {
    color: var(--text-light, #6c757d);
    transition: transform 0.3s ease;
}

.category-link:hover .arrow {
    transform: translateX(5px);
    color: var(--primary-green, #005639);
}

/* ============================================
   區塊標題（保留舊版相容）
   ============================================ */

.section-block {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-nomad .section-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.backpacker .section-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.section-icon .material-icons {
    font-size: 2rem;
    color: #fff;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
    margin: 0;
}

.section-header p {
    font-size: 0.9375rem;
    color: var(--text-light, #6c757d);
    margin: 5px 0 0;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 800px;
}

/* ============================================
   分享區塊
   ============================================ */

.share-section {
    margin-bottom: 50px;
}

.share-content {
    background: linear-gradient(135deg, #fff, var(--ocean-light, #E8F4F8));
    border: 2px dashed var(--primary-green, #005639);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}

.share-content > .material-icons {
    font-size: 3rem;
    color: var(--primary-yellow, #FEB503);
    margin-bottom: 20px;
}

.share-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
    margin: 0 0 15px;
}

.share-content p {
    font-size: 1.1875rem;
    color: var(--text-light, #6c757d);
    margin: 0 0 25px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-green, #005639);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: var(--primary-yellow, #FEB503);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 181, 3, 0.4);
}

.btn-share .material-icons {
    font-size: 1.25rem;
}

/* ============================================
   CTA 區塊
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-green, #005639), var(--primary-blue, #00256B));
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 30px;
    color: #fff;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-yellow, #FEB503);
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(254, 181, 3, 0.4);
}

.btn-cta:hover {
    background: #fff;
    color: var(--primary-green, #005639);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-cta .material-icons {
    font-size: 1.5rem;
}

/* ============================================
   響應式調整
   ============================================ */

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-desc {
        text-align: center;
    }

    .share-content {
        padding: 35px 25px;
    }

    .share-content h3 {
        font-size: 1.25rem;
    }

    .cta-section {
        padding: 40px 25px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 30px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon .material-icons {
        font-size: 2rem;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .chat-avatar {
        width: 50px;
        height: 50px;
    }

    .chat-bubble {
        padding: 15px 20px;
    }

    .category-link {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .chat-bubble-wrapper {
        gap: 10px;
    }

    .chat-avatar {
        width: 45px;
        height: 45px;
    }

    .chat-content {
        max-width: calc(100% - 55px);
    }

    .chat-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .chat-bubble-wrapper.right .chat-author {
        align-items: flex-end;
    }
}
