/* ============================================
   Code Editor — koyu uzay mavisi (premium cam)
   ============================================ */

/* Modern Kod Tipi Etiketi - Block Tasarım */
.code-type-label {
    display: block;
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(155deg, #142238 0%, #0e1a2e 50%, #081018 100%);
    border: 1px solid rgba(56, 139, 253, 0.1);
    border-radius: 14px;
    box-shadow:
        0 12px 40px rgba(0, 8, 24, 0.55),
        0 0 32px rgba(30, 64, 120, 0.12),
        inset 0 1px 0 rgba(120, 180, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.code-type-label:hover {
    border-color: rgba(49, 130, 206, 0.28);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(49, 130, 206, 0.08);
}

.code-type-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.6), rgba(100, 116, 139, 0.5));
    border-radius: 12px 0 0 12px;
}

.code-type-label-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.code-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.15) 0%,
            rgba(100, 116, 139, 0.12) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.08);
}

.code-type-label:hover .code-type-icon {
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.22) 0%,
            rgba(100, 116, 139, 0.18) 100%);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.15);
}

.code-type-attribute {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #cbd5e1;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.code-type-description {
    color: #e2e8f0;
    font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.code-type-label:hover .code-type-description {
    color: #f1f5f9;
}

/* İkinci satır: kod örneği öncesi kısa açıklama (isteğe bağlı) */
.code-type-label--with-hint .code-type-label-content {
    align-items: flex-start;
}

.code-type-label-text-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.code-type-label-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    font-weight: 400;
    color: #94a3b8;
}

.code-type-label--with-hint:hover .code-type-label-hint {
    color: #a8b9cf;
}

/* Code type label içindeki tag highlight için özel stil */
.code-type-label .tag-highlight {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.08);
}

.code-type-label:hover .tag-highlight {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f1f5f9;
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.15);
}

