/* ==========================================================================
   EMU JAPAN - COMMUNITY SECTION (2-COLUMN EDITORIAL)
   ========================================================================== */


/* Outer Section Background */

.community-section {
    background-color: var(--emu-bg-surface);
}


/* Base Container Width */

.container-emu {
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
}


/* Card Outer Layer (Diubah ke Putih) */

.community-card {
    background-color: var(--emu-bg-white) !important;
    border: 1px solid var(--emu-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}


/* Typography Scale & Hierarchy */

.community-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--emu-primary);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.community-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--emu-text-dark);
}

.community-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 440px;
    color: var(--emu-text-muted);
}

.extra-small {
    font-size: 0.775rem;
}

.micro-text {
    font-size: 0.7rem;
}


/* Kanji Transparan Dekoratif */

.community-bg-kanji {
    position: absolute;
    right: -10px;
    bottom: -25px;
    font-size: 11rem;
    font-weight: 900;
    color: var(--emu-text-dark);
    opacity: 0.025;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}


/* CTA Button */

.btn-emu-primary {
    background-color: var(--emu-primary);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 100px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-emu-primary:hover {
    background-color: var(--emu-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(157, 11, 3, 0.22);
}

.item-arrow {
    transition: transform 0.2s ease;
}

.btn-emu-primary:hover .item-arrow {
    transform: translateX(3px);
}


/* Inline Benefit Features */

.benefit-item {
    flex: 1 1 120px;
}

.benefit-title {
    font-size: 0.8rem;
    color: var(--emu-text-dark);
}

.benefit-desc {
    font-size: 0.725rem;
    color: var(--emu-text-muted);
}


/* Chat Mockup Window (Hero Visual Kanan) */

.chat-mockup-window {
    background-color: var(--emu-bg-white);
    border: 1px solid var(--emu-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.chat-group-name {
    font-size: 0.825rem;
    color: var(--emu-text-dark);
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.chat-mockup-body {
    min-height: 240px;
    position: relative;
    background-color: #f8fafc;
    /* Kontras lembut di dalam mockup chat */
}

.chat-slides-wrapper {
    position: relative;
    min-height: 220px;
}


/* Animation Slide (Transition) */

.chat-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
}

.chat-slide.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


/* Chat Bubbles Style */

.chat-bubble {
    padding: 7px 12px;
    border-radius: 10px;
    max-width: 82%;
    width: fit-content;
}

.chat-bubble.chat-left {
    background-color: var(--emu-bg-white);
    border: 1px solid var(--emu-border);
    align-self: flex-start;
}

.chat-bubble.chat-left.chat-emu {
    background-color: rgba(157, 11, 3, 0.04);
    border-color: rgba(157, 11, 3, 0.15);
}

.chat-bubble.chat-right {
    background-color: #e2e8f0;
    align-self: flex-end;
    margin-left: auto;
}

.chat-sender {
    font-size: 0.65rem;
    color: var(--emu-text-muted);
    display: block;
    margin-bottom: 2px;
}

.chat-text {
    font-size: 0.775rem;
    color: var(--emu-text-dark);
    line-height: 1.35;
}


/* Responsive Rules */

@media (max-width: 991.98px) {
    .community-subtitle {
        max-width: 100%;
    }
    .community-bg-kanji {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .community-card {
        padding: 1.25rem !important;
    }
    .chat-bubble {
        max-width: 90%;
    }
}