/* ===== community.css ===== */
/* 放在 style/ 資料夾內，與 main.css 並列 */

/* ===== 區塊一：Hero ===== */
.community-page {
    max-width: 1440px;
}

.community-hero {
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 10%;
    scroll-snap-align: start;
    position: relative;
}

.community-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: var(--faint-gold);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.community-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    color: var(--foggy-white);
    margin-bottom: 1.5rem;
}

.community-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    font-weight: 200;
}

.community-hero-line {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--faint-gold), transparent);
    opacity: 0.5;
}

/* ===== 區塊二：FB 粉絲數 ===== */
.community-stats {
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
    scroll-snap-align: start;
    text-align: center;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    font-size: 7rem;
    font-weight: 100;
    letter-spacing: 0.05em;
    color: var(--foggy-white);
    line-height: 1;
    position: relative;
}

.stat-plus {
    font-size: 3rem;
    color: var(--faint-gold);
    vertical-align: super;
    margin-left: 0.2rem;
}

.stat-label {
    font-size: 1rem;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-top: 0.5rem;
    font-weight: 200;
}

/* ===== 區塊三：照片牆 ===== */
.community-gallery {
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 10% 60px;
    scroll-snap-align: start;
    gap: 1rem;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.7;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.gallery-main {
    position: relative;
    width: 70%;
    height: 470px;
    overflow: hidden;
    margin: 0 auto;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(11, 29, 46, 0.6) 100%
    );
    pointer-events: none;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.4;
    border: 1px solid transparent;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 0.7;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--faint-gold);
}

.gallery-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.gallery-thumbs-wrap {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.gallery-arrow {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--faint-gold);
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.gallery-arrow:hover:not(:disabled) {
    border-color: var(--faint-gold);
    background: rgba(197, 160, 89, 0.08);
}

.gallery-arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

/* ===== 區塊四：FB 動態 ===== */
.community-fb {
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10% 60px;
    scroll-snap-align: start;
    gap: 3rem;
}

.fb-section-title {
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    color: var(--faint-gold);
    opacity: 0.7;
    text-transform: uppercase;
}

.fb-post {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: 400px;
    overflow-y: scroll;
    border: 6px solid var(--faint-gold);
    padding: 2rem 4rem;
    scrollbar-width: none;
    box-sizing: border-box;
    
}

.fb-post::-webkit-scrollbar {
    display: none;
}

.fb-post-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fb-post-time {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--faint-gold);
    opacity: 0.6;
}

.fb-post-text {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.8;
    font-weight: 200;
    letter-spacing: 0.05em;
    white-space: pre-line;
}

.fb-post-link {
    display: inline-block;
    color: var(--faint-gold);
    border-bottom: 1px solid var(--faint-gold);
    padding-bottom: 2px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.fb-post-link:hover {
    opacity: 0.6;
}

.fb-post-img-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}

.fb-post-img-wrap img {
    width: 80%;
    object-fit: cover;
    display: block;
    margin:0 auto;
}

/* ===== 區塊五：平台連結 ===== */
.community-links {
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
    scroll-snap-align: start;
    text-align: center;
    gap: 1.5rem;
    position: relative;
}

.links-title {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: var(--foggy-white);
}

.links-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    font-weight: 200;
    margin-bottom: 1rem;
    color: var(--faint-gold)
}

.social-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--foggy-white);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.4s ease;
    background: transparent;
}

.social-btn:hover {
    border-color: var(--faint-gold);
    color: var(--faint-gold);
    background: rgba(197, 160, 89, 0.05);
    transform: scale(1.05)
}

/* ===== RWD 手機版 ===== */
@media (max-width: 768px) {
    .community-title {
        font-size: 2.2rem;
        letter-spacing: 0.3em;
    }

    .stat-number {
        font-size: 5rem;
    }

    .stat-plus {
        font-size: 2.2rem;
    }

    .gallery-thumbs {
        gap: 0.5rem;
    }

    .gallery-main {
        height: 330px;
        width: 95%;
    }

    .community-gallery {
        gap: 1rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 220px;
        justify-content: center;
    }

    .fb-post {
        height: 350px;
        padding: 1.5rem;
    }
}

#threadsText {
    transition: opacity 0.3s ease;
}

#threadsText.fade {
    opacity: 0;
}

#threadsBtn {
    width: 190px;
    height: 51px;
    flex-shrink: 0;
    text-align: center;
}

@media (max-width: 768px) {
    #threadsBtn {
        width: 222px;
        height: 51px;
    }
}