/* ==========================================================================
   Fasih Konuşma Grupları (ArabicSpeaking/ConversationGroups). Önek: .akg-
   ========================================================================== */

/* ------------------------------ 1. MANİFESTO + CANLI ODA ------------------------------ */
.akg-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.akg-manifesto {
    margin: 0 0 28px;
    color: var(--ak-plum-950);
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.akg-manifesto > span { display: block; }
.akg-manifesto__em { margin-top: .12em; color: var(--ak-plum-500); letter-spacing: -.015em; }
html[dir="rtl"] .akg-manifesto { letter-spacing: 0; line-height: 1.35; }
.akg-intro__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.akg-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.akg-room {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 4 / 4.5;
    border-radius: 50% 50% 28px 28px / 34% 34% 28px 28px;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(238, 215, 21, .16), transparent 60%),
        linear-gradient(180deg, #7a2d63 0%, #5a1f4b 55%, #43163a 100%);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 50px 90px -50px rgba(31, 10, 24, .8);
}
.akg-room::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    border: 1px solid rgba(238, 215, 21, .22);
    pointer-events: none;
}
.akg-room__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--ak-mashrabiya);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
    mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.akg-room__live {
    position: absolute;
    top: 15%;
    inset-inline: 0;
    width: fit-content;
    margin-inline: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--ak-radius-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .9);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.akg-room__dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d7d; box-shadow: 0 0 0 3px rgba(255, 77, 125, .22); }
.akg-room__grid {
    position: absolute;
    top: 27%;
    inset-inline: 9%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.akg-room__tile {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.akg-room__avatar {
    width: 52%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ak-plum-400);
    color: #fff;
    font-family: var(--ak-font-naskh);
    font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
}
.akg-room__tile:nth-child(2) .akg-room__avatar { background: var(--ak-sand); }
.akg-room__tile:nth-child(3) .akg-room__avatar { background: var(--ak-olive); }
.akg-room__tile:nth-child(4) .akg-room__avatar { background: var(--ak-terracotta); }
.akg-room__tile:nth-child(5) .akg-room__avatar { background: var(--ak-navy); }
.akg-room__tile:nth-child(6) .akg-room__avatar { background: var(--ak-plum-600); }
.akg-room__tile.is-host .akg-room__avatar { background: var(--ak-sun); color: var(--ak-plum-950); }
.akg-room__tag {
    position: absolute;
    bottom: 8%;
    padding: 1px 8px;
    border-radius: var(--ak-radius-pill);
    background: var(--ak-sun);
    color: var(--ak-plum-950);
    font-size: .6875rem;
    line-height: 1.5;
}
.akg-room__tile.is-speaking { border-color: rgba(238, 215, 21, .55); background: rgba(238, 215, 21, .08); }
.akg-room__tile.is-speaking .akg-room__avatar { box-shadow: 0 0 0 4px rgba(238, 215, 21, .35); }
.akg-room__wave { position: absolute; bottom: 9%; display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.akg-room__wave i { display: block; width: 3px; height: 50%; border-radius: 3px; background: var(--ak-sun); }
.akg-room__bubble {
    position: absolute;
    bottom: 8%;
    right: 9%;
    padding: 9px 16px;
    border-radius: 18px 18px 6px 18px;
    background: var(--ak-sun);
    color: var(--ak-plum-950);
    font-family: var(--ak-font-ar);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
html[dir="rtl"] .akg-room__bubble { right: auto; left: 9%; border-radius: 18px 18px 18px 6px; }
@media (prefers-reduced-motion: no-preference) {
    .akg-room__dot { animation: akg-pulse 1.6s ease-in-out infinite !important; }
    .akg-room__wave i { animation: akg-wave 1s ease-in-out infinite !important; animation-delay: calc(var(--b) * -140ms) !important; }
    .akg-room__tile.is-speaking .akg-room__avatar { animation: akg-ring 2.4s ease-in-out infinite !important; }
}
@keyframes akg-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 77, 125, .22); } 50% { box-shadow: 0 0 0 6px rgba(255, 77, 125, .06); } }
@keyframes akg-wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.6); } }
@keyframes akg-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(238, 215, 21, .35); } 50% { box-shadow: 0 0 0 9px rgba(238, 215, 21, .1); } }

