/**
 * @name: attractions.css
 * @description: 景點介紹頁樣式 - 水中月民宿
 * @version: 2.0.0
 * @author: Baiya Wang
 */

/* ================================
   Hero 區塊
   ================================ */
.attr-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.attr-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.attr-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.attr-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

.attr-hero-title i {
    color: var(--primary-color);
}

.attr-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* 裝飾性分隔線 ——•—— */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 0;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--primary-color);
    opacity: 0.4;
}

.hero-divider .divider-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

/* ================================
   Section 通用
   ================================ */
.attr-section {
    padding: 4rem 0;
}

.attr-section-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Section 小分隔線 */
.section-header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem auto 0;
}

.section-header-divider::before,
.section-header-divider::after {
    content: '';
    height: 1px;
    width: 30px;
    background: var(--primary-color);
    opacity: 0.4;
}

.section-header-divider .divider-dot {
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

/* ================================
   景點卡片
   ================================ */
.attr-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    height: 100%;
}

.attr-section-alt .attr-card {
    background-color: var(--bg-primary);
}

.attr-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* 卡片圖片區域 */
.attr-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.attr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attr-card-img-sm {
    aspect-ratio: 16 / 10;
}

.attr-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.attr-card-img-sm .attr-card-placeholder {
    font-size: 2.5rem;
}

/* 景點徽章 */
.attr-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

[data-theme="dark"] .attr-badge {
    color: var(--text-inverse);
}

.attr-badge-fun {
    background-color: #7c3aed;
}

[data-theme="dark"] .attr-badge-fun {
    background-color: #a78bfa;
    color: #1a1714;
}

/* 卡片內容 */
.attr-card-body {
    padding: 1.5rem;
}

.attr-card-dist {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.attr-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.attr-card-featured .attr-card-body h3 {
    font-size: 1.3rem;
}

.attr-card-body p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* 標籤 */
.attr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attr-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.attr-section-alt .attr-tag {
    background-color: var(--bg-secondary);
}

.attr-tag i {
    font-size: 0.7rem;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.attr-card:hover .attr-tag {
    background-color: var(--primary-color);
    color: var(--text-inverse);
}

[data-theme="dark"] .attr-card:hover .attr-tag {
    color: var(--text-inverse);
}

.attr-card:hover .attr-tag i {
    color: var(--text-inverse);
}

[data-theme="dark"] .attr-card:hover .attr-tag i {
    color: var(--text-inverse);
}

/* ================================
   園區設施
   ================================ */
.facility-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.facility-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.facility-card:hover .facility-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.facility-card-icon i {
    font-size: 1.3rem;
    color: #fff;
}

[data-theme="dark"] .facility-card-icon i {
    color: var(--text-inverse);
}

.facility-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

/* ================================
   交通資訊 CTA
   ================================ */
.attr-transport-section {
    padding: 3rem 0 4rem;
}

.transport-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.transport-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.transport-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.transport-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.transport-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.transport-text {
    flex: 1;
}

.transport-text h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.transport-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
    line-height: 1.6;
}

.transport-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    white-space: nowrap;
}

.transport-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--primary-color);
    text-decoration: none;
}

/* 暗色主題 CTA — 深色底 + 金色調 */
[data-theme="dark"] .transport-cta {
    background: linear-gradient(135deg, #2e2a24 0%, #1a1714 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

[data-theme="dark"] .transport-icon {
    background: rgba(212, 175, 55, 0.15);
}

[data-theme="dark"] .transport-icon i {
    color: var(--primary-color);
}

[data-theme="dark"] .transport-text h2 {
    color: var(--primary-color);
}

[data-theme="dark"] .transport-text p {
    color: var(--text-secondary);
}

[data-theme="dark"] .transport-btn {
    background: var(--primary-color);
    color: var(--text-inverse);
}

[data-theme="dark"] .transport-btn:hover {
    background: var(--primary-hover);
    color: var(--text-inverse);
}

/* ================================
   Scroll Reveal 動畫
   ================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.15s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.35s; }

/* ================================
   響應式設計
   ================================ */
@media (max-width: 992px) {
    .attr-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .attr-hero-title {
        font-size: 1.85rem;
    }

    .attr-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .attr-hero {
        padding: 3rem 0 2rem;
    }

    .attr-hero-title {
        font-size: 1.5rem;
    }

    .attr-hero-subtitle {
        font-size: 0.95rem;
    }

    .attr-section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .attr-card-body {
        padding: 1.25rem;
    }

    .attr-card-featured .attr-card-body h3 {
        font-size: 1.15rem;
    }

    /* Transport CTA */
    .transport-cta {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .transport-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .transport-text h2 {
        font-size: 1.2rem;
    }

    .transport-btn {
        width: 100%;
        justify-content: center;
    }

    .facility-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .attr-hero {
        padding: 2.5rem 0 1.75rem;
    }

    .attr-hero-title {
        font-size: 1.35rem;
    }

    .facility-card-icon {
        width: 48px;
        height: 48px;
    }

    .facility-card-icon i {
        font-size: 1.1rem;
    }

    .facility-card h4 {
        font-size: 0.85rem;
    }
}

/* ================================
   行程路線卡片
   ================================ */
.attr-route-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

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

.attr-route-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--primary-hover, #764ba2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.attr-route-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.attr-route-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.attr-route-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.attr-route-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* ================================
   景點卡片 meta 資訊
   ================================ */
.attr-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ================================
   RWD 行程卡片
   ================================ */
@media (max-width: 768px) {
    .attr-route-card {
        padding: 1.5rem 1rem;
    }

    .attr-route-icon {
        width: 52px;
        height: 52px;
    }

    .attr-route-icon i {
        font-size: 1.3rem;
    }
}
