/**
 * Web Design Service Process Section Styles
 * 網頁設計服務流程段落樣式 - 完全重寫以確保滾動劫持效果
 * @package rise-creatives-theme
 */

/* === Service Process Section === */
.rise-theme-service-process-section {
    background-color: #F8F9FA;
    position: relative;
}

/* 桌面版：滾動劫持容器 - 關鍵設定 */
@media (min-width: 769px) {
    .rise-theme-service-process-section {
        height: 600vh; /* 6倍視窗高度來創造滾動空間 */
    }
    
    .rise-theme-process-container {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #F8F9FA; /* 確保背景色一致 */
    }
}

/* 手機版：正常顯示 */
@media (max-width: 768px) {
    .rise-theme-service-process-section {
        padding: 60px 0;
    }
    
    .rise-theme-process-container {
        position: relative;
        height: auto;
        padding: 0 20px;
    }
}

/* === 標題區域 === */
.rise-theme-process-title-container {
    text-align: center;
    z-index: 10;
}

/* 桌面版標題固定位置 */
@media (min-width: 769px) {
    .rise-theme-process-title-container {
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        pointer-events: none; /* 避免阻擋滾動 */
    }
}

/* 手機版標題 */
@media (max-width: 768px) {
    .rise-theme-process-title-container {
        margin-bottom: 50px;
    }
}

.rise-theme-process-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3F776F;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.rise-theme-process-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #6C757D;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === 進度指示器 === */
.rise-theme-scroll-progress-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .rise-theme-scroll-progress-indicator {
        display: none;
    }
}

.rise-theme-scroll-hint {
    font-size: 0.9rem;
    color: #6C757D;
    margin: 0 0 15px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.rise-theme-progress-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.rise-theme-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E9ECEF;
    border: 2px solid #DEE2E6;
    transition: all 0.3s ease;
}

.rise-theme-progress-dot.active {
    background: #3F776F;
    border-color: #3F776F;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(63, 119, 111, 0.4);
}

/* === 卡片容器 === */
.rise-theme-process-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 桌面版卡片軌道 */
@media (min-width: 769px) {
    .rise-theme-process-cards-container {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 400px;
        transform: translateY(-50%);
        overflow: hidden;
        pointer-events: none; /* 重要：避免阻擋滾動事件 */
    }
    
    .rise-theme-process-cards-track {
        position: relative;
        width: 100%;
        height: 100%;
        pointer-events: auto; /* 卡片內容可以互動 */
    }
}

/* 手機版卡片排列 */
@media (max-width: 768px) {
    .rise-theme-process-cards-track {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

/* === 卡片樣式 === */
.rise-theme-process-card {
    background: #FFFFFF;
    border-radius: 15px; /* 基礎圓角，桌面版會覆蓋 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(63, 119, 111, 0.1); /* 添加細邊框增加精緻感 */
}

/* 桌面版卡片 - 重新設計為緊湊型卡片 */
@media (min-width: 769px) {
    .rise-theme-process-card {
        width: 320px; /* 大幅縮小寬度 */
        min-height: 140px; /* 調整卡片高度 */
        opacity: 0;
        transform: scale(0.85);
        position: absolute;
        top: 50%;
        left: 0;
        transform-origin: center;
        transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        will-change: transform, opacity;
        z-index: 10;
        border-radius: 15px; /* 縮小圓角 */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* 調整陰影 */
    }
    
    .rise-theme-process-card.visible {
        opacity: 1;
        transform: scale(1) translateY(-50%);
    }
    
    /* hover效果增強小卡片的互動性 */
    .rise-theme-process-card.visible:hover {
        transform: scale(1.05) translateY(-50%);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        z-index: 100; /* hover時提升到最高層 */
    }
}

/* 手機版卡片 */
@media (max-width: 768px) {
    .rise-theme-process-card {
        width: 100%;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .rise-theme-process-card.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 卡片內容 === */
.rise-theme-process-card-inner {
    padding: 20px; /* 大幅縮小內距 */
    display: flex;
    align-items: center; /* 改為居中對齊，更緊湊 */
    gap: 15px; /* 縮小間距 */
    height: 100%;
}

.rise-theme-process-number {
    flex-shrink: 0;
    width: 50px; /* 大幅縮小數字圓圈 */
    height: 50px;
    background: linear-gradient(135deg, #3F776F 0%, #5A9B8F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(63, 119, 111, 0.3);
}

.rise-theme-process-step-num {
    font-size: 1.3rem; /* 調整字體大小保持可讀性 */
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.rise-theme-process-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rise-theme-process-title {
    font-size: 1.4rem; /* 增大標題字體 */
    font-weight: 700;
    color: #3F776F;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.rise-theme-process-description {
    font-size: 1rem; /* 增大描述文字 */
    color: #6C757D;
    line-height: 1.4;
    margin: 0;
}

/* 手機版調整 */
@media (max-width: 768px) {
    .rise-theme-process-card-inner {
        padding: 30px;
        gap: 20px;
    }
    
    .rise-theme-process-number {
        width: 60px;
        height: 60px;
    }
    
    .rise-theme-process-step-num {
        font-size: 1.5rem;
    }
    
    .rise-theme-process-title {
        font-size: 1.4rem;
    }
    
    .rise-theme-process-description {
        font-size: 1rem;
    }
}

/* 小手機優化 */
@media (max-width: 480px) {
    .rise-theme-process-main-title {
        font-size: 2rem;
    }
    
    .rise-theme-process-subtitle {
        font-size: 0.9rem;
    }
}

/* 調試樣式 - 開發時使用 */
.debug .rise-theme-service-process-section {
    border: 3px solid red;
}

.debug .rise-theme-process-container {
    border: 2px solid blue;
}

.debug .rise-theme-process-cards-track {
    border: 1px solid green;
}