/* ------------------------------ 2. ÜÇ BOYUT ------------------------------ */
.akg-dims {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 28px);
}
.akg-dims::before {
    content: "";
    position: absolute;
    top: 56px;
    inset-inline: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ak-plum-200) 0 8px, transparent 8px 15px);
}
.akg-dim {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 26px 26px;
    border-radius: 26px;
    background: var(--ak-bg);
    border: 1px solid var(--ak-line);
}
.akg-dim__head { display: flex; align-items: center; gap: 14px; }
.akg-dim__star { --_s: 58px; font-size: 1.5rem; }
.akg-dim__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ak-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.akg-dim__label i { color: var(--ak-plum-400); }
.akg-dim__title { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.akg-dim__sub {
    margin: 2px 0 0;
    font-family: 'Instrument Serif', var(--ak-font-naskh), Georgia, serif;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--ak-plum-500);
}
.akg-dim__desc { margin: 0; color: var(--ak-ink-2); line-height: 1.7; }
.akg-dim__effect {
    margin: auto 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--ak-sun-50);
    border: 1px solid var(--ak-sun-100);
    color: var(--ak-plum-900);
    font-size: .9375rem;
    line-height: 1.6;
}
.akg-dim__effect strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--ak-plum-700);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.akg-dim--3 { background: var(--ak-plum-950); border-color: transparent; color: #fff; isolation: isolate; overflow: hidden; }
.akg-dim--3::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--ak-mashrabiya);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 100% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 90% 60% at 100% 0%, #000, transparent 70%);
}
.akg-dim--3 .akg-dim__title { color: #fff; }
.akg-dim--3 .akg-dim__label { color: rgba(255, 255, 255, .6); }
.akg-dim--3 .akg-dim__label i { color: var(--ak-sun); }
.akg-dim--3 .akg-dim__sub { color: var(--ak-sand); }
.akg-dim--3 .akg-dim__desc { color: rgba(255, 255, 255, .78); }
.akg-dim--3 .akg-dim__effect { background: rgba(238, 215, 21, .1); border-color: rgba(238, 215, 21, .3); color: #fff; }
.akg-dim--3 .akg-dim__effect strong { color: var(--ak-sun); }

.akg-materials {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 860px;
    margin: clamp(28px, 3vw, 40px) auto 0;
    padding: 14px 22px 14px 14px;
    border-radius: 22px;
    background: var(--ak-plum-25);
    border: 1px solid var(--ak-plum-100);
    color: var(--ak-ink-2);
    line-height: 1.6;
}
html[dir="rtl"] .akg-materials { padding: 14px 14px 14px 22px; }
.akg-materials__icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ak-plum-600);
    color: #fff;
}

