/* --- STYLES FOR COMMUNITY PAGE --- */

/* Live Feed Section */
.live-feed-section {
    background: var(--surface-color);
    padding: 1rem 0;
    text-align: center;
    overflow: hidden;
    height: 40px;
    border-bottom: 1px solid var(--border-color);
}
#feed-ticker {
    position: relative;
    height: 100%;
}
.feed-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.feed-item.active {
    opacity: 1;
}
.feed-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Connect Grid */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.connect-card {
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.connect-card:hover {
    transform: translateY(-10px);
}
.connect-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.connect-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.connect-card p {
    color: rgba(255, 255, 255, 0.8);
}
.discord-card { background: #5865F2; }
.discord-card:hover { box-shadow: 0 10px 20px rgba(88, 101, 242, 0.2); }
.twitter-card { background: #1DA1F2; }
.twitter-card:hover { box-shadow: 0 10px 20px rgba(29, 161, 242, 0.2); }

/* Poll Section */
.poll-container {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
}
.poll-question {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.poll-option {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.poll-option:hover {
    border-color: var(--primary-color);
}
.poll-label {
    position: relative;
    z-index: 2;
    font-weight: 600;
}
.poll-result-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    opacity: 0.3;
    transition: width 1s ease-out;
    z-index: 1;
}
.poll-percentage {
    position: relative;
    z-index: 2;
    float: right;
    font-weight: 700;
    color: var(--heading-color);
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}
.poll-container.voted .poll-option {
    cursor: default;
    pointer-events: none;
}
.poll-container.voted .poll-percentage {
    opacity: 1;
}

/* Hall of Fame */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.hof-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}
.hof-card i {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
}
.hof-card h3 {
    color: var(--heading-color);
}

/* Screenshot Showcase */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.screenshot-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.screenshot-item:hover img {
    transform: scale(1.1);
}
.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}
.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Map Section */
.map-container {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.map-dot {
    fill: var(--primary-color);
    cursor: pointer;
    animation: pulse 2s infinite;
}
.map-dot:hover {
    fill: var(--secondary-color);
    animation-play-state: paused;
}
.map-dot:nth-child(2) { animation-delay: 0.2s; }
.map-dot:nth-child(3) { animation-delay: 0.4s; }
.map-dot:nth-child(4) { animation-delay: 0.6s; }
.map-dot:nth-child(5) { animation-delay: 0.8s; }
.map-dot:nth-child(6) { animation-delay: 1s; }

@keyframes pulse {
    0% { r: 5; opacity: 1; }
    50% { r: 8; opacity: 0.7; }
    100% { r: 5; opacity: 1; }
}

/* Responsive */
@media(max-width: 768px) {
    .connect-grid, .screenshot-grid {
        grid-template-columns: 1fr;
    }
}