/**
 * Portfolio Showcase Section Styles
 * RiseCreatives Theme - portfolio-showcase.css
 */

/* ==========================================
   Portfolio Showcase 區塊
   ========================================== */

.rise-theme-portfolio-showcase {
    width: 100%;
    padding: 160px 0 120px 0;
    background-color: #EEEFE3;
    position: relative;
    overflow: hidden;
}

.rise-theme-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: center;
}

/* ==========================================
   左欄：標題與描述
   ========================================== */

.rise-theme-showcase-left {
    position: relative;
}

/* 背景裝飾文字 */
.rise-theme-showcase-bg-text {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(63, 119, 111, 0.08);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* 標題與裝飾線容器 */
.rise-theme-showcase-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.rise-theme-showcase-title {
    font-size: 42px;
    font-weight: 700;
    color: #3F776F;
    margin: 0;
    white-space: nowrap;
}

/* 品牌綠色裝飾線 */
.rise-theme-showcase-line {
    flex: 1;
    height: 3px;
    background-color: #FFC269;
    border-radius: 2px;
}

/* 描述文字 */
.rise-theme-showcase-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0 0 30px 0;
}

/* 查看更多按鈕 */
.rise-theme-showcase-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #FFC269;
    text-decoration: none;
    border: 2px solid #FFC269;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rise-theme-showcase-view-more:hover {
    background-color: #FFC269;
    color: #383632;
}

.rise-theme-showcase-view-more svg {
    transition: transform 0.3s ease;
}

.rise-theme-showcase-view-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   右欄：案例輪播
   ========================================== */

.rise-theme-showcase-right {
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.rise-theme-showcase-carousel {
    position: relative;
    width: 100%;
}

/* 輪播軌道 */
.rise-theme-showcase-track {
    display: grid;
    grid-template-columns: repeat(6, calc(40% - 10px));
    gap: 20px;
    transition: transform 0.6s ease;
}

/* 案例項目 */
.rise-theme-showcase-item {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.rise-theme-showcase-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 案例圖片 */
.rise-theme-showcase-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 16px;
}

.rise-theme-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rise-theme-showcase-link:hover .rise-theme-showcase-image img {
    transform: scale(1.05);
}

/* 案例標題 */
.rise-theme-showcase-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.rise-theme-showcase-link:hover .rise-theme-showcase-item-title {
    color: #3F776F;
}

/* ==========================================
   輪播控制按鈕
   ========================================== */

.rise-theme-showcase-controls {
    position: absolute;
    bottom: -100px;
    left: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.rise-theme-showcase-btn {
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: 2px solid #FFC269;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFC269;
}

.rise-theme-showcase-btn:hover {
    background-color: #FFC269;
    border-color: #FFC269;
    color: #ffffff;
}

.rise-theme-showcase-btn:active {
    transform: scale(0.95);
}

.rise-theme-showcase-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   無 JavaScript 支援
   ========================================== */

.no-js .rise-theme-showcase-track {
    grid-template-columns: repeat(3, calc(33.333% - 14px));
}

.no-js .rise-theme-showcase-item:nth-child(n+4) {
    display: none;
}

.no-js .rise-theme-showcase-controls {
    display: none;
}

/* ==========================================
   響應式設計
   ========================================== */

/* 平板版 (768px - 1024px) */
@media (max-width: 1024px) {
    .rise-theme-showcase-container {
        grid-template-columns: 35% 65%;
        gap: 40px;
        padding: 0 30px;
    }
    
    .rise-theme-showcase-bg-text {
        font-size: 70px;
        top: -30px;
    }
    
    .rise-theme-showcase-title {
        font-size: 36px;
    }
    
    .rise-theme-showcase-track {
        grid-template-columns: repeat(6, calc(45% - 10px));
    }
}

/* 手機版 (< 768px) */
@media (max-width: 768px) {
    .rise-theme-portfolio-showcase {
        padding: 60px 0;
    }
    
    .rise-theme-showcase-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .rise-theme-showcase-bg-text {
        font-size: 50px;
        top: -20px;
        left: -10px;
    }
    
    .rise-theme-showcase-title {
        font-size: 28px;
    }
    
    .rise-theme-showcase-header {
        gap: 20px;
    }
    
    .rise-theme-showcase-description {
        font-size: 14px;
    }
    
    .rise-theme-showcase-track {
        grid-template-columns: repeat(6, calc(60% - 10px));
    }
    
    .rise-theme-showcase-item-title {
        font-size: 16px;
    }
}
