/**
 * Landing v3 — community showcase
 * Used by resources/views/landing/v3/components/community-showcase.blade.php
 */

.landing-community {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e293b 78%, #1a2e05 100%);
}

/* Subtle wallpaper — silhouette (wallpaper-2) */
.cs-wallpaper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cs-wallpaper-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 35%;
    opacity: 0.42;
    filter: grayscale(100%) contrast(1.2) brightness(0.5) saturate(0);
}

.cs-wallpaper-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.72) 0%,
        rgba(15, 23, 42, 0.68) 45%,
        rgba(30, 41, 59, 0.62) 78%,
        rgba(26, 46, 5, 0.7) 100%
    );
}

.landing-community .cs-neon-top,
.landing-community .cs-neon-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(132, 204, 22, 0.4) 20%,
        rgba(196, 229, 56, 0.7) 50%,
        rgba(132, 204, 22, 0.4) 80%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(196, 229, 56, 0.5), 0 0 20px rgba(132, 204, 22, 0.2);
}

.landing-community .cs-neon-top {
    top: 0;
}

.landing-community .cs-neon-bottom {
    bottom: 0;
}

.landing-community .cs-glow {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.landing-community .cs-glow-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: 12%;
    background: rgba(132, 204, 22, 0.1);
}

.landing-community .cs-glow-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 6%;
    background: rgba(132, 204, 22, 0.06);
}

.landing-community .cs-glass {
    position: relative;
    z-index: 2;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.landing-community .cs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.landing-community .cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b7d84b;
    margin-bottom: 0.4rem;
}

.landing-community .cs-eyebrow iconify-icon {
    color: #84cc16;
}

.landing-community .cs-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.landing-community .cs-title-before {
    color: #fff;
}

.landing-community .cs-title-highlight {
    color: #c4e538;
}

.landing-community .cs-title-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
    color: #84cc16;
    vertical-align: middle;
    transform: translateY(0.08em);
}

.landing-community .cs-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.35rem;
    max-width: 36rem;
}

.landing-community .cs-header-main {
    min-width: 0;
}

.landing-community .cs-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.landing-community .cs-stat iconify-icon {
    color: #fb923c;
}

.landing-community .cs-page {
    display: none;
}

.landing-community .cs-page.is-active {
    display: block;
    animation: cs-fade-in 0.45s ease;
}

@keyframes cs-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-community .cs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .landing-community .cs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .landing-community .cs-grid {
        gap: 2rem 1.5rem;
    }
}

.landing-community .cs-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.landing-community .cs-avatar {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 9999px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a2e05 0%, #1e293b 100%);
    border: 3px solid rgba(132, 204, 22, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(132, 204, 22, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-community .cs-player:hover .cs-avatar {
    transform: scale(1.04);
    border-color: rgba(196, 229, 56, 0.55);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(132, 204, 22, 0.22);
}

.landing-community .cs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-community .cs-avatar-initial {
    color: #c4e538;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}

.landing-community .cs-live-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid #0f172a;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: cs-live-pulse 2s ease-in-out infinite;
}

@keyframes cs-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.15);
    }
}

.landing-community .cs-name {
    margin: 0.85rem 0 0;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-community .cs-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(132, 204, 22, 0.1);
    border: 1px solid rgba(132, 204, 22, 0.25);
    font-size: 0.8125rem;
    font-weight: 800;
    color: #c4e538;
    font-variant-numeric: tabular-nums;
}

.landing-community .cs-rating iconify-icon {
    color: #eab308;
}

.landing-community .cs-rating--muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.landing-community .cs-rating--muted iconify-icon {
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 640px) {
    .landing-community .cs-avatar {
        width: 7.5rem;
        height: 7.5rem;
    }

    .landing-community .cs-avatar-initial {
        font-size: 2.25rem;
    }

    .landing-community .cs-name {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .landing-community .cs-avatar {
        width: 9rem;
        height: 9rem;
    }

    .landing-community .cs-avatar-initial {
        font-size: 2.75rem;
    }

    .landing-community .cs-name {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

.landing-community .cs-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.landing-community .cs-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.landing-community .cs-dot.is-active {
    width: 1.5rem;
    background: #b7d84b;
    box-shadow: 0 0 8px rgba(183, 216, 75, 0.4);
}

.landing-community .cs-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.landing-community .cs-empty iconify-icon {
    color: rgba(255, 255, 255, 0.12);
}

.landing-community .cs-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
}

.landing-community .cs-empty p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

/* Tablet / mobile — inset glass panel, centered badge & title, symmetric player grid */
@media (max-width: 1023px) {
    .landing-community .cs-glass {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 1.35rem 1rem 1.5rem;
    }

    .landing-community .cs-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .landing-community .cs-header-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }

    .landing-community .cs-community-badge {
        order: -1;
        align-self: center;
        margin-bottom: 0;
    }

    .landing-community .cs-title {
        justify-content: center;
    }

    .landing-community .cs-subtitle {
        max-width: 100%;
    }

    .landing-community .cs-stats {
        align-self: center;
    }

    .landing-community .cs-grid {
        gap: 1.25rem 0.75rem;
    }

    .landing-community .cs-player {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .landing-community .cs-glass {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .landing-community .cs-header-main {
        display: block;
        text-align: left;
    }

    .landing-community .cs-community-badge {
        order: 0;
    }

    .landing-community .cs-title {
        justify-content: flex-start;
    }
}
