/* content.css - 內容區塊樣式 */

/* 全局內容區域樣式 */
.content-section {
    padding-top: 2rem;
    background-color: var(--background-light);
    min-height: 100vh;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 社群卡片樣式 */
.community-section {
    background-color: white;
    padding: 4rem 0;
}

.community-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.qr-container {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.qr-code {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.community-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.community-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    color: white;
}

/* 遊戲攻略卡片樣式 */
.guides-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.guide-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.guide-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.guide-btn {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.guide-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* FAQ區塊樣式 */
.faq-section {
    background-color: white;
    padding: 4rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background-color: white;
    padding: 1.5rem;
    color: #6c757d;
}

/* 響應式調整 */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .community-card, .guide-card {
        padding: 1.5rem;
    }
    
    .guide-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .community-section, .guides-section, .faq-section {
        padding: 3rem 0;
    }
    
    /* 移動端社群卡片樣式 */
    .community-mobile-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        margin: 0 -15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .community-mobile-item {
        flex: 0 0 auto;
        width: 160px;
        margin: 0 8px;
    }
    
    .community-mobile-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        padding: 1.2rem 1rem;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .community-mobile-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.8rem;
    }
    
    .community-mobile-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }
    
    .community-mobile-count {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }
    
    .community-mobile-btn {
        display: inline-block;
        background: var(--accent-color);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.85rem;
        width: 100%;
    }
    
    /* 隱藏QR碼在移動設備上 */
    .qr-container {
        display: none;
    }
}

@media (max-width: 576px) {
    .community-card, .guide-card {
        padding: 1.25rem;
    }
    
    .guide-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* 移動端社群卡片樣式 */
.mobile-community-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mobile-community-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.mobile-community-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-community-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.mobile-community-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

.mobile-community-btn:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

/* 針對超小螢幕的優化 (小於375px) */
@media (max-width: 375px) {
    .mobile-community-card {
        padding: 0.75rem 0.3rem;
    }
    
    .mobile-community-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.3rem;
    }
    
    .mobile-community-title {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .mobile-community-count {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .mobile-community-btn {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
}