.code-type-description .lang-badge-wrapper {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Code type description içindeki dil iconları */
.code-type-description .lang-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    font-size: 0.95rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.code-type-description .lang-icon i {
    font-size: 1.3rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.code-type-description .lang-icon .lang-separator {
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 0.1rem;
    transition: color 0.3s ease;
}

.code-type-description .lang-icon i.fa-html5 {
    color: #e34c26;
    filter: drop-shadow(0 2px 6px rgba(227, 76, 38, 0.4));
}

.code-type-description .lang-icon i.fa-css3-alt {
    color: #264de4;
    filter: drop-shadow(0 2px 6px rgba(38, 77, 228, 0.4));
}

.code-type-description .lang-icon i.fa-js,
.code-type-description .lang-icon i.fab.fa-js {
    color: #f7df1e;
    filter: drop-shadow(0 2px 6px rgba(247, 223, 30, 0.4));
}

.code-type-label:hover .code-type-description .lang-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.code-type-label:hover .code-type-description .lang-icon i {
    opacity: 1;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.code-type-label:hover .code-type-description .lang-icon i.fa-html5 {
    filter: drop-shadow(0 3px 10px rgba(227, 76, 38, 0.6));
}

.code-type-label:hover .code-type-description .lang-icon i.fa-css3-alt {
    filter: drop-shadow(0 3px 10px rgba(38, 77, 228, 0.6));
}

.code-type-label:hover .code-type-description .lang-icon i.fa-js,
.code-type-label:hover .code-type-description .lang-icon i.fab.fa-js {
    filter: drop-shadow(0 3px 10px rgba(247, 223, 30, 0.6));
}

.code-type-label:hover .code-type-description .lang-icon .lang-separator {
    color: rgba(226, 232, 240, 0.7);
}

/* Genel Code Editor — uzay mavisi cam kabuk */
.code-editor {
    position: relative;
    background: linear-gradient(165deg, #132337 0%, #0c1628 42%, #070f1c 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(56, 139, 253, 0.14);
    margin-bottom: var(--spacing-xl);
    z-index: 1;
    box-shadow:
        0 24px 64px rgba(0, 4, 18, 0.75),
        0 0 48px rgba(20, 60, 120, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.45) inset,
        inset 0 1px 0 rgba(130, 190, 255, 0.07);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
}

/* Üst şerit — sekme bandı (bir ton daha açık uzay mavisi) */
.editor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0 1rem;
    min-height: 3.25rem;
    background: linear-gradient(180deg, #162a42 0%, #101f33 55%, #0c1828 100%);
    border-bottom: 1px solid rgba(56, 139, 253, 0.1);
    position: relative;
    overflow: visible;
    z-index: 10;
}

.editor-tabs {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 0;
}

/* Sekmeler — aktif panel ile aynı yüzey (#0b121f), mavi alt çizgi */
.editor-tab {
    padding: 0.5rem 1rem 0.65rem;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    color: rgba(240, 246, 252, 0.45);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-mono), ui-monospace, monospace;
    letter-spacing: 0.01em;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
}

.editor-tab:hover {
    color: rgba(240, 246, 252, 0.9);
    background: rgba(56, 139, 253, 0.08);
    transform: none;
}

.editor-tab.active {
    color: #f0f6fc;
    background: linear-gradient(180deg, #0c1828 0%, #081220 100%);
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(120, 180, 255, 0.06),
        0 -1px 0 rgba(56, 139, 253, 0.28);
}

.editor-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, #388bfd 0%, #58a6ff 50%, #388bfd 100%);
    box-shadow: 0 0 16px rgba(88, 166, 255, 0.65), 0 0 28px rgba(56, 139, 253, 0.35);
}

.editor-tab i {
    font-size: 0.95rem;
    opacity: 0.85;
    color: rgba(240, 246, 252, 0.5);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.editor-tab:hover i {
    color: rgba(240, 246, 252, 0.75);
}

.editor-tab.active i {
    opacity: 1;
    color: #79c0ff;
}

/* Eski js/html/css sekme varyantlarını tek çerçevede tut (özgül kurallar gerekmez) */
.editor-tab[data-target^="js-pane"] i,
.editor-tab[data-target^="html-pane"] i,
.editor-tab[data-target^="css-pane"] i {
    color: inherit;
}

.editor-tab.active[data-target^="js-pane"] i,
.editor-tab.active[data-target^="html-pane"] i,
.editor-tab.active[data-target^="css-pane"] i {
    color: #79c0ff;
}

/* Level Indicator */
/* Eski editor-level-indicator stili kaldırıldı - Yeni stil aşağıda */

.editor-level-indicator.level-beginner span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

/* Kopyala — kompakt, yuvarlatılmış koyu kontrol */
.editor-copy-btn {
    background: rgba(8, 20, 38, 0.92);
    border: 1px solid rgba(56, 139, 253, 0.14);
    color: rgba(240, 246, 252, 0.55);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    position: relative;
}

.editor-copy-btn:hover,
.editor-copy-btn:focus {
    background: rgba(14, 32, 56, 0.96);
    border-color: rgba(88, 166, 255, 0.5);
    color: #79c0ff;
    box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.22), 0 0 20px rgba(56, 139, 253, 0.12);
    transform: none;
}

.editor-copy-btn:focus-visible {
    outline: 2px solid rgba(49, 130, 206, 0.6);
    outline-offset: 2px;
}

.editor-copy-btn:active {
    transform: scale(0.96);
}

.editor-copy-btn.copied {
    background: rgba(35, 134, 54, 0.2);
    border-color: rgba(63, 185, 80, 0.45);
    color: #3fb950;
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.2);
}

.editor-copy-btn.copy-error {
    background: rgba(248, 81, 73, 0.12);
    border-color: rgba(248, 81, 73, 0.4);
    color: #f85149;
    box-shadow: 0 0 12px rgba(248, 81, 73, 0.15);
}

/* ============================================
   Editor Level Indicator - Seviye Göstergesi
   ============================================ */
.editor-level-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
}

/* ============================================
   ByteOmi Editor Yönlendirme Butonu
   ============================================ */
.byteomi-editor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.08) 0%, rgba(196, 181, 253, 0.08) 100%);
    border: 1px solid rgba(124, 156, 255, 0.25);
    border-radius: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

.byteomi-link-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.byteomi-link-icon {
    font-size: 0.9375rem;
    transition: transform 0.3s ease;
}

