/* 攝影師頁面專屬樣式 - 紅黑主題強化版 */

/* CSS變數定義 */
:root {
    --primary-red: #e74c3c;
    --dark-red: #c0392b;
    --primary-black: #1a1a1a;
    --secondary-black: #2c2c2c;
    --text-light: #f0f0f0;
    --text-gray: #999;
    --accent-gold: #f39c12;
}

/* 英雄區塊 */
.photographers-hero {
    position: relative;
    background: var(--primary-black);
    overflow: hidden;
    min-height: 400px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.symbol-particle {
    position: absolute;
    animation: floatUp 10s linear infinite;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.symbol-particle:hover {
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* 頁面標題 */
.page-header {
    position: relative;
    z-index: 10;
    padding: 4rem 0;
    text-align: center;
    background: transparent;
    color: var(--text-light);
}

.page-title {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.title-accent {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* 統計數據 */
.photographers-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 篩選區塊 */
.photographers-filters {
    background: var(--secondary-black);
    padding: 2rem 0;
    border-bottom: 2px solid var(--primary-red);
}

.filters-wrapper {
    background: var(--primary-black);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* 搜索框增強 */
.search-section {
    display: flex;
    justify-content: center;
}

.search-box-enhanced {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--secondary-black);
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--primary-black);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.search-button:hover {
    background: var(--dark-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    display: none;
    z-index: 100;
}

/* 快速篩選 */
.quick-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-light);
}

.quick-filter-btn {
    background: var(--secondary-black);
    border: 2px solid var(--primary-red);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-light);
}

.quick-filter-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.quick-filter-btn .icon {
    font-size: 1.2rem;
}

/* 進階篩選 */
.advanced-filters {
    text-align: center;
}

.toggle-filters-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toggle-filters-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.toggle-filters-btn.active {
    background: var(--dark-red);
}

/* 篩選面板 */
.filter-panel {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(231, 76, 60, 0.2);
}

.filter-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.filter-section h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--secondary-black);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.filter-btn:hover {
    border-color: var(--primary-red);
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.filter-icon {
    font-size: 0.9rem;
}

/* 清除篩選 */
.clear-filters {
    text-align: center;
    margin-top: 2rem;
}

.btn-clear-filters {
    background: var(--secondary-black);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-clear-filters:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* 攝影師網格 */
.photographers-grid {
    padding: 4rem 0;
    background: var(--primary-black);
}

.masonry-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* 攝影師卡片 */
.photographer-card {
    width: 100%;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.card-inner {
    background: var(--secondary-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.photographer-card:hover .card-inner {
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.3);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

/* 圖片容器 */
.photographer-image-wrapper {
    position: relative;
}

.image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.photographer-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photographer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.primary-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.photographer-link:hover .primary-image {
    opacity: 0;
    transform: scale(1.1);
}

.photographer-link:hover .hover-image {
    opacity: 1;
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    z-index: 3;
}

.photographer-link:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.photographer-quote {
    color: white;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.photographer-years {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.5);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.photographer-name {
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
    color: var(--text-light);
}

.photographer-name a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.photographer-name a:hover {
    color: var(--primary-red);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: var(--primary-black);
    border: 1px solid rgba(231, 76, 60, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.action-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary-red);
}

.action-btn.favorited {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* 元數據 */
.photographer-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-icon {
    font-size: 1rem;
}

/* 風格標籤 */
.photographer-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.style-tag {
    background: var(--primary-black);
    color: var(--text-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.style-tag:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-red);
}

.more-tag {
    background: var(--secondary-black);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 卡片底部 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 76, 60, 0.2);
}

.photographer-era {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-view-details {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-view-details:hover {
    background: var(--dark-red);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 無結果 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.no-results h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* 分頁 */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-black);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.pagination-btn {
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--primary-red);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--primary-red);
}

.pagination-number.active {
    background: var(--primary-red);
    color: white;
}

.pagination-dots {
    color: var(--text-gray);
    padding: 0 0.5rem;
}

/* 精選展示 */
.featured-showcase {
    background: var(--secondary-black);
    padding: 4rem 0;
}

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

.featured-showcase .section-title {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-decorator {
    color: var(--primary-red);
    margin: 0 1rem;
}

.featured-showcase .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* 輪播 */
.featured-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-container {
    display: flex;
    transition: transform 0.6s ease;
}

.featured-slide {
    flex: 0 0 33.333%;
    padding: 0 1rem;
}

.featured-card {
    background: var(--primary-black);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.3);
    border-color: var(--primary-red);
}

.featured-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-content {
    padding: 1.5rem;
    color: white;
}

.featured-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.featured-info {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-summary {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.featured-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-link:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* 輪播控制 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-control {
    background: var(--primary-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.carousel-control:hover {
    background: var(--dark-red);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-black);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    font-weight: 500;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.toast-info {
    background: #3498db;
}

/* 響應式設計 */
@media (min-width: 1400px) {
    .masonry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .featured-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .photographers-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .quick-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-sections {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .photographer-card {
        width: 100%;
    }
    
    .featured-slide {
        flex: 0 0 100%;
    }
    
    .featured-carousel {
        padding: 0 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
}