/**
 * SEO 強化版塊樣式
 * FAQ、攻略、評價版塊 - 黑金風格設計
 */

/* ===== FAQ 常見問題版塊 ===== */
.faq-section {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #000 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.faq-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.faq-question:hover {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
}

.faq-question h3 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== 玩家攻略專區版塊 ===== */
.guide-section {
    background: linear-gradient(135deg, #000 0%, #0d0d0d 50%, #1a1a1a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.guide-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: #ffd700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.guide-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.guide-content h3 {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.guide-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.guide-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.guide-difficulty {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-time {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

.guide-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #000;
    text-decoration: none;
}

/* ===== 玩家評價推薦版塊 ===== */
.reviews-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #000 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.review-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #ffd700;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h4 {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffd700;
    font-size: 1rem;
}

.rating-text {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    color: #ccc;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
}

.review-game {
    background: linear-gradient(45deg, #333, #555);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== 響應式設計 ===== */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .faq-section,
    .guide-section,
    .reviews-section {
        padding: 60px 0;
    }
    
    .faq-grid,
    .guide-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .guide-content {
        padding: 20px;
    }
    
    .guide-content h3 {
        font-size: 1.2rem;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        margin-bottom: 15px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .faq-section,
    .guide-section,
    .reviews-section {
        padding: 40px 0;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .guide-content {
        padding: 15px;
    }
    
    .guide-content h3 {
        font-size: 1.1rem;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .review-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ===== 平滑滾動 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 無障礙優化 ===== */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .guide-card,
    .review-card,
    .faq-icon,
    .guide-image img {
        transition: none;
    }
    
    .faq-item:hover,
    .guide-card:hover,
    .review-card:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== 高對比度模式 ===== */
@media (prefers-contrast: high) {
    .faq-item,
    .guide-card,
    .review-card {
        border-color: #fff;
    }
    
    .faq-question h3,
    .guide-content h3,
    .review-info h4 {
        color: #fff;
    }
    
    .faq-answer p,
    .guide-content p,
    .review-content p {
        color: #fff;
    }
}

/* ===== 打印樣式 ===== */
@media print {
    .faq-section,
    .guide-section,
    .reviews-section {
        background: #fff;
        color: #000;
    }
    
    .faq-item,
    .guide-card,
    .review-card {
        background: #fff;
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .faq-question h3,
    .guide-content h3,
    .review-info h4 {
        color: #000;
    }
    
    .faq-answer p,
    .guide-content p,
    .review-content p {
        color: #000;
    }
}