.byteomi-link-text {
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Shimmer efekti */
.byteomi-link-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
}

.byteomi-editor-link:hover {
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.12) 0%, rgba(196, 181, 253, 0.12) 100%);
    border-color: rgba(124, 156, 255, 0.35);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.byteomi-editor-link:hover .byteomi-link-icon {
    transform: scale(1.1);
}

.byteomi-editor-link:hover .byteomi-link-shimmer {
    left: 100%;
}

.byteomi-editor-link:active {
    transform: translateY(0);
}

/* Editör başlığı içi: Byteomi + seviye göstergesi koyu şeride uyum */
.editor-header .byteomi-editor-link {
    background: rgba(49, 130, 206, 0.1);
    border-color: rgba(49, 130, 206, 0.28);
    color: #79c0ff;
}

.editor-header .byteomi-editor-link:hover {
    background: rgba(49, 130, 206, 0.18);
    border-color: rgba(49, 130, 206, 0.4);
    color: #a5d6ff;
}

.editor-header .editor-level-indicator {
    align-self: center;
    background: rgba(6, 18, 36, 0.92);
    border-color: rgba(56, 139, 253, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.editor-header .editor-copy-btn {
    align-self: center;
}

.editor-header .editor-level-indicator.level-beginner:hover,
.editor-header .editor-level-indicator.level-intermediate:hover,
.editor-header .editor-level-indicator.level-advanced:hover,
.editor-header .editor-level-indicator.level-expert:hover {
    background: rgba(12, 32, 58, 0.95);
}

/* Tüm seviyeler için ortak stil - Sadece beginner için özel */

/* Başlangıç Seviyesi - Dairesel Progress Ring */
.editor-level-indicator.level-beginner {
    border-color: rgba(16, 185, 129, 0.3);
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.editor-level-indicator.level-beginner>span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    box-shadow: none;
}

/* Dairesel progress ring - SVG */
.editor-level-indicator.level-beginner .progress-ring {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.editor-level-indicator.level-beginner .progress-ring circle {
    fill: none;
    stroke-width: 2.5;
    r: 10;
    cx: 12;
    cy: 12;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-level-indicator.level-beginner .progress-ring .bg-circle {
    stroke: rgba(16, 185, 129, 0.15);
}

.editor-level-indicator.level-beginner .progress-ring .progress-circle {
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 47.12;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
    animation: beginnerPulse 2s ease-in-out infinite;
}

.editor-level-indicator.level-beginner:hover {
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.editor-level-indicator.level-beginner:hover .progress-ring .progress-circle {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: beginnerPulseHover 1.5s ease-in-out infinite;
}

@keyframes beginnerPulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
    }

    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
    }
}

.editor-level-indicator.level-beginner:hover .progress-ring .progress-circle {
    animation: beginnerPulseHover 1.5s ease-in-out infinite;
}

@keyframes beginnerPulseHover {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
    }

    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
    }
}

/* Orta Seviye - Dairesel Progress Ring (%50 dolu) */
.editor-level-indicator.level-intermediate {
    border-color: rgba(59, 130, 246, 0.3);
    background: transparent;
}

.editor-level-indicator.level-intermediate>span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.editor-level-indicator.level-intermediate .progress-ring {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.editor-level-indicator.level-intermediate .progress-ring circle {
    fill: none;
    stroke-width: 2.5;
    r: 10;
    cx: 12;
    cy: 12;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-level-indicator.level-intermediate .progress-ring .bg-circle {
    stroke: rgba(59, 130, 246, 0.15);
}

.editor-level-indicator.level-intermediate .progress-ring .progress-circle {
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 31.415;
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4));
    animation: intermediatePulse 2s ease-in-out infinite;
}

.editor-level-indicator.level-intermediate:hover {
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}

.editor-level-indicator.level-intermediate:hover .progress-ring .progress-circle {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: intermediatePulseHover 1.5s ease-in-out infinite;
}

@keyframes intermediatePulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4));
    }

    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
    }
}

@keyframes intermediatePulseHover {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
    }

    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.6));
    }
}

/* İleri Seviye - Dairesel Progress Ring (%75 dolu) */
.editor-level-indicator.level-advanced {
    border-color: rgba(245, 158, 11, 0.3);
    background: transparent;
}

