
/* --- HUB & COMMUNITY PAGE STYLES --- */

/* --- 1. Hero --- */
.hub-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('image/banner.jpg') center center/cover no-repeat;
    color: var(--white-color);
}

.hub-hero .bar {
    background-color: var(--white-color);
}
.hub-hero h1, .hub-hero p {
    color: var(--white-color);
}

/* --- 2. Live Feed --- */
.live-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feed-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
}
.feed-icon {
    font-size: 2rem;
    color: var(--primary-color);
}
.feed-text h4 {
    margin-bottom: 0.25rem;
}
.feed-text p {
    margin: 0;
    color: #666;
}
.live-dot {
    position: relative;
}
.live-dot::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* --- 4. Member Spotlight --- */
.spotlight-member {
    background: var(--light-color);
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: auto;
}
.spotlight-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
}
.member-title {
    display: inline-block;
    background: #e9e3f5;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
blockquote {
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

/* --- 5. Guild Section --- */
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.guild-card {
    background: var(--white-color);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guild-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.1);
}
.guild-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 6. Events Section --- */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: auto;
}
.event-card {
    display: flex;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}
.event-date {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1rem;
    text-align: center;
    min-width: 80px;
}
.event-date span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.event-details {
    padding: 1rem 1.5rem;
}
.event-details p {
    margin: 0.25rem 0;
    color: #666;
}

/* --- 7. Poll Section --- */
#poll-container.voted .vote-button {
    background-color: #ccc;
    cursor: not-allowed;
}
.poll-option {
    display: grid;
    grid-template-columns: 1fr 120px 80px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.poll-option p {
    margin: 0;
    font-weight: 600;
}
.progress-bar {
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}
.vote-count {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}
.vote-button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.vote-button:hover {
    background-color: var(--secondary-color);
}

/* --- 8. Forum List --- */
.forum-list {
    list-style: none;
    max-width: 900px;
    margin: auto;
}
.forum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}
.forum-topic a {
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}
.forum-topic a:hover {
    color: var(--primary-color);
}
.forum-topic span {
    display: block;
    font-size: 0.9rem;
    color: #777;
}
.forum-category {
    background: #e9e3f5;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- 10. Showcase Captions --- */
.gallery-grid figure {
    position: relative;
    margin: 0;
}
.gallery-grid figcaption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.gallery-grid img {
    width: 100%;
    height: 400px;;
    object-fit: cover;
}

/* --- 11. Gamification Grid --- */
.gamify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.gamify-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.w45 { width: 45%; }
.w35 { width: 35%; }
.w20 { width: 20%; }
/* --- Responsive for Hub --- */
@media(max-width: 768px) {
    .spotlight-member {
        flex-direction: column;
        text-align: center;
    }
    .poll-option {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .poll-option p { margin-bottom: 0.5rem; }
    .poll-option .vote-count { text-align: center; margin: 0.5rem 0; }
    .forum-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}