/* ============================================================================
   COMMUNITY REQUESTS SECTION
   ============================================================================ */

/* Full width; the shared idea stylesheet owns the collage grid. */
.home-community-requests {
    padding: 64px 4%;
}

@media (min-width: 1300px) {
    .home-community-requests .home-requests-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-community-requests .home-section-header {
    text-align: left;
    margin-bottom: 24px;
}

.home-community-requests .home-section-title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 4px 4px 0 #31552a;
    letter-spacing: -0.04em;
    line-height: 1;
}

.home-community-requests .home-section-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.home-requests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.home-request-card {
    display: flex;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-left: 1px dashed #7b856d;
    padding: 18px 22px 20px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.home-request-card:hover {
    border-color: #4da44b;
}

.home-request-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 36px;
}

/* Sizing comes from .wakasm-coin in coin.css; this selector is now a hook
   for layout-only overrides if ever needed. */

.home-request-coin-count {
    font-weight: 700;
    color: #f5c842;
    font-size: 0.85rem;
}

.home-request-body {
    flex: 1;
    min-width: 0;
}

.home-request-sentence {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 4px;
}

.home-request-name {
    color: #4da44b;
    font-weight: 700;
}

.home-request-status {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
}

/* "What Wakasm Wants To Do Next" pill — green to match the page accent
   and distinguish from per-game request status pills. Wraps the same shell
   as request cards so the grid layout stays uniform. */
.home-request-status--idea {
    background: #4da44b;
    color: #fff;
}

.home-request-question {
    font-style: italic;
    color: #aaa;
    font-size: 0.85rem;
    border-left: 2px solid #4da44b;
    padding-left: 8px;
    margin-top: 4px;
}

.home-request-desc {
    color: #999;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ===========================================================
   "What Wakasm Wants To Do Next" block

   Sits between the request feed and the CTA row. Cards themselves come
   from assets/css/components/idea-card.css (shared with the ideas page);
   everything here is only the sub-section frame around them.
   =========================================================== */
.home-ideas-block {
    position: relative;
    isolation: isolate;
    margin: 48px 0 36px;
    padding: 0 0 24px;
    background: transparent;
    color: #e0e0e0;
}

/* A loose rule behind the pasted heading, independent of content height. */
.home-ideas-block::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 28px;
    width: calc(100% + 24px);
    height: 2px;
    background: #6c765d;
    pointer-events: none;
    transform: rotate(-1deg);
    z-index: -1;
}

.home-ideas-header {
    text-align: left;
    margin-bottom: 38px;
}

.home-ideas-title {
    display: inline-block;
    max-width: 100%;
    padding: 10px 22px 12px;
    background: #edcc55;
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    font-weight: 900;
    color: #151b11;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
    transform: rotate(-1.5deg);
    box-shadow: 5px 5px 0 #080b07;
}

.home-ideas-subtitle {
    color: #b5b5b5;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .home-ideas-title { font-size: 1.25rem; }
}

.home-requests-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.home-requests-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 0;
    box-shadow: 3px 3px 0 #222;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #4da44b;
    color: #4da44b !important;
    transition: background 0.2s;
}

.home-requests-btn:hover {
    background: rgba(77, 164, 75, 0.1);
    color: #4da44b !important;
}

.home-requests-btn-patreon {
    background: #ff424d;
    border-color: #ff424d;
    color: #fff !important;
}

.home-requests-btn-patreon:hover {
    background: #e03740;
    color: #fff !important;
}

.home-requests-btn-kofi {
    background: #1b7fb0;
    border-color: #1b7fb0;
    color: #fff !important;
}

.home-requests-btn-kofi:hover {
    background: #166a93;
    color: #fff !important;
}

.home-requests-btn-ideas {
    background: #f4c542;
    border-color: #f4c542;
    color: #1a1a1a !important;
}

.home-requests-btn-ideas:hover {
    background: #e0b330;
    color: #1a1a1a !important;
}

.home-requests-catalog-link {
    margin: 16px 0 0;
    text-align: left;
    font-size: 0.9rem;
    color: #aaa;
}

.home-requests-catalog-link a {
    color: #4da44b;
    text-decoration: none;
}

.home-requests-catalog-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* The base mobile sheet resets every section to zero side padding. */
    .home-community-requests { padding: 40px 22px !important; }
    .home-requests-grid {
        grid-template-columns: 1fr;
    }
    .home-community-requests .home-section-title {
        font-size: 1.8rem;
    }
}


/* Community Requests: the live activity ticker. The list is printed twice,
   so sliding it left by half loops without a jump. Hover pauses it. */
.home-feed {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 8px 12px;
    background: #172014;
    border-radius: 0;
    border-block: 1px solid #4da44b;
    border-left: 6px solid #4da44b;
    overflow: hidden;
}

.home-feed-live {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 0;
    background: #1a1a1a;
    color: #4da44b;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-feed-live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4da44b;
    animation: home-feed-pulse 1.4s ease-out infinite;
}

@keyframes home-feed-pulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 164, 75, 0.7); }
    100% { box-shadow: 0 0 0 9px rgba(77, 164, 75, 0); }
}

.home-feed-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.home-feed-track {
    display: flex;
    gap: 28px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: home-feed-scroll 90s linear infinite;
}

.home-feed:hover .home-feed-track { animation-play-state: paused; }

@keyframes home-feed-scroll {
    to { transform: translateX(-50%); }
}

.home-feed-track li { margin: 0; white-space: nowrap; }

.home-feed-track a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.9rem;
    text-decoration: none;
}

.home-feed-track a:hover { color: #fff; }
.home-feed-track b { color: #4da44b; }
.home-feed-track strong { color: #e0e0e0; }
.home-feed-track time { color: #777; font-size: 0.78rem; }

@media (prefers-reduced-motion: reduce) {
    .home-feed-window { overflow-x: auto; }
    .home-feed-track, .home-feed-live::before { animation: none; }
}

.home-feed-avatar { display: inline-flex; width: 24px; height: 24px; flex: none; }
.home-feed-avatar img { image-rendering: pixelated; }