.editor-level-indicator.level-advanced>span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.editor-level-indicator.level-advanced .progress-ring {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.editor-level-indicator.level-advanced .progress-ring circle {
    fill: none;
    stroke-width: 2.5;
    r: 10;
    cx: 12;
    cy: 12;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-level-indicator.level-advanced .progress-ring .bg-circle {
    stroke: rgba(245, 158, 11, 0.15);
}

.editor-level-indicator.level-advanced .progress-ring .progress-circle {
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 15.7075;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
    animation: advancedPulse 2s ease-in-out infinite;
}

.editor-level-indicator.level-advanced:hover {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.editor-level-indicator.level-advanced:hover .progress-ring .progress-circle {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.5));
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: advancedPulseHover 1.5s ease-in-out infinite;
}

@keyframes advancedPulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
    }

    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
    }
}

@keyframes advancedPulseHover {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.5));
    }

    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6));
    }
}

/* Uzman Seviye - Dairesel Progress Ring (%100 dolu) */
.editor-level-indicator.level-expert {
    border-color: rgba(239, 68, 68, 0.3);
    background: transparent;
}

.editor-level-indicator.level-expert>span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.editor-level-indicator.level-expert .progress-ring {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.editor-level-indicator.level-expert .progress-ring circle {
    fill: none;
    stroke-width: 2.5;
    r: 10;
    cx: 12;
    cy: 12;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-level-indicator.level-expert .progress-ring .bg-circle {
    stroke: rgba(239, 68, 68, 0.15);
}

.editor-level-indicator.level-expert .progress-ring .progress-circle {
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4));
    animation: expertPulse 2s ease-in-out infinite;
}

.editor-level-indicator.level-expert:hover {
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.12);
}

.editor-level-indicator.level-expert:hover .progress-ring .progress-circle {
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.5));
    animation: expertPulseHover 1.5s ease-in-out infinite;
}

@keyframes expertPulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4));
    }

    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
    }
}

@keyframes expertPulseHover {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.5));
    }

    50% {
        opacity: 0.95;
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
    }
}