/* ------------------------------ 3. OTURUM ÖZELLİKLERİ ------------------------------ */
.akg-features { background: var(--ak-plum-950); }
.akg-features__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}
.akg-features .ak-lead { color: rgba(255, 255, 255, .72); }
.akg-features__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.akg-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px 14px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}
html[dir="rtl"] .akg-feature { padding: 14px 14px 14px 20px; }
.akg-feature__icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ak-sun);
    color: var(--ak-plum-950);
}
.akg-feature__text { flex: 1; color: #fff; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.akg-feature__num { font-family: var(--ak-font-kufi); font-size: 1.375rem; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .28); }

/* ------------------------------ 4. SEVİYE MERDİVENİ ------------------------------ */
.akg-stairs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}
.akg-step {
    --c: var(--ak-plum-300);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(300px + var(--n) * 44px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px 26px;
    border-radius: 24px;
    background: var(--ak-surface);
    border: 1px solid var(--ak-line);
    border-top: 5px solid var(--c);
}
.akg-step:nth-child(2) { --c: var(--ak-plum-500); }
.akg-step:nth-child(3) { --c: var(--ak-plum-700); }
.akg-step:nth-child(4) { --c: var(--ak-sun); background: var(--ak-plum-950); border-color: transparent; border-top-color: var(--ak-sun); color: #fff; }
.akg-step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.akg-step__code { font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--ak-plum-800); }
.akg-step:nth-child(4) .akg-step__code { color: var(--ak-sun); }
.akg-step__meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.akg-step__meter i { display: block; width: 5px; border-radius: 3px; background: var(--ak-line-strong); }
.akg-step__meter i:nth-child(1) { height: 25%; }
.akg-step__meter i:nth-child(2) { height: 50%; }
.akg-step__meter i:nth-child(3) { height: 75%; }
.akg-step__meter i:nth-child(4) { height: 100%; }
.akg-step__meter i.is-on { background: var(--c); }
.akg-step:nth-child(4) .akg-step__meter i { background: rgba(255, 255, 255, .2); }
.akg-step:nth-child(4) .akg-step__meter i.is-on { background: var(--ak-sun); }
.akg-step__badge {
    width: fit-content;
    padding: 4px 10px;
    border-radius: var(--ak-radius-pill);
    background: var(--ak-plum-50);
    color: var(--ak-plum-700);
    font-size: .75rem;
    font-weight: 700;
}
.akg-step:nth-child(4) .akg-step__badge { background: rgba(238, 215, 21, .14); color: var(--ak-sun); }
.akg-step__name { margin: 4px 0 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; color: inherit; }
.akg-step:nth-child(4) .akg-step__name { color: #fff; }
.akg-step__desc { margin: 0; color: var(--ak-muted); font-size: .9375rem; line-height: 1.65; }
.akg-step:nth-child(4) .akg-step__desc { color: rgba(255, 255, 255, .74); }
.akg-step__ar {
    position: absolute;
    z-index: -1;
    inset-inline-end: 14px;
    bottom: -.3em;
    font-family: var(--ak-font-kufi);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(138, 53, 106, .07);
}
.akg-step:nth-child(4) .akg-step__ar { color: rgba(238, 215, 21, .1); }

.akg-levels__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 28px 0 0;
}
.akg-levels__a1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: var(--ak-radius-pill);
    border: 1.5px dashed var(--ak-line-strong);
    color: var(--ak-ink-2);
    font-size: .9375rem;
    font-weight: 600;
}
.akg-levels__a1 b { color: var(--ak-plum-700); font-weight: 800; }
.akg-levels__to { color: var(--ak-plum-300); }
.akg-levels__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 18px;
    border-radius: var(--ak-radius-pill);
    background: var(--ak-plum-50);
    color: var(--ak-plum-700);
    font-weight: 700;
    text-decoration: none;
}
.akg-levels__link:hover { background: var(--ak-plum-100); color: var(--ak-plum-800); }

.akg-cta__bulb { color: var(--ak-plum-600); margin-inline-end: 4px; }

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 991.98px) {
    .akg-intro__grid { grid-template-columns: minmax(0, 1fr); }
    .akg-room { max-width: 420px; }
    .akg-dims { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
    .akg-dims::before {
        top: 40px;
        bottom: 40px;
        inset-inline: auto;
        inset-inline-start: 54px;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--ak-plum-200) 0 8px, transparent 8px 15px);
    }
    .akg-features__grid { grid-template-columns: minmax(0, 1fr); }
    .akg-stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .akg-step { min-height: 0; }
}

@media (max-width: 767.98px) {
    .akg-manifesto { font-size: clamp(1.875rem, 8.4vw, 2.375rem); }
    .akg-intro__actions { flex-direction: column; }
    .akg-intro__actions .ak-btn { width: 100%; min-height: 52px; white-space: normal; }
    .akg-room { max-width: 360px; }
    .akg-room__grid { gap: 8px; inset-inline: 8%; }
    .akg-room__tile { border-radius: 14px; }
    .akg-room__live { font-size: .6875rem; }
    .akg-room__bubble { font-size: 1rem; padding: 7px 14px; }

    .akg-dims::before { display: none; }
    .akg-dim { padding: 22px 20px; border-radius: 22px; }
    .akg-dim__star { --_s: 52px; font-size: 1.375rem; }
    .akg-dim__title { font-size: 1.3125rem; }
    .akg-materials { align-items: flex-start; padding: 14px; }

    .akg-feature { padding: 12px 16px 12px 12px; gap: 14px; }
    html[dir="rtl"] .akg-feature { padding: 12px 12px 12px 16px; }
    .akg-feature__icon { width: 44px; height: 44px; }
    .akg-feature__text { font-size: 1rem; }

    .akg-stairs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .akg-step { padding: 20px; }
    .akg-levels__note { flex-direction: column; align-items: stretch; }
    .akg-levels__to { display: none; }
    .akg-levels__a1, .akg-levels__link { justify-content: center; }
}
