/**
 * Portfolio Archive Page Styles
 * RiseCreatives Theme - archive-portfolio.css
 */

/* ==========================================
   Hero 區塊
   ========================================== */

.rise-theme-archive-hero {
    width: 100%;
    padding: 120px 20px 80px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Blob 動畫容器 */
.rise-theme-archive-blob {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    top: -50px;
    right: 10%;
    opacity: 0.15;
}

.rise-theme-blob-svg {
    width: 500px;
    height: 500px;
    transform-origin: 50% 50%;
    animation: rise-theme-archive-blob-move 24s ease-in-out infinite;
}

.rise-theme-blob-svg path {
    fill: #54847A;
}

@keyframes rise-theme-archive-blob-move {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    25% {
        transform: scale(0.85) translate(30px, 40px) rotate(45deg);
    }
    50% {
        transform: scale(1.1) translate(-20px, 30px) rotate(90deg);
    }
    75% {
        transform: scale(0.9) translate(40px, -30px) rotate(180deg);
    }
    100% {
        transform: scale(1) translate(0, 0) rotate(360deg);
    }
}

.rise-theme-archive-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* 背景裝飾文字 */
.rise-theme-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 900;
    color: #f5f5f5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* 主標題 */
.rise-theme-archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #54847A;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ==========================================
   篩選器區塊
   ========================================== */

.rise-theme-archive-filter {
    width: 100%;
    padding: 40px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.rise-theme-filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rise-theme-filter-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rise-theme-filter-link {
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.rise-theme-filter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.rise-theme-filter-link:hover {
    color: #1a1a1a;
}

.rise-theme-filter-link:hover::after {
    width: 100%;
}

.rise-theme-filter-link.active {
    color: #1a1a1a;
    font-weight: 700;
}

.rise-theme-filter-link.active::after {
    width: 100%;
}

.rise-theme-filter-separator {
    color: #cccccc;
    font-size: 16px;
    user-select: none;
}

/* ==========================================
   案例展示區
   ========================================== */

.rise-theme-archive-cases {
    width: 100%;
    padding: 80px 20px;
    background-color: #ffffff;
}

.rise-theme-cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid 佈局 */
.rise-theme-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* 案例卡片 */
.rise-theme-case-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rise-theme-case-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* 案例圖片 */
.rise-theme-case-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.rise-theme-case-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* 案例內容 */
.rise-theme-case-content {
    padding: 24px;
}

/* 案例標題與標籤容器 */
.rise-theme-case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 分類標籤 */
.rise-theme-case-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 案例標題 */
.rise-theme-case-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.rise-theme-case-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rise-theme-case-title a:hover {
    color: #54847A;
}

/* ==========================================
   Load More 按鈕
   ========================================== */

.rise-theme-load-more-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.rise-theme-load-more-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rise-theme-load-more-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rise-theme-load-more-button:active {
    transform: translateY(0);
}

.rise-theme-load-more-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.rise-theme-load-more-button svg {
    transition: transform 0.3s ease;
}

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

/* 載入中動畫 */
.rise-theme-btn-loading svg {
    animation: rise-theme-spin 1s linear infinite;
}

@keyframes rise-theme-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   無案例顯示
   ========================================== */

.rise-theme-no-cases {
    text-align: center;
    padding: 80px 20px;
}

.rise-theme-no-cases p {
    font-size: 18px;
    color: #666666;
    margin: 0;
}

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

/* 平板版 (768px - 1024px) */
@media (max-width: 1024px) {
    .rise-theme-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .rise-theme-hero-bg-text {
        font-size: 80px;
    }
    
    .rise-theme-archive-title {
        font-size: 40px;
    }
}

/* 手機版 (<768px) */
@media (max-width: 768px) {
    .rise-theme-cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rise-theme-archive-hero {
        padding: 80px 20px 60px;
    }
    
    .rise-theme-hero-bg-text {
        font-size: 60px;
    }
    
    .rise-theme-archive-title {
        font-size: 32px;
    }
    
    .rise-theme-archive-filter {
        padding: 30px 20px;
    }
    
    .rise-theme-filter-links {
        gap: 12px;
    }
    
    .rise-theme-filter-link {
        font-size: 14px;
    }
    
    .rise-theme-archive-cases {
        padding: 60px 20px;
    }
    
    .rise-theme-case-content {
        padding: 20px;
    }
    
    .rise-theme-case-title {
        font-size: 18px;
    }
}

/* 小手機 (<480px) */
@media (max-width: 480px) {
    .rise-theme-hero-bg-text {
        font-size: 40px;
    }
    
    .rise-theme-archive-title {
        font-size: 28px;
    }
    
    .rise-theme-filter-links {
        font-size: 13px;
    }
}

/* 案例更新提示樣式 */
.rise-theme-portfolio-notice {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
}

.rise-theme-portfolio-notice p {
    font-size: 1rem;
    color: #999;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.5px;
}