.editor-copy-btn i {
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-copy-btn.copied i {
    animation: pulse-success 0.6s ease;
}

@keyframes pulse-success {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Kod alanı — en koyu uzay mavisi çukur */
.editor-content {
    padding: 1rem 1.125rem 1.25rem;
    background: linear-gradient(185deg, #0a1524 0%, #060f1c 45%, #030812 100%);
    overflow-x: auto;
    position: relative;
    z-index: 1;
    border-radius: 0 0 14px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 139, 253, 0.35) #030812;
    box-shadow:
        inset 0 2px 20px rgba(0, 8, 28, 0.55),
        inset 0 1px 0 rgba(80, 140, 220, 0.05);
}

.editor-pane {
    display: none;
}

.editor-pane.active {
    display: block;
}

.editor-pane pre {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: auto;
}

.editor-pane code {
    font-family: var(--font-mono), ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #c9d1d9;
    background: transparent;
    display: block;
    white-space: pre;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar — ince, GitHub benzeri */
.editor-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.editor-content::-webkit-scrollbar-track {
    background: #030812;
}

.editor-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e3a5c 0%, #152a45 100%);
    border-radius: 6px;
    border: 2px solid #060f1c;
}

.editor-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2a4a72 0%, #1e3a5c 100%);
}

/* Mobil Custom Dropdown */
.editor-tabs-dropdown {
    display: none;
    position: relative;
    flex: 1;
    min-width: 0;
    z-index: 1000;
    overflow: visible;
}

/* Mobil dosya seçici — tetik */
.editor-tabs-dropdown-trigger {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(8, 22, 42, 0.94);
    border: 1px solid rgba(56, 139, 253, 0.14);
    border-radius: 10px;
    color: #f0f6fc;
    font-size: 0.8125rem;
    font-family: var(--font-mono), ui-monospace, monospace;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.editor-tabs-dropdown-trigger:hover,
.editor-tabs-dropdown-trigger:focus {
    background: rgba(12, 34, 60, 0.96);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.12);
}

.editor-tabs-dropdown-value {
    flex: 1;
    text-align: left;
}

.editor-tabs-dropdown-icon {
    font-size: 0.65rem;
    color: rgba(240, 246, 252, 0.45);
    transition: transform 0.25s ease, color 0.2s ease;
    margin-left: 0.5rem;
}

.editor-tabs-dropdown.open .editor-tabs-dropdown-icon {
    transform: rotate(180deg);
    color: #79c0ff;
}

/* Açılır menü */
.editor-tabs-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: linear-gradient(165deg, #142438 0%, #0a1628 100%);
    border: 1px solid rgba(56, 139, 253, 0.12);
    border-radius: 12px;
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.editor-tabs-dropdown.open .editor-tabs-dropdown-menu {
    max-height: 400px;
    opacity: 1;
    padding: 0.5rem;
    transform: translateY(0);
}

.editor-tabs-dropdown-item {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(240, 246, 252, 0.75);
    font-size: 0.8125rem;
    font-family: var(--font-mono), ui-monospace, monospace;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-tabs-dropdown-item:hover,
.editor-tabs-dropdown-item:focus {
    background: rgba(240, 246, 252, 0.06);
    color: #f0f6fc;
}

.editor-tabs-dropdown-item.active {
    background: rgba(56, 139, 253, 0.14);
    color: #f0f6fc;
    font-weight: 600;
    border: 1px solid rgba(88, 166, 255, 0.32);
}

.editor-tabs-dropdown-item i {
    color: rgba(240, 246, 252, 0.45);
    transition: color 0.2s ease;
}

.editor-tabs-dropdown-item:hover i,
.editor-tabs-dropdown-item:focus i,
.editor-tabs-dropdown-item.active i {
    color: #79c0ff;
}

/* Mobil düzenlemeler */
@media screen and (max-width: 768px) {
    .code-type-label {
        padding: 0.7rem 1rem;
        margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    }

    .code-type-label-content {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .code-type-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .code-type-description {
        flex: 1;
        min-width: 0;
        flex-wrap: wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        font-size: 0.95rem;
        margin-left: 0;
    }

    .code-type-label-hint {
        font-size: 0.75rem;
    }

    .code-type-description .lang-badge-wrapper {
        margin-left: 0.4rem;
    }

    .code-type-description .lang-icon {
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: 0.4rem;
        padding: 0.15rem 0.4rem;
        font-size: 0.85rem;
    }

    .code-type-description .lang-icon i {
        font-size: 1.1rem;
    }

    .code-editor {
        margin: var(--spacing-lg) 0;
        border-radius: 14px;
    }

    .editor-header {
        padding: 0.5rem 0.75rem 0 0.875rem;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible;
        position: relative;
        z-index: 10;
    }

    /* Desktop tab'ları gizle */
    .editor-tabs {
        display: none;
    }

    /* Mobil dropdown'u göster */
    .editor-tabs-dropdown {
        display: flex;
        flex: 1;
        min-width: 0;
        overflow: visible;
        position: relative;
    }

    .code-editor.dropdown-open .editor-header {
        overflow: visible;
        z-index: 1000;
    }

    .code-editor.dropdown-open {
        overflow: hidden;
    }

    .code-editor.dropdown-open .editor-tabs-dropdown {
        overflow: visible;
        z-index: 1001;
    }

    .editor-content {
        padding: 0.875rem 1rem 1rem;
    }

    .editor-content code {
        font-size: 0.8125rem;
    }

    .editor-level-indicator {
        padding: 5px 8px;
        gap: 3px;
        min-width: auto;
    }

    .editor-level-indicator>span {
        width: 3px;
        height: 14px;
    }

    .editor-level-indicator.level-beginner {
        min-width: 28px;
    }

    /* Diğer seviyeler için mobil stil yok - Sadece beginner için özel */

    .editor-copy-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0.5rem;
        flex-shrink: 0;
    }

    .byteomi-editor-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.375rem;
    }

    .byteomi-link-text {
        display: none;
    }

    .byteomi-link-icon {
        font-size: 0.85rem;
    }
}

/* Eski “cam” override kaldırıldı — üst blok premium koyu kabuğu tanımlar */