@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #1f1f1f;
    overflow-x: hidden;
}

/* --- GİRİŞ YAPILMAMIŞSA GÖZÜKECEK MODAL --- */
#loginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-btn-google {
    background: white;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    color: #555;
}

.login-btn-google:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* --- ANA PANEL (DASHBOARD) --- */
.dashboard-container {
    display: none;
    /* Giriş yapılınca JS ile 'flex' yapılacak */
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 610px;
}

/* SOL MENÜ */
.sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.user-profile-card {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-weight: 700;
    font-size: 18px;
    color: #222;
}

.user-email {
    font-size: 13px;
    color: #666;
}

.menu-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #e9ecef;
    color: #222;
}

.menu-item.active {
    background: #e0bbff;
    color: #5a189a;
    font-weight: 700;
}

.menu-item.logout {
    margin-top: auto;
    color: #e63946;
}

.menu-item.logout:hover {
    background: #fff0f3;
}

/* SAĞ İÇERİK */
.content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #222;
}

/* İSTATİSTİK GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #9d4edd;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* DESTEK BÖLÜMÜ */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.support-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.support-card:hover {
    border-color: #9d4edd;
}

.support-icon {
    font-size: 24px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.contact-form button {
    background: #222;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #444;
}

/* Mobil */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MENÜ ALANI --- */
.top-menu {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 18px 25px;
    position: sticky;
    top: 0;
    z-index: 1002;
    margin-bottom: 20px;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.menu-title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.8px;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    letter-spacing: 0.2px;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #000;
}

.nav-item.active {
    background: #f3e5f5;
    color: #7b2cbf;
    font-weight: 700;
}

.search-area {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.search-box {
    padding: 12px 18px;
    border: 2px solid #eaecf0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    width: 260px;
    transition: all 0.3s;
    color: #333;
    font-weight: 500;
}

.search-box:focus {
    border-color: #9d4edd;
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

.filter-container {
    position: relative;
}

.filter-btn {
    background: #1a1a1a;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    position: relative;
    z-index: 1003;
}

.filter-btn:hover {
    background: #333;
}

/* --- FİLTRE & BACKDROP --- */
.global-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1001;
}

.global-backdrop.active {
    display: block;
}

.filter-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    width: 220px;
    z-index: 1004;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    pointer-events: auto;
}

.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.filter-dropdown.active {
    display: block;
    animation: dropDownFade 0.2s ease;
}

@keyframes dropDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-radius: 8px;
    user-select: none;
    pointer-events: auto;
}

.filter-item:hover {
    background: #f5f5f5;
}

.filter-item input,
.filter-item label {
    cursor: pointer;
    pointer-events: auto;
}

/* --- RESPONSIVE --- */
.mobile-menu-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.mobile-sidebar {
    display: none;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding-bottom: 5px;
    }

    .search-area {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        z-index: auto;
    }

    .search-box {
        grid-column: 1 / 2;
        grid-row: 1;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 2 / 3;
        grid-row: 1;
        width: 48px;
        height: 48px;
        background: white;
        border: 2px solid #eaecf0;
        border-radius: 12px;
        font-size: 22px;
        cursor: pointer;
        color: #333;
    }

    .filter-container {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        position: relative;
        z-index: 1003;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-dropdown {
        width: 100%;
        right: 0;
        left: 0;
    }

    .global-backdrop {
        z-index: 1002;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding: 25px;
        transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        gap: 10px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
        flex-shrink: 0;
        /* Üstte sabit kalsın */
    }

    .sidebar-title {
        font-weight: 800;
        font-size: 20px;
    }

    .sidebar-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #555;
        cursor: pointer;
    }

    .sb-link {
        padding: 12px 15px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        border-radius: 10px;
        text-align: left;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        /* Sıkışmayı engelle */
        margin-bottom: 5px;
    }

    .sb-link:hover {
        background: #f5f5f5;
    }

    .sb-link.active {
        background: #f3e5f5;
        color: #7b2cbf;
    }

    .mobile-sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 15px;
    }

    .mobile-sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-sidebar-content::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .sb-lang-wrapper {
        border-top: 1px solid #eee;
        padding-top: 12px;
        margin-top: 15px;
    }

    .sb-lang-options {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        padding-left: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
    }

    .sb-lang-options.show {
        max-height: 600px;
        opacity: 1;
    }
}

/* --- İÇERİK --- */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    position: relative;
    z-index: 1;
}

.view-section {
    display: none;
    animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active-view {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KART TASARIMI */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.card-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f5f5f5;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 10px;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.tag {
    font-size: 11px;
    background: #e0bbff;
    color: #5a189a;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.media-type {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    margin-top: 4px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #777;
    font-weight: 500;
}

.card-action-group {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.card-btn {
    flex: 1;
    background: linear-gradient(90deg, #9d4edd, #7b2cbf);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.card-btn:hover {
    opacity: 0.9;
}

.like-btn {
    width: 45px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.like-btn:hover {
    background: #fff0f3;
    color: #ff4d6d;
    border-color: #ff4d6d;
}

.like-btn.liked {
    background: #ff4d6d;
    color: white;
    border-color: #ff4d6d;
    animation: pulse 0.3s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Dil Dropdown */
.lang-dropdown-container {
    position: relative;
}

.lang-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    width: 140px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option:hover {
    background: #f0f0f0;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 1000px;
    height: 650px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-left {
    flex: 1.4;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blur-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.5);
}

.main-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-right {
    flex: 1;
    padding: 40px;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.how-to-section {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
}

.how-to-title {
    font-size: 12px;
    font-weight: 800;
    color: #9d4edd;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.how-to-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.mini-thumb {
    float: left;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
    margin-bottom: 5px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prompt-box {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    border-left: 4px solid #9d4edd;

    /* --- GÜNCELLENEN KISIM BAŞLANGICI --- */
    white-space: pre-wrap;
    /* Boşlukları ve satır sonlarını korur */
    word-wrap: break-word;
    /* Uzun kelimeleri böler ve alt satıra atar */
    overflow-wrap: break-word;
    /* Modern tarayıcılar için kelime kaydırma */
    word-break: break-word;
    /* Kelime bütünlüğünü korumaya çalışır, sığmazsa böler */
    max-width: 100%;
    /* Kutunun dışına taşmasını engeller */
    /* --- GÜNCELLENEN KISIM BİTİŞİ --- */
}

.highlight-param {
    color: #00e5ff;
    font-weight: 600;
}

.action-area {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 10px;
}

.copy-btn {
    flex: 1;
    background: #111;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #333;
}

.copy-btn.copied {
    background: #27ae60;
}

.modal-like-btn {
    width: 55px;
    border-radius: 14px;
    font-size: 24px;
}

.close-icon-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .modal-box {
        flex-direction: column;
        height: 95vh;
    }

    .modal-left {
        height: 250px;
        flex: none;
    }

    .modal-right {
        padding: 25px;
    }
}

.placeholder-page {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.placeholder-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.placeholder-desc {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* --- REHBERLER (GUIDES) STİLLERİ - GÜNCELLENDİ --- */
.guides-container {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.guide-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.guide-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.2s;
    cursor: default;
}

.guide-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-icon {
    font-size: 22px;
}

.guide-toggle-btn {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.guide-toggle-btn:hover {
    background: #e0e0e0;
    color: #9d4edd;
}

.guide-arrow {
    font-size: 16px;
    color: #555;
    transition: transform 0.3s ease;
}

.guide-item.active .guide-arrow {
    transform: rotate(180deg);
    color: #9d4edd;
}

.guide-item.active .guide-toggle-btn {
    background: #f3e5f5;
}

.guide-item.active .guide-header {
    border-bottom: 1px solid #f5f5f5;
}

.guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

/* --- OKUNABİLİRLİK İYİLEŞTİRMELERİ (NORMAL KARTLAR) --- */
.guide-inner {
    padding: 25px;
    color: #333;
    /* Daha koyu gri */
    font-size: 15px;
    line-height: 1.8;
    /* Satır arası açıldı */
}

/* Vurgulu Metinler İçin Marka Rengi (Siyah Yerine Mor) */
.guide-inner strong {
    font-weight: 700;
    color: #7b2cbf;
}

.guide-inner h3 {
    font-size: 16px;
    font-weight: 700;
    color: #9d4edd;
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-inner h3:first-child {
    margin-top: 0;
}

.guide-inner ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.guide-inner li {
    margin-bottom: 8px;
}

.guide-inner p {
    margin-bottom: 15px;
}

.guide-inner a {
    color: #7b2cbf;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #7b2cbf;
    transition: 0.2s;
}

.guide-inner a:hover {
    color: #9d4edd;
    border-bottom-style: solid;
}

.code-snippet {
    background: rgb(64, 63, 63);
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ai-tool-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
}

.ai-tool-name {
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    display: block;
}

.ai-tool-desc {
    font-size: 12px;
    color: #666;
}

/* --- BONUS KARTI OKUNABİLİRLİK AYARLARI --- */
.bonus-card {
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: white;
}

.bonus-card .guide-header {
    background: transparent;
    color: white;
}

.bonus-card .guide-title {
    color: white;
}

.bonus-card .guide-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.bonus-card .guide-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.bonus-card .guide-arrow {
    color: white;
}

.bonus-card .guide-content {
    background: transparent;
}

/* Bonus Kartı İçindeki Metinleri Beyaz Yap */
.bonus-card .guide-inner {
    color: rgba(255, 255, 255, 0.95);
}

/* Düz metin */
.bonus-card .guide-inner strong {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Vurgulu metin */
.bonus-card .guide-inner h3 {
    color: #ffedff;
}

/* Başlıklar */
.bonus-card .guide-inner a {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Linkler */
.bonus-card .guide-inner a:hover {
    border-color: white;
    opacity: 0.9;
}

.fav-star {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    cursor: help;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: floatStar 3s ease-in-out infinite;
}

@keyframes floatStar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* --- TOAST BİLDİRİM STİLLERİ --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    /* Başlangıçta ekran dışında */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 6px solid #ddd;
    /* Varsayılan renk */
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Ekrana gelme sınıfı */
.toast.show {
    transform: translateX(0);
}

/* Başarı Mesajı (Yeşil) */
.toast.success {
    border-left-color: #2ecc71;
}

.toast.success .toast-icon {
    color: #2ecc71;
    background: #eafff3;
}

/* Hata Mesajı (Kırmızı) */
.toast.error {
    border-left-color: #e74c3c;
}

.toast.error .toast-icon {
    color: #e74c3c;
    background: #fff0f0;
}

/* Bilgi Mesajı (Mavi) */
.toast.info {
    border-left-color: #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
    background: #f0f9ff;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
    background: none;
    border: none;
}

.toast-close:hover {
    color: #333;
}

/* --- FAVORİLER İÇİN KÜÇÜK KART TASARIMI --- */

/* Grid yapısını daralt */
.small-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
}

/* Resim yüksekliğini azalt */
.small-cards-grid .card-image {
    height: 140px;
}

/* İçeriği sıkılaştır */
.small-cards-grid .card-content {
    padding: 12px;
}

/* Yazı boyutlarını küçült */
.small-cards-grid .card-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.small-cards-grid .tag {
    font-size: 10px;
    padding: 2px 6px;
}

.small-cards-grid .media-type {
    font-size: 10px;
}

.small-cards-grid .stats-row {
    font-size: 10px;
    margin-bottom: 10px;
}

/* Butonları küçült */
.small-cards-grid .card-btn {
    padding: 8px;
    font-size: 12px;
}

.small-cards-grid .like-btn {
    width: 35px;
    font-size: 16px;
}

.stats-row .stat-item:last-child {
    color: #9d4edd;
    font-weight: 600;
}

.report-icon-btn {
    position: absolute;
    top: 20px;
    right: 70px;
    /* Close butonunun soluna */
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

/* --- YÜKLEME MODAL'ında SİLME BUTONU --- */
#deleteImageBtn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 15 !important;
    background: #ff4d6d !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3) !important;
    transition: all 0.2s;
}

#deleteImageBtn:hover {
    background: #ff1744 !important;
    transform: scale(1.1);
}

.report-icon-btn:hover {
    background: #fff0f0;
    color: #e63946;
}

.info-section {
    margin-bottom: 15px;
}

.info-title {
    font-size: 11px;
    font-weight: 800;
    color: #9d4edd;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.variables-section {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.variable-item {
    background: white;
    border: 1px solid #e0bbff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.variable-name {
    font-size: 11px;
    color: #9d4edd;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.variable-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.admin-only {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white !important;
    font-weight: 700;
}

.admin-only:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b) !important;
}

/* Mobilde Kelime Taşmalarını Engelle */
@media (max-width: 768px) {
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .content-area {
        padding: 20px 15px;
        overflow-x: hidden;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }
}

.report-card {
    background: white;
    border: 2px solid #ffe0e0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: start;
}

.report-card img {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .report-card {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .report-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .report-info {
        width: 100%;
    }

    .report-title {
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .report-reason {
        font-size: 12px;
        padding: 8px;
        word-wrap: break-word;
    }

    .report-actions {
        flex-direction: column;
        width: 100%;
    }

    .report-actions button {
        width: 100%;
        text-align: center;
    }
}

.report-info {
    flex: 1;
}

.report-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.report-reason {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 0;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.report-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete {
    background: #e63946;
    color: white;
}

.btn-ignore {
    background: #6c757d;
    color: white;
}

/* --- RAPOR MODAL TASARIMI --- */
.report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.report-modal-box {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.report-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.report-modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.report-modal-header p {
    color: #666;
    font-size: 14px;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.report-option {
    background: #f8f9fa;
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #444;
}

.report-option:hover {
    border-color: #9d4edd;
    background: #f3e5f5;
}

.report-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #9d4edd;
}

.report-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 20px;
}

.report-textarea:focus {
    border-color: #9d4edd;
}

.report-actions {
    display: flex;
    gap: 12px;
}

.report-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.report-btn-cancel {
    background: #f1f1f1;
    color: #555;
}

.report-btn-cancel:hover {
    background: #e0e0e0;
}

.report-btn-submit {
    background: linear-gradient(135deg, #e63946, #ff4d6d);
    color: white;
}

.report-btn-submit:hover {
    opacity: 0.9;
}

.report-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.report-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* --- MESAJ KUTUSU STİLLERİ --- */
.message-card {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.2s;
}

@media (max-width: 768px) {
    .message-card {
        padding: 15px;
    }

    .message-header {
        flex-direction: column;
        align-items: start;
        gap: 5px;
    }

    .message-subject {
        font-size: 14px;
        word-wrap: break-word;
    }

    .message-body {
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .message-actions {
        flex-direction: column;
        width: 100%;
    }

    .message-actions button {
        width: 100%;
    }
}

.message-card.unread {
    border-color: #2196f3;
    background: #f0f9ff;
}

.message-card:hover {
    border-color: #9d4edd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.message-subject {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-badge {
    background: #2196f3;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-body {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.message-from {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.message-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.message-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s;
}

.message-actions button:hover {
    opacity: 0.8;
}

.btn-mark-read {
    background: #4caf50;
    color: white;
}

.btn-delete-message {
    background: #f44336;
    color: white;
}

/* Bildirim Topu Stili */
.notification-dot {
    display: none;
    /* Varsayılan olarak gizli */
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    /* Yeşil renk */
    border-radius: 50%;
    position: absolute;
    right: 15px;
    /* Sağ köşeye yasla */
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Menü öğesinin konumlandırmasını ayarla */
.menu-item {
    position: relative;
    /* Topun buna göre hizalanması için */
    /* Mevcut diğer stillerin aynen kalsın */
}

/* --- KART ÜZERİNDEKİ DEĞİŞKENLER İÇİN STİL --- */
.card-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    /* Başlık ile istatistikler arasına boşluk */
}

.var-tag {
    font-size: 10px;
    background: #f0f9ff;
    /* Açık mavi arka plan */
    color: #0c5460;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #bee5eb;
    font-weight: 500;
}

.var-tag b {
    font-weight: 800;
    color: #000;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Admin paneli başlığını küçült */
    #admin h2 {
        font-size: 18px;
    }

    #admin h3 {
        font-size: 15px;
    }
}

/* --- DİL MENÜSÜ ANIMASYONLARI --- */

/* Masaüstü Dil Menüsü - Yukarıdan Aşağıya */
.lang-menu .lang-option {
    opacity: 0;
    transform: translateY(-15px);
    animation: slideDownFade 0.4s ease forwards;
}

/* Her öğe için gecikme */
.lang-menu .lang-option:nth-child(1) {
    animation-delay: 0.05s;
}

.lang-menu .lang-option:nth-child(2) {
    animation-delay: 0.10s;
}

.lang-menu .lang-option:nth-child(3) {
    animation-delay: 0.15s;
}

.lang-menu .lang-option:nth-child(4) {
    animation-delay: 0.20s;
}

.lang-menu .lang-option:nth-child(5) {
    animation-delay: 0.25s;
}

.lang-menu .lang-option:nth-child(6) {
    animation-delay: 0.30s;
}

.lang-menu .lang-option:nth-child(7) {
    animation-delay: 0.35s;
}

.lang-menu .lang-option:nth-child(8) {
    animation-delay: 0.40s;
}

.lang-menu .lang-option:nth-child(9) {
    animation-delay: 0.45s;
}

.lang-menu .lang-option:nth-child(10) {
    animation-delay: 0.50s;
}

.lang-menu .lang-option:nth-child(11) {
    animation-delay: 0.55s;
}

.lang-menu .lang-option:nth-child(12) {
    animation-delay: 0.60s;
}

.lang-menu .lang-option:nth-child(13) {
    animation-delay: 0.65s;
}

.lang-menu .lang-option:nth-child(14) {
    animation-delay: 0.70s;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBİL DİL MENÜSÜ (GÜNCELLENMİŞ: 2 SÜTUN + ANİMASYONLU) --- */

@media (max-width: 900px) {

    /* Kapsayıcı (Container) Ayarları */
    .sb-lang-options.show {
        display: grid;
        /* Yan yana dizilim için Grid */
        grid-template-columns: 1fr 1fr;
        /* İki eşit sütun */
        gap: 10px;
        /* Kutular arası boşluk */
        margin-top: 15px;
        padding-bottom: 20px;
        /* En altta biraz boşluk */
        opacity: 1;
        max-height: 1000px;
        /* Animasyonun çalışması için yüksek değer */
        overflow: visible;
        /* Taşmaları engelleme */
    }

    /* Dil Kutucukları */
    .sb-lang-options .lang-option {
        /* Görünüm */
        background: #f8f9fa;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px 8px;

        /* Metin Ayarları */
        font-size: 13px;
        color: #444;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;

        /* Taşma Koruması (Kutu dışına taşmayı engeller) */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        /* Animasyon Başlangıç Durumu */
        opacity: 0;
        transform: translateY(20px);
        animation: slideUpFade 0.4s ease forwards;
    }

    /* Seçili veya Tıklanan Durum */
    .sb-lang-options .lang-option:active {
        background: #e0bbff;
        color: #5a189a;
        border-color: #9d4edd;
    }

    /* --- ANIMASYON GECİKMELERİ (Sırayla gelmeleri için) --- */
    /* Sol-Sağ, Sol-Sağ şeklinde sırayla yüklenir */
    .sb-lang-options .lang-option:nth-child(1) {
        animation-delay: 0.05s;
    }

    .sb-lang-options .lang-option:nth-child(2) {
        animation-delay: 0.10s;
    }

    .sb-lang-options .lang-option:nth-child(3) {
        animation-delay: 0.15s;
    }

    .sb-lang-options .lang-option:nth-child(4) {
        animation-delay: 0.20s;
    }

    .sb-lang-options .lang-option:nth-child(5) {
        animation-delay: 0.25s;
    }

    .sb-lang-options .lang-option:nth-child(6) {
        animation-delay: 0.30s;
    }

    .sb-lang-options .lang-option:nth-child(7) {
        animation-delay: 0.35s;
    }

    .sb-lang-options .lang-option:nth-child(8) {
        animation-delay: 0.40s;
    }

    .sb-lang-options .lang-option:nth-child(9) {
        animation-delay: 0.45s;
    }

    .sb-lang-options .lang-option:nth-child(10) {
        animation-delay: 0.50s;
    }

    .sb-lang-options .lang-option:nth-child(11) {
        animation-delay: 0.55s;
    }

    .sb-lang-options .lang-option:nth-child(12) {
        animation-delay: 0.60s;
    }

    .sb-lang-options .lang-option:nth-child(13) {
        animation-delay: 0.65s;
    }

    .sb-lang-options .lang-option:nth-child(14) {
        animation-delay: 0.70s;
    }

    /* Animasyon Tanımı (Mevcut olanı koruduk) */
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- YENİ EDİTÖR CSS --- */
.editor-card {
    border: 2px dashed #ccc;
    transition: all 0.3s;
    background: white;
}

.editor-card:hover {
    border-color: #9d4edd;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.1);
}

.editor-image-zone {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.editor-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.editor-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 5px;
    outline: none;
    font-family: inherit;
    color: #333;
    resize: none;
    transition: 0.2s;
}

.editor-input:focus {
    background: #f4f0ff;
    border-radius: 6px;
    padding-left: 10px;
}

.title-input {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* Kategori Etiketleri */
.selected-cat-tag {
    background: #e0bbff;
    color: #5a189a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-cat-btn {
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.remove-cat-btn:hover {
    color: red;
}

/* Değişken Satırları */
.var-edit-row {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    animation: fadeIn 0.3s;
}

.var-input-small {
    font-size: 11px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 45%;
}

.prompt-area {
    background: #1e1e1e;
    color: #00e5ff;
    font-family: monospace;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 12px;
}

.editor-add-btn {
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* --- WYSIWYG EDİTÖR CSS --- */
.live-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding: 5px 0;
    transition: background 0.2s;
}

.live-input:focus {
    background: #f0f8ff;
    /* Odaklanınca hafif mavi olsun ki nerede olduğu belli olsun */
    border-radius: 4px;
    padding-left: 5px;
}

.h2-style {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.desc-style {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    resize: none;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.var-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.var-input-group input {
    width: 50%;
    font-size: 11px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- KÜÇÜK İŞLEM BUTONLARI --- */
.action-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-edit {
    background: #f0f0f0;
    color: #333;
}

.btn-edit:hover {
    background: #e0bbff;
    color: #5a189a;
}

.btn-delete {
    background: #fff0f0;
    color: #e63946;
}

.btn-delete:hover {
    background: #e63946;
    color: white;
}

/* --- SOFT REFRESH ANIMASYONU (Pulse/Nefes Alma) --- */
@keyframes aiPulse {
    0% {
        color: #111;
        text-shadow: 0 0 0 rgba(157, 78, 221, 0);
        transform: scale(1);
    }

    50% {
        color: #9d4edd;
        /* Marka rengin olan mor */
        text-shadow: 0 0 15px rgba(157, 78, 221, 0.6);
        /* Hafif neon parlaması */
        transform: scale(1.02);
        /* Çok hafif büyüme */
    }

    100% {
        color: #111;
        text-shadow: 0 0 0 rgba(157, 78, 221, 0);
        transform: scale(1);
    }
}

.logo-refreshing {
    animation: aiPulse 1.5s infinite ease-in-out;
    pointer-events: none;
    /* İşlem sürerken tekrar tıklanmasın */
    cursor: wait;
}

/* Logonun tıklanabilir olduğunu gösterelim */
.menu-title {
    transition: all 0.3s ease;
}

.menu-title:hover {
    color: #5a189a;
}

/* --- YAZAR PROFİL FOTOĞRAFI (KARTLAR İÇİN) --- */
.author-mini-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    display: inline-block;
}

/* --- YENİ GELİŞMİŞ XP VE RÜTBE TASARIMI --- */
.xp-dashboard {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.xp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.xp-current-rank {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-next-target {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* İlerleme Çubuğu */
.xp-progress-container {
    position: relative;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.xp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9d4edd, #7b2cbf);
    width: 0%;
    transition: width 1s ease-in-out;
    position: relative;
}

.xp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
    white-space: nowrap;
}

/* Rütbe Tablosu (Legend) */
.rank-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.rank-item {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    opacity: 0.6;
    transition: all 0.3s;
}

.rank-item.active-rank {
    opacity: 1;
    border-color: #9d4edd;
    background: #f3e5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.2);
}

.rank-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.rank-name {
    font-size: 12px;
    font-weight: 700;
    display: block;
    color: #333;
}

.rank-xp {
    font-size: 10px;
    color: #777;
    font-weight: 500;
}

/* Mobilde XP barının içindeki yazıyı siyah yapalım (bar boşken okunabilsin) */
.xp-progress-text.dark-text {
    color: #444;
    text-shadow: none;
}

/* --- XP HESAPLAMA TABLOSU STİLLERİ --- */
.xp-calc-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.xp-calc-table th {
    background: #f8f9fa;
    text-align: left;
    padding: 10px 15px;
    font-weight: 700;
    color: #555;
    border-bottom: 2px solid #eee;
}

.xp-calc-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.xp-calc-table tr:last-child td {
    border-bottom: none;
    background: #fafafa;
    font-weight: 800;
    color: #9d4edd;
}

.xp-calc-highlight {
    color: #2ecc71;
    /* Yeşil renk */
    font-weight: 700;
}

/* --- MOBİL UYUMLULUK DÜZELTMELERİ --- */

/* Tabloyu kaydırılabilir yap */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Mobilde akıcı kaydırma */
    margin-top: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.xp-calc-table {
    margin-top: 0;
    /* Wrapper içinde olduğu için sıfırladık */
    border: none;
    min-width: 400px;
    /* Tablo çok sıkışmasın, gerekirse kaydırılsın */
}

/* Mobilde Dashboard Düzeni */
@media (max-width: 768px) {
    .xp-dashboard {
        padding: 15px;
        /* Mobilde boşlukları azalt */
    }

    .xp-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .xp-next-target {
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

    .rank-legend {
        grid-template-columns: repeat(2, 1fr);
        /* Mobilde 2 sütun olsun */
    }
}

/* --- ÖZEL ROZET EFEKTLERİ (VIP, EPIC, STAR) --- */

/* Genel Rozet Kutusu */
.badge-container {
    position: relative;
    padding: 2px;
    /* Border için alan */
    border-radius: 12px;
    background: #fff;
    display: inline-block;
    margin-left: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* İçerik Kutusu */
.badge-content {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

/* Parlama Efekti (Işık Geçişi) */
.badge-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Hızlı geçiş */
    100% {
        left: 200%;
    }

    /* Bekleme */
}

/* 💎 VIP STİLİ (Mor/Neon) */
.badge-vip {
    background: linear-gradient(45deg, #a18cd1, #fbc2eb, #a18cd1);
    background-size: 200% 200%;
    animation: gradientBorder 3s ease infinite;
}

.badge-vip .badge-content {
    background: linear-gradient(135deg, #2a0845 0%, #6441A5 100%);
    text-shadow: 0 0 10px rgba(161, 140, 209, 0.7);
}

/* 🔥 EPIC STİLİ (GÜNCELLENDİ: Holografik/Neon - ✨ Uyumlu) */
.badge-epic {
    /* Neon Pembe, Mor ve Cam Göbeği karışımı */
    background: linear-gradient(125deg, #ff00cc, #333399, #00ccff);
    background-size: 200% 200%;
    animation: epicFlow 3s ease infinite;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.4);
    /* Neon parlaması */
}

.badge-epic .badge-content {
    /* Koyu arka plan üzerine beyaz yazı */
    background: linear-gradient(135deg, #3c1c48 0%, #2f2525 100%);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Yeni Akış Animasyonu */
@keyframes epicFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 🌟 STAR STİLİ (Altın/Parlak) */
.badge-star {
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700);
    background-size: 200% 200%;
    animation: gradientBorder 2s ease infinite;
    /* Daha hızlı */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.badge-star .badge-content {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    color: #5a4a1b;
    /* Koyu altın rengi yazı */
    text-shadow: 0 1px 0px rgba(255, 255, 255, 0.4);
}

/* Sınır Animasyonu */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- ADMIN KULLANICI YÖNETİMİ STİLLERİ --- */

/* Açılır/Kapanır Header */
.admin-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.admin-collapse-header:hover {
    background: #f8f9fa;
}

.admin-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
}

.admin-arrow.rotated {
    transform: rotate(180deg);
}

/* Kullanıcı Listesi Satırı (Responsive) */
.user-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.user-list-info {
    flex: 1;
    min-width: 0;
    /* Yazı taşmasını engeller */
}

.badge-select-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* MOBİL UYUM (Ekran Daralınca Alt Alta Geçsin) */
@media (max-width: 768px) {
    .user-list-item {
        flex-direction: column;
        /* Alt alta diz */
        align-items: flex-start;
        /* Sola yasla */
        gap: 10px;
    }

    .user-list-info {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 5px;
    }

    .badge-select-group {
        width: 100%;
        align-items: flex-start;
        /* Sola yasla */
        flex-direction: row;
        /* Yan yana olsun */
        justify-content: space-between;
        align-items: center;
    }
}

/* --- BAŞARIM SİSTEMİ STİLLERİ --- */

.achievements-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.ach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.ach-header:hover {
    background: #f8f9fa;
}

.ach-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ach-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
}

.ach-arrow.rotated {
    transform: rotate(180deg);
}

.ach-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.ach-category {
    margin-top: 20px;
    margin-bottom: 15px;
}

.ach-category-title {
    font-size: 14px;
    font-weight: 800;
    color: #9d4edd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ach-card {
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.ach-card.completed {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
}

.ach-card.claimed {
    opacity: 0.6;
    border-color: #ddd;
}

.ach-card:hover:not(.claimed) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ach-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.ach-info {
    flex: 1;
}

.ach-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.ach-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.ach-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.ach-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9d4edd, #7b2cbf);
    transition: width 0.5s ease;
}

.ach-stats {
    font-size: 10px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.ach-claim-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.ach-claim-btn:hover {
    transform: scale(1.05);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.ach-claimed-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2ecc71;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .ach-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   🖼️ PROFİL ÇERÇEVESİ SİSTEMİ
   ============================================ */

/* Çerçeve Konteyner (Avatar'ın etrafını saracak) */
.profile-frame-wrapper {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
}

/* Avatar Resmi */
.profile-frame-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Çerçeve SVG Katmanı */
.profile-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 110px;
    height: 110px;
    z-index: 3;
    pointer-events: none;
}

/* ============================================
   A. RÜTBE ÇERÇEVELERİ (XP Bazlı)
   ============================================ */

/* 1. 🌱 Çaylak (0-250 XP) - Mat Yeşil */
.frame-caylak {
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.6));
}

.frame-caylak circle {
    stroke: #2ecc71;
    stroke-width: 4;
    fill: none;
}

/* 2. ✏️ Yazar (250-1000 XP) - Bronz */
.frame-yazar {
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.7));
}

.frame-yazar circle {
    stroke: url(#gradientBronze);
    stroke-width: 4;
    fill: none;
}

/* 3. 🎨 Sanatçı (1000-5000 XP) - Mor */
.frame-sanatci {
    filter: drop-shadow(0 0 12px rgba(157, 78, 221, 0.8));
}

.frame-sanatci circle {
    stroke: url(#gradientPurple);
    stroke-width: 5;
    fill: none;
    animation: glow 2s ease-in-out infinite;
}

/* 4. 🔥 Usta (5000-20000 XP) - Ateş Kırmızı */
.frame-usta {
    filter: drop-shadow(0 0 15px rgba(231, 76, 60, 1));
    animation: breathe 3s ease-in-out infinite;
}

.frame-usta circle {
    stroke: url(#gradientFire);
    stroke-width: 5;
    fill: none;
}

@keyframes breathe {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(231, 76, 60, 1));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(231, 76, 60, 1));
    }
}

/* ============================================
   YENİ VIP: COSMIC AURA (Mor Galaksi)
   ============================================ */
.frame-vip {
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.9));
    overflow: visible !important;
}

/* VIP - Dış Halka */
.frame-vip circle.cosmic-ring {
    stroke: url(#gradientCosmic);
    stroke-width: 3;
    fill: none;
    opacity: 0.8;
}

/* VIP - Dönen Parçacıklar */
.frame-vip circle.cosmic-particles {
    stroke: url(#gradientCosmic);
    stroke-width: 4;
    fill: none;
    /* Kesik çizgilerle parçacık görünümü */
    stroke-dasharray: 4, 20, 2, 30;
    stroke-linecap: round;
    transform-origin: center;
    animation: cosmicSpin 20s linear infinite;
}

@keyframes cosmicSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   YENİ ŞAMPİYON: THUNDER STORM (Gerçek Şimşek) ⚡
   ============================================ */
.frame-sampiyon {
    /* Genel sarı elektrik parlaması */
    filter: drop-shadow(0 0 6px #FFD700);
    overflow: visible !important;
}

/* 1. KATMAN: Ana Elektrik Hattı (Sürekli Titreyen) */
.frame-sampiyon circle.thunder-bolt {
    stroke: #ffffff;
    /* İçi beyaz olsun ki parlak dursun */
    stroke-width: 3;
    fill: none;
    /* Filtre ile çizgiyi kırıyoruz */
    filter: url(#electricFilter);
    opacity: 1;
    /* Hızlı titreme animasyonu */
    animation: electricJitter 0.3s steps(3) infinite;
}

/* 2. KATMAN: Sarı Dış Hale (Glow) */
.frame-sampiyon circle.thunder-glow {
    stroke: #FFD700;
    stroke-width: 4;
    fill: none;
    opacity: 0.6;
    filter: blur(3px);
}

/* 3. KATMAN: Patlayan Flaş (Şimşek Çakması) */
.frame-sampiyon circle.thunder-flash {
    stroke: #fff;
    stroke-width: 6;
    fill: none;
    opacity: 0;
    filter: url(#electricFilter);
    /* 3 saniyede bir çakan büyük şimşek */
    animation: thunderStrike 4s infinite;
}

/* Şimşeğin sürekli yer değiştirmesi/titremesi */
@keyframes electricJitter {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.9;
    }

    25% {
        transform: rotate(2deg) scale(1.02);
        opacity: 1;
    }

    50% {
        transform: rotate(-2deg) scale(0.98);
        opacity: 0.8;
    }

    75% {
        transform: rotate(1deg) scale(1.01);
        opacity: 1;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.9;
    }
}

/* Büyük Çakma Efekti */
@keyframes thunderStrike {

    0%,
    88% {
        opacity: 0;
        stroke-width: 2;
    }

    89% {
        opacity: 1;
        stroke-width: 8;
        stroke: #fff;
        filter: drop-shadow(0 0 15px #fff);
    }

    /* ÇAK! */
    90% {
        opacity: 0.5;
        stroke-width: 5;
    }

    92% {
        opacity: 1;
        stroke-width: 7;
        stroke: #ffff00;
    }

    /* İkinci Çakma */
    95% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ✨ EPIC - Gökkuşağı */
.frame-epic {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    animation: rainbowShift 3s linear infinite;
}

.frame-epic circle {
    stroke: url(#gradientRainbow);
    stroke-width: 6;
    fill: none;
}

@keyframes rainbowShift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* ========================================
   🌟 YENİ STAR ÇERÇEVESİ (SUPERNOVA)
======================================== */

/* Ana Kapsayıcı Animasyonu */
.frame-star {
    animation: supernovaBreath 3s ease-in-out infinite;
    transform-origin: center;
}

/* 1. Nefes Alan Ana Halka */
.frame-star circle.breathing-ring {
    stroke: url(#gradientSupernovaGold);
    stroke-width: 6;
    fill: none;
    animation: mainRingBreath 3s ease-in-out infinite;
}

/* 2. Genişleyen Patlama Halkaları */
.frame-star circle.blast-ring-1 {
    stroke: #FFD700;
    stroke-width: 2;
    fill: none;
    animation: blastExpand1 3s ease-out infinite;
}

.frame-star circle.blast-ring-2 {
    stroke: #FDB931;
    stroke-width: 3;
    fill: none;
    animation: blastExpand2 3s ease-out infinite;
}

.frame-star circle.blast-ring-3 {
    stroke: #FFD700;
    stroke-width: 4;
    fill: none;
    animation: blastExpand3 3s ease-out infinite;
}

/* 3. Parıldayan Yıldızlar */
.frame-star .star-particle {
    fill: #FFD700;
    animation: starTwinkleSupernova 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 2px #FFD700);
    transform-origin: center;
    /* Yıldızların kendi etrafında dönmesi için */
    transform-box: fill-box;
}

.frame-star .star-particle:nth-child(5) {
    animation-delay: 0.3s;
    animation-duration: 2s;
}

.frame-star .star-particle:nth-child(6) {
    animation-delay: 0.6s;
    animation-duration: 1.6s;
}

.frame-star .star-particle:nth-child(7) {
    animation-delay: 0.9s;
    animation-duration: 2.2s;
}

.frame-star .star-particle:nth-child(8) {
    animation-delay: 1.2s;
    animation-duration: 1.9s;
}

.frame-star .star-particle:nth-child(9) {
    animation-delay: 1.5s;
    animation-duration: 2.1s;
}

/* 4. Dönen Enerji Çemberi */
.frame-star circle.energy-orbit {
    stroke: url(#gradientEnergyOrbit);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 25, 15;
    stroke-linecap: round;
    animation: energyOrbitSpin 5s linear infinite;
    transform-origin: center;
}

/* --- ANİMASYON KEYFRAMES --- */

@keyframes supernovaBreath {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)) brightness(1.2);
        transform: scale(1.05);
    }
}

@keyframes mainRingBreath {

    0%,
    100% {
        stroke-width: 4;
        opacity: 0.8;
    }

    50% {
        stroke-width: 7;
        opacity: 1;
    }
}

@keyframes blastExpand1 {
    0% {
        r: 58;
        opacity: 1;
    }

    100% {
        r: 70;
        opacity: 0;
    }
}

@keyframes blastExpand2 {
    0% {
        r: 60;
        opacity: 0.9;
    }

    100% {
        r: 74;
        opacity: 0;
    }
}

@keyframes blastExpand3 {
    0% {
        r: 62;
        opacity: 0.8;
    }

    100% {
        r: 78;
        opacity: 0;
    }
}

@keyframes starTwinkleSupernova {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.5) rotate(180deg);
    }
}

@keyframes energyOrbitSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   C. BAŞARIM ÇERÇEVELERİ (Görev Bazlı)
   ============================================ */

/* ❤️ Koleksiyoner III */
.frame-koleksiyoner {
    filter: drop-shadow(0 0 15px rgba(255, 77, 109, 0.9));
    animation: heartbeat 1.5s ease-in-out infinite;
}

.frame-koleksiyoner circle {
    stroke: url(#gradientHeart);
    stroke-width: 5;
    fill: none;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 📋 Araştırmacı III */
.frame-arastirmaci {
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.7));
}

.frame-arastirmaci circle {
    stroke: #2ecc71;
    stroke-width: 4;
    stroke-dasharray: 10, 5;
    fill: none;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 1000;
    }
}

/* ⭐ Halkın Sevgilisi III */
.frame-halkin-sevgilisi {
    filter: drop-shadow(0 0 18px rgba(255, 182, 193, 1));
}

.frame-halkin-sevgilisi circle {
    stroke: url(#gradientRoseGold);
    stroke-width: 5;
    fill: none;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* 👁️ Vitrin Yıldızı II */
.frame-vitrin-yildizi {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    animation: flash 2s infinite;
}

.frame-vitrin-yildizi circle {
    stroke: url(#gradientFlash);
    stroke-width: 5;
    fill: none;
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.3;
    }
}

/* ============================================
   Mobil Uyumluluk
   ============================================ */

@media (max-width: 768px) {
    .profile-frame-wrapper {
        width: 80px;
        height: 80px;
    }

    .profile-frame {
        width: 90px;
        height: 90px;
    }
}

.card-container .profile-frame circle {
    stroke-width: 3px !important;
}

/* --- ÖZEL ÇERÇEVE ANİMASYONLARI (KARTLAR + MARKET İÇİN) --- */

/* 1. 🔥 USTA (MASTER) ÇERÇEVESİ - Akan Kesik Çizgiler */
/* Hem kartlardaki (.card-container) hem de marketteki (.frame-option-card) çerçeveyi seçiyoruz */
.card-container .frame-usta circle,
.frame-option-card .frame-usta circle {
    stroke-dasharray: 15, 5 !important;
    /* Çizgiyi kesik kesik yap */
    animation: flowFire 0.8s linear infinite !important;
    /* Akış animasyonu */
}

/* Usta - Akış Hareketi Tanımı */
@keyframes flowFire {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -20;
    }
}

/* --- 🛡️ ADMIN PRIME (GLOBAL & GENİŞLETİLMİŞ) --- */

/* Çerçevenin genel kapsayıcısı (Tüm sayfalarda geçerli olsun diye ön ekleri kaldırdık) */
.profile-frame.frame-admin {
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6));
    animation: adminGlowPulse 3s ease-in-out infinite alternate;
    overflow: visible !important;
    /* Dışa taşan efektlerin kesilmemesi için */
}

/* 1. İÇ ÇEMBER (Koyu Mavi - Sağa Döner) */
.frame-admin .admin-inner-circle {
    stroke: url(#gradAdminInner) !important;
    stroke-dasharray: 40, 10, 10, 10 !important;
    stroke-linecap: round !important;
    transform-origin: center !important;
    animation: spinRight 10s linear infinite !important;
    /* Yavaş ve ağır dönüş */
    opacity: 0.9;
}

/* 2. DIŞ ÇEMBER (Açık Mavi - Sola Döner) */
.frame-admin .admin-outer-circle {
    stroke: url(#gradAdminOuter) !important;
    stroke-dasharray: 60, 5, 20, 5 !important;
    stroke-linecap: butt !important;
    transform-origin: center !important;
    animation: spinLeft 5s linear infinite !important;
    /* Hızlı koruma kalkanı dönüşü */
}

/* --- ANİMASYON KEYFRAMES --- */
@keyframes spinRight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes adminGlowPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9));
    }
}

/* --- PROMPTLARIM KARTI İÇİN RESPONSIVE TASARIM --- */
.my-prompt-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    align-items: start;
}

.my-prompt-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
    /* Resmin sıkışmasını engeller */
}

.my-prompt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Flexbox içinde metin taşmasını önler */
    width: 100%;
}

.my-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.my-prompt-title {
    margin: 0;
    font-size: 18px;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
}

.my-prompt-desc {
    color: #555;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2 satırdan fazlasını kes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-prompt-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Sığmazsa alt satıra geçsin */
    gap: 10px;
}

.my-prompt-actions {
    display: flex;
    gap: 8px;
}

/* MOBİL GÖRÜNÜM (768px altı) */
@media (max-width: 768px) {
    .my-prompt-card {
        flex-direction: column;
        /* Alt alta diz */
        padding: 15px;
        gap: 15px;
    }

    .my-prompt-img {
        width: 100%;
        /* Resmi tam genişlik yap */
        height: 180px;
        /* Yüksekliği sabitle */
    }

    .my-prompt-header {
        flex-direction: column;
        /* Başlık ve badge alt alta */
        align-items: flex-start;
    }

    .my-prompt-footer {
        flex-direction: column;
        /* Yazar bilgisi ve butonlar alt alta */
        align-items: stretch;
    }

    .my-prompt-actions {
        justify-content: flex-end;
        /* Butonları sağa yasla veya yay */
        width: 100%;
    }

    .my-prompt-actions button {
        flex: 1;
        /* Mobilde butonları genişlet */
        justify-content: center;
    }
}

/* ================================================= */
/* ✅ AKTİF DİL STİLİ (KESİN ÇÖZÜM) ✅ */
/* ================================================= */

/* Hem Masaüstü (.lang-menu) Hem Mobil (.sb-lang-options) içindeki aktif öğeyi hedefle */
.lang-menu .lang-option.active-lang,
.sb-lang-options .lang-option.active-lang {
    background: #e0bbff !important;
    /* Mor Arka Plan */
    color: #5a189a !important;
    /* Koyu Mor Yazı */
    border: 1px solid #9d4edd !important;
    /* Çerçeve */
    font-weight: 700 !important;
    /* Kalın Yazı */
    box-shadow: 0 2px 5px rgba(157, 78, 221, 0.2);
}

/* Üzerine gelince (Hover) */
.lang-menu .lang-option.active-lang:hover,
.sb-lang-options .lang-option.active-lang:hover {
    background: #d0a0ff !important;
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-skeleton {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    height: 400px;
    /* Kartın ortalama yüksekliği */
    display: flex;
    flex-direction: column;
}

.sk-img {
    width: 100%;
    height: 220px;
}

.sk-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-title {
    height: 24px;
    width: 80%;
}

.sk-text {
    height: 16px;
    width: 60%;
}

.sk-btn {
    height: 40px;
    width: 100%;
    margin-top: auto;
    border-radius: 12px;
}

/* --- MODERN & MOBİL UYUMLU SELECT MENÜSÜ --- */
.live-select-wrapper {
    position: relative;
    width: 100%;
    /* Mobilde taşmayı önleyen kapsayıcı */
    display: flex;
    align-items: center;
    gap: 8px;
    /* Select ve Buton arası boşluk */
}

.live-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    /* Uzun metinlerde taşmayı önle */
    max-width: 100%;
    padding: 16px 20px;
    padding-right: 55px;
    /* Ok işareti payı */

    /* Arka Plan: Hafif Degrade */
    background: linear-gradient(145deg, #ffffff, #f3f0ff);

    /* Kenarlık ve Köşeler */
    border: 2px solid #e0bbff;
    border-radius: 18px;

    /* Yazı Tipi */
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    /* Mobilde okunabilirlik için ideal */
    font-weight: 700;
    color: #2d0046;
    /* Çok koyu mor */
    line-height: 1.3;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gölge ile Derinlik */
    box-shadow: 0 4px 6px rgba(157, 78, 221, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05);

    /* Yazı taşarsa üç nokta (...) koy */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Özel Ok İşareti (SVG) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239d4edd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

/* Hover (Üzerine Gelince) */
.live-select:hover {
    border-color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.15);
    background: #fff;
}

/* Focus (Tıklayınca) */
.live-select:focus {
    outline: none;
    border-color: #7b2cbf;
    /* Mor Neon Parlama */
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
    background-color: #ffffff;
}

/* --- GRUP BAŞLIKLARI (Masaüstü Chrome/Edge için) --- */
optgroup {
    font-weight: 900;
    color: #fff;
    background-color: #5a189a;
    /* Koyu Mor Başlık */
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 5px;
}

/* --- SEÇENEKLER --- */
option {
    background-color: #fff;
    color: #333;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* --- EKLE BUTONU (+) TASARIMI --- */
.btn-add-cat {
    /* Esnek olmasın, boyutu sabit kalsın */
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    /* Select ile aynı yükseklik */

    background: linear-gradient(135deg, #222, #444);
    color: #fff;
    border: none;
    border-radius: 16px;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-add-cat:hover {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.4);
}

.btn-add-cat:active {
    transform: scale(0.95) rotate(90deg);
}

/* --- 📱 MOBİL UYUMLULUK AYARLARI --- */
@media (max-width: 768px) {
    .live-select {
        font-size: 16px;
        /* İOS'ta zoom yapmayı engeller */
        padding: 14px 16px;
        /* Mobilde biraz daha kompakt */
        padding-right: 40px;
        border-radius: 14px;
    }

    .btn-add-cat {
        width: 48px;
        height: 48px;
        /* Select ile orantılı küçültme */
        font-size: 24px;
        border-radius: 14px;
    }
}

/* --- HAVALI KATEGORİ SEÇİMİ CSS --- */

/* Kapsayıcı Alan */
.cool-category-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    /* Yükseklikleri eşitle */
    gap: 12px;
    padding: 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Select Kutusu Tasarımı */
.cool-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 2px solid #e0bbff;
    /* Varsayılan Mor Çerçeve */
    border-radius: 16px;
    padding: 15px 20px;
    padding-right: 50px;
    /* Ok işareti için pay */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4a148c;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(157, 78, 221, 0.05);

    /* Özel Ok İşareti (Base64 SVG) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239d4edd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
}

/* Hover (Üzerine Gelince) Efekti */
.cool-select:hover {
    border-color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.15);
}

/* Focus (Tıklayınca) Efekti */
.cool-select:focus {
    outline: none;
    border-color: #7b2cbf;
    background-color: #fbf8ff;
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
    /* Neon Glow */
}

/* Ekle (+) Butonu Tasarımı */
.cool-add-btn {
    flex-shrink: 0;
    width: 56px;
    /* Select ile orantılı */
    background: white;
    border: 2px dashed #9d4edd;
    /* Kesik Çizgili Border */
    color: #9d4edd;
    border-radius: 16px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Buton Hover Efekti */
.cool-add-btn:hover {
    background: #9d4edd;
    color: white;
    border-style: solid;
    /* Çizgi düzleşir */
    transform: rotate(90deg) scale(1.05);
    /* Dönme Efekti */
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
}

.cool-add-btn:active {
    transform: scale(0.95);
}

/* Eklenen Kategoriler (Etiketler) */
.category-tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 30px;
    /* Boşken bile yer kaplasın */
}

/* Tekil Etiket Tasarımı */
.cool-tag {
    background: linear-gradient(135deg, #e0bbff 0%, #d0a0ff 100%);
    color: #4a148c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c77dff;
    box-shadow: 0 2px 5px rgba(157, 78, 221, 0.1);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transition: all 0.2s;
}

.cool-tag:hover {
    background: #ff4d6d;
    color: white;
    border-color: #ff4d6d;
}

.cool-tag span {
    font-size: 14px;
    font-weight: 900;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .cool-select {
        padding: 12px 15px;
        font-size: 13px;
    }

    .cool-add-btn {
        width: 48px;
    }
}

/* ========================================================================================================================= */
/* --- 🤖 PROMPT AI CSS (AVATAR UÇUŞU) --- */

/* MASAÜSTÜ AYARLARI */
.ai-studio-wrapper {
    position: relative;
    /* ÖNEMLİ: Sidebar buna göre hizalanacak */
    width: 100%;
    height: calc(100vh - 140px);
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    /* ÖNEMLİ: Sidebar kapalıyken dışarı taşanı gizle */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
}

/* MOBİL AYARLARI (ODAK MODU) */
@media (max-width: 900px) {
    #view-ai {
        padding: 0 !important;
        margin: 0 !important;
    }

    .ai-studio-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        /* Tam ekran */
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        z-index: 9999 !important;
        border: none !important;
    }

    .ai-mobile-exit-btn {
        display: flex !important;
        left: auto !important;
        right: 20px !important;
    }

    /* Mobilde Giriş Ekranı Düzeni */
    .intro-center {
        padding: 0 20px;
        margin-top: 280px !important;
    }

    .ai-toolbar {
        padding-top: 15px !important;
        padding-right: 120px !important;
        height: auto !important;
        padding-bottom: 10px !important;
    }
}

/* --- ORTAK AYARLAR --- */
.ai-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    flex-direction: column;
    overflow: hidden;
}

.ai-screen.active {
    display: flex;
    opacity: 1;
    z-index: 10;
}

/* --- 🤖 PROMPT AI CSS (KUSURSUZ MORPHING UÇUŞ) --- */

/* --- 🤖 PROMPT AI CSS (ORİJİNAL UÇUŞ + DROP-IN) --- */

/* 1. UÇAN MASKOT (Senin Orijinal Ayarların + Giriş Animasyonu) */
#floating-mascot {
    position: fixed;
    z-index: 10000;
    pointer-events: none;

    /* Başlangıç Konumu: Tam Orta */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 250px;
    height: 250px;

    /* 👇 SENİN SEVDİĞİN YAYLANMA EFEKTİ (DOKUNMADIM) 👇 */
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Giriş Animasyonu (Sayfa açılınca düşer) */
    animation: dropDownBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

    background: transparent;
    border-radius: 0%;
    border: 2px solid transparent;
}

/* MOBİL AYARI */
@media (max-width: 900px) {
    #floating-mascot {
        top: 35%;
    }
}

/* 2. DÜŞME ANİMASYONU KEYFRAMES */
@keyframes dropDownBounce {
    0% {
        top: -300px;
        /* Ekran dışından başla */
        opacity: 0;
    }

    60% {
        top: 45%;
        /* Biraz aşağı inip yaylan */
        opacity: 1;
    }

    100% {
        /* Final konuma (CSS'teki top değerine) otur */
        opacity: 1;
    }
}

/* 3. UÇUŞ MODU (Hedefe Gidiş) */
.animating {
    /* Hedef Avatarın Stillerine Dönüş */
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #e0bbff !important;

    /* Uçarken Transformu Sıfırla (Zıplamadan gitmesi için transition içinde) */
    transform: translate(0, 0) !important;

    padding: 0;
    overflow: hidden;
}

/* 4. MASKOT GİZLEME */
#floating-mascot.mascot-landed {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

/* 5. HEDEF KUTU */
.mascot-avatar-container {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0bbff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.mascot-avatar-container.visible {
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

.mascot-avatar-container lottie-player {
    width: 120% !important;
    height: 120% !important;
}


/* GİRİŞ EKRANI */
#ai-intro-screen {
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
}

.intro-center {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 220px;
}

.intro-title {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-start-btn {
    background: #9d4edd;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
    transition: transform 0.2s;
    margin-top: 30px;
}

.intro-start-btn:hover {
    transform: scale(1.05);
}

/* SOHBET EKRANI */
#ai-chat-screen {
    background: #fff;
}

.ai-toolbar {
    flex-shrink: 0;
    height: 50px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    background: #fff;
}

.ai-history-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.chat-flow-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.ai-input-area {
    flex-shrink: 0;
    min-height: 80px;
    background: white;
    border-top: 1px solid #eee;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 30;
}

.input-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    align-items: center;
}

#aiUserInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    outline: none;
    resize: none;
    max-height: 100px;
}

.ai-send-btn {
    background: #9d4edd;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    /* YENİ EKLENENLER: Animasyon ve Gölge */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
    font-size: 18px;
    /* Ok simgesinin boyutu */
}

/* Üzerine Gelince (Hafif Büyüme ve Dönme) */
.ai-send-btn:hover {
    background: #7b2cbf;
    /* Biraz daha koyu mor */
    transform: scale(1.15) rotate(-15deg);
    /* Hafif sola yatık büyüme */
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.5);
    /* Gölge parlaması */
}

/* Tıklayınca (Basılma Efekti) */
.ai-send-btn:active {
    transform: scale(0.9) rotate(0deg);
    /* İçeri göçme */
    box-shadow: 0 2px 5px rgba(157, 78, 221, 0.2);
}

/* MESAJLAR */
.msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 85%;
    animation: popUp 0.3s ease;
}

.msg-row.user {
    align-self: flex-start;
    flex-direction: row;
}

.msg-row.user .msg-bubble {
    background: #f0f2f5;
    color: #333;
    border-radius: 4px 16px 16px 16px;
}

/* AI Mesajı (Sağa Yaslı) */
.msg-row.ai {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-row.ai .msg-bubble {
    background: linear-gradient(135deg, #fdfbfd 0%, #f4f0ff 100%);
    border: 1px solid #e0bbff;
    color: #333;
    border-radius: 16px 4px 16px 16px;
}

/* Avatar Stilleri */
.msg-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* MASKOT AVATAR KUTUSU (Lottie İçin) */
.mascot-avatar-container {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0bbff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Başlangıçta görünmez olsun (Uçan maskot gelene kadar) */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Animasyon bittiğinde görünür yap */
.mascot-avatar-container.visible {
    opacity: 1;
}

.mascot-avatar-container lottie-player {
    width: 120% !important;
    height: 120% !important;
}

.msg-bubble {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* Çıkış Butonu */
.ai-mobile-exit-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    align-items: center;
    gap: 5px;
}

/* Diğer */
.ai-prompt-box {
    background: #1e1e1e;
    color: #00e5ff;
    font-family: monospace;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 12px;
    white-space: pre-wrap;
}

.var-cards-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.var-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

.var-label {
    font-size: 11px;
    font-weight: 800;
    color: #9d4edd;
    text-transform: uppercase;
}

.var-input-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.var-input {
    flex: 1;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
}

.var-reset-btn {
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================= */
/* 🕒 MODERN GEÇMİŞ (KAPSAYICI İÇİNDE) */
/* ========================================= */

.history-sidebar {
    position: absolute;
    /* DEĞİŞTİ: Fixed yerine Absolute */
    top: 0;
    left: -320px;
    /* Kapalıyken solda gizli */
    width: 300px;
    height: 100%;
    /* Kapsayıcının yüksekliği kadar */
    background: #ffffff;
    z-index: 100;
    /* Kapsayıcı içinde en üstte */

    /* Sağ Tarafa Mor Border */
    border-right: 4px solid #9d4edd;

    /* Gölge */
    box-shadow: 10px 0 40px rgba(157, 78, 221, 0.15);

    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    display: flex;
    flex-direction: column;
}

.history-sidebar.open {
    left: 0;
    /* Açılınca kapsayıcının soluna yapış */
}

/* --- BAŞLIK ALANI --- */
.history-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #fff, #fbf8ff);
    flex-shrink: 0;
    /* Yüksekliğin bozulmasını engeller */
}

.history-title {
    font-size: 16px;
    font-weight: 800;
    color: #2d0046;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- GÜZELLEŞTİRİLMİŞ KAPATMA BUTONU --- */
.btn-close-history {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    /* Çok hafif bir çerçeve */
    width: 36px;
    /* Biraz daha büyük ve tıklanabilir */
    height: 36px;
    border-radius: 12px;
    /* Tam yuvarlak değil, modern yumuşak köşe */
    cursor: pointer;
    color: #777;
    /* İkon rengi */
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Yumuşak geçiş ve hafif gölge */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Üzerine Gelince (Hover) Efekti */
.btn-close-history:hover {
    background: #ff4d6d;
    /* Canlı bir silme kırmızısı */
    color: white;
    border-color: #ff4d6d;
    transform: rotate(90deg) scale(1.1);
    /* Hem dönüyor hem biraz büyüyor */
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
    /* Kırmızımsı parlama */
}

/* --- LİSTE ALANI --- */
.history-list {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar Tasarımı */
.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #e0bbff;
    border-radius: 10px;
}

/* --- HİÇ KAYIT YOKSA --- */
.history-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 50px;
    font-style: italic;
}

/* --- KART TASARIMI --- */
.history-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-item:hover {
    border-color: #9d4edd;
    background: #fbf8ff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.1);
}

.history-text {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.history-delete-btn {
    opacity: 0;
    background: #fff0f0;
    color: #e63946;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.history-item:hover .history-delete-btn {
    opacity: 1;
}

.history-delete-btn:hover {
    background: #e63946;
    color: white;
}

/* --- OVERLAY (Sadece Kutuyu Karartır) --- */
.history-overlay {
    position: absolute;
    /* DEĞİŞTİ: Fixed yerine Absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 0, 70, 0.2);
    /* Daha hafif bir karartma */
    backdrop-filter: blur(1px);
    z-index: 90;
    /* Sidebar'ın altında (100 > 90) */
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
    /* Wrapper radius ile uyumlu olsun */
}

.history-overlay.open {
    display: block;
    opacity: 1;
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- ✅ YENİ EKLENECEK CSS (MATEMATİKSEL UÇUŞ) --- */

/* UÇAN MASKOT (Sadece Başlangıç ve Animasyon Ayarı) */
#floating-mascot {
    position: fixed;
    /* Fixed olmak ZORUNDA (Scroll'dan etkilenmemesi için) */
    z-index: 10000;
    pointer-events: none;

    /* Başlangıç: Ekranın tam ortası */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 250px;
    height: 250px;

    /* Animasyon Hızı */
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Uçuş Modu (JS tarafından eklenir) */
/* Transformu sıfırlar ki JS'in verdiği top/left değerleri tam otursun */
.flying-mode {
    transform: translate(0, 0) !important;
}

/* MASKOT GİZLEME (Hedefe varınca) */
#floating-mascot.mascot-landed {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

/* HEDEF AVATAR KUTUSU */
.mascot-avatar-container {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0bbff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Başlangıçta gizli (Maskot gelene kadar) */
    transition: opacity 0.3s;
}

/* Animasyon bitince görünür yap */
.mascot-avatar-container.visible {
    opacity: 1;
}

.mascot-avatar-container lottie-player {
    width: 120% !important;
    height: 120% !important;
}

/* --- 📱 MOBİL ODAK MODU (ZORLAMALI CSS) --- */

/* Çıkış butonu stilleri */
.ai-mobile-exit-btn {
    display: none;
    position: fixed;
    /* Absolute yerine Fixed */
    top: 15px;
    left: 15px;
    z-index: 10000;
    /* En üst katman */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    align-items: center;
    gap: 5px;
}

/* ODAK MODU AKTİFKEN (Sadece Mobilde) */
@media (max-width: 900px) {

    /* 1. Menüyü Kesinlikle Gizle */
    body.ai-focus-mode .top-menu {
        display: none !important;
    }

    /* 2. Ana İçerik Padding'ini Sıfırla */
    body.ai-focus-mode .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 3. AI Ekranını Ekrana Çivile (Fixed) */
    body.ai-focus-mode .ai-studio-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        /* Dinamik viewport height */
        margin: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        z-index: 9999 !important;
        /* Her şeyin üstüne */
        border: none !important;
    }

    /* 4. Butonu Göster */
    body.ai-focus-mode .ai-mobile-exit-btn {
        display: flex !important;
    }

    /* 5. Maskot Konumu */
    body.ai-focus-mode .ai-studio-wrapper.chat-mode-active #floating-mascot {
        bottom: 95px !important;
        right: 15px !important;
        z-index: 10001 !important;
        /* Butondan bile yukarıda */
    }

    /* 6. Sohbet Alanı Boşluğu (Header olmadığı için) */
    body.ai-focus-mode .ai-toolbar {
        padding-top: 60px !important;
        /* Butonun altına it */
        height: auto !important;
    }
}

/* --- 🗑️ YENİ SOHBET BUTONU VE INPUT DÜZENİ --- */

.input-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    align-items: center;
}

/* Sol taraftaki sıfırlama butonu */
.ai-reset-btn {
    background: #fff0f0;
    /* Açık kırmızı */
    color: #e63946;
    border: 1px solid #ffccd5;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-reset-btn:hover {
    background: #e63946;
    color: white;
    transform: rotate(90deg);
    /* Üzerine gelince dönsün */
}

/* Prompt Kutusu Kopyalama Efekti */
.ai-prompt-box {
    cursor: pointer;
    /* Tıklanabilir olduğu belli olsun */
    transition: background 0.2s;
    position: relative;
}

.ai-prompt-box:active {
    background: #2d2d2d;
    transform: scale(0.98);
}

/* Kopyalandı yazısı için tooltip */
.ai-prompt-box::after {
    content: "Kopyalamak için tıkla";
    position: absolute;
    top: -25px;
    right: 0;
    background: #333;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.ai-prompt-box:hover::after {
    opacity: 1;
}

/* --- 🖥️ 1. TERMİNAL PROMPT KUTUSU --- */
.ai-terminal-box {
    background: #1e1e1e;
    color: #00ff9d;
    /* Hacker Yeşili veya senin morun */
    font-family: 'Courier New', monospace;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    word-wrap: break-word;
}

.terminal-copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #555;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-copy-btn:hover {
    background: #fff;
    color: #000;
}

/* --- 🎴 2. MODERN DEĞİŞKEN KARTLARI --- */
.modern-var-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modern-var-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.2s;
}

.modern-var-card:focus-within {
    border-color: #9d4edd;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.1);
}

.mv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mv-title {
    font-size: 11px;
    font-weight: 800;
    color: #9d4edd;
    text-transform: uppercase;
}

.mv-original {
    font-size: 11px;
    color: #999;
    font-style: italic;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.mv-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
}

.mv-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
}

.mv-input:focus {
    border-bottom-color: #9d4edd;
}

.mv-reset-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    transition: transform 0.3s, color 0.3s;
}

.mv-reset-btn:hover {
    color: #e63946;
    transform: rotate(-180deg);
}

/* --- 🚀 3. ÜRET (GENERATE) BUTONU --- */
.btn-generate-big {
    width: 100%;
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.4);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate-big:active {
    transform: scale(0.98);
}

/* --- 📱 4. ÜRETİM MODALI (ACTION SHEET) --- */
.action-sheet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    justify-content: center;
    align-items: flex-end;
    /* Mobilde alttan gelsin */
}

.action-sheet {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 30px 20px;
    padding-bottom: 50px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .action-sheet-overlay {
        align-items: center;
    }

    .action-sheet {
        border-radius: 24px;
        padding-bottom: 30px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- GÜNCELLENMİŞ IZGARA (DAHA KOMPAKT) --- */
.sheet-grid {
    display: grid;
    /* Mobilde 3 sütun, sığmazsa küçülür */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 400px;
    /* Çok uzarsa kaydırma çubuğu çıksın */
    overflow-y: auto;
    padding: 5px;
    /* Scroll bar payı */
}

/* Masaüstünde 4 sütun olsun */
@media (min-width: 768px) {
    .sheet-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sheet-btn {
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 12px 5px;
    /* İç boşluğu biraz azalttık */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    height: 100%;
    /* Kartların boyu eşit olsun */
}

.sheet-btn:hover {
    border-color: #9d4edd;
    background: #fdfaff;
    transform: translateY(-2px);
}

.sheet-icon {
    font-size: 24px;
}

/* İkonu biraz küçülttük */
.sheet-label {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    line-height: 1.2;
}

/* Sol taraftaki YENİ SOHBET (+) butonu */
.ai-new-chat-btn {
    background: #f0f9ff;
    /* Açık mavi */
    color: #007bff;
    /* Mavi ikon */
    border: 1px solid #b3d7ff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    /* Artı işareti büyük olsun */
    font-weight: bold;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-new-chat-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

/* --- YENİ AI MODEL SEÇİCİ --- */
.ai-model-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    outline: none;
    padding: 5px;
    max-width: 130px;
    appearance: none;
    /* Varsayılan oku gizle */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239d4edd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    padding-right: 20px;
}

.ai-model-select:hover {
    color: #9d4edd;
}

/* --- AKILLI MODAL TASARIMI --- */
.sheet-section-title {
    grid-column: 1 / -1;
    /* Tüm satırı kapla */
    font-size: 12px;
    font-weight: 800;
    color: #999;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Önerilen Kart (Highlighted) */
.sheet-btn.recommended {
    background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%);
    border: 2px solid #9d4edd;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.2);
    order: -1;
    /* En başa al */
}

.sheet-btn.recommended .sheet-label {
    color: #9d4edd;
    font-weight: 900;
}

.sheet-btn.recommended::after {
    content: '★ ÖNERİLEN';
    position: absolute;
    top: -10px;
    background: #9d4edd;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- DÜZELTME: Model Seçici Tıklama Sorunu --- */
.ai-model-select {
    position: relative;
    /* Pozisyon verelim */
    z-index: 100;
    /* Diğer öğelerin önüne geçsin */
    cursor: pointer;
    background-color: transparent;
    /* Arka planı şeffaf kalsın */
}

/* --- DÜZELTME: Kart Genişliği ve Sıkışma Sorunu --- */
.msg-row.ai {
    width: 100%;
    /* Satırın tamamını kullanabilsin */
    max-width: 95%;
    /* Kenarlardan hafif boşluk kalsın */
    padding-right: 10px;
}

.msg-row.ai .msg-bubble {
    width: 100%;
    /* Balon tüm alanı kaplasın */
    flex: 1;
    /* Esnek olsun */
    min-width: 300px;
    /* Mobilde bile çok küçülmesin */
}

/* Terminal kutusunun genişlemesi için */
.ai-terminal-box {
    width: 100%;
    box-sizing: border-box;
    /* Padding dahil hesapla */
    white-space: pre-wrap;
    /* Uzun metinleri aşağı at */
}

/* =========================================================
       📱 MOBİL UYUMLULUK GÜNCELLEMELERİ (EN ALTA EKLE)
       ========================================================= */

@media (max-width: 768px) {

    /* --- 1. SOHBET INPUT ALANI DÜZENLEMESİ --- */
    .ai-input-area {
        padding: 8px 10px;
        /* Kenar boşluklarını azalttık */
        min-height: auto;
        /* Yüksekliği içeriğe göre ayarla */
    }

    .input-wrapper {
        padding: 6px;
        /* İç boşluğu sıkılaştır */
        gap: 6px;
        /* Elemanlar arası boşluğu azalt */
        border-radius: 20px;
        /* Daha kompakt yuvarlaklık */
    }

    /* Model Seçici (Dropdown) */
    .ai-model-select {
        max-width: 90px;
        /* Genişliği kısıtla */
        font-size: 11px;
        /* Yazıyı küçült */
        padding: 5px;
        padding-right: 15px;
        /* Ok işareti için az yer */
        background-size: 12px;
        /* Ok ikonunu küçült */
        height: 36px;
        /* Butonlarla aynı hizaya getir */
    }

    /* Yeni Sohbet (+) Butonu */
    .ai-new-chat-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* Mesaj Yazma Alanı */
    #aiUserInput {
        font-size: 14px;
        /* Mobilde okunabilirlik */
        padding: 8px 5px;
        height: 36px;
        /* Tek satır yüksekliği */
        min-height: 36px;
    }

    /* Gönder Butonu */
    .ai-send-btn {
        width: 36px;
        height: 36px;
    }

    /* Aradaki Dikey Çizgi */
    .input-wrapper>div[style*="width:1px"] {
        margin: 0 2px !important;
        /* Boşluğu azalt */
    }

    /* --- 2. ÜRET (ACTION SHEET) MENÜSÜ DÜZENLEMESİ --- */
    .action-sheet {
        padding: 20px 15px;
        /* Yan boşlukları azalt */
        padding-bottom: 40px;
        /* Alt taraf (iPhone Home bar için) */
        max-height: 80vh;
        /* Ekranın %80'inden fazla yer kaplamasın */
    }

    .sheet-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Mobilde kesin 3 sütun */
        gap: 8px;
        /* Araları sıkılaştır */
        padding: 2px;
    }

    .sheet-btn {
        padding: 10px 5px;
        border-radius: 12px;
    }

    .sheet-icon {
        font-size: 20px;
        /* İkonu biraz küçült */
    }

    .sheet-label {
        font-size: 10px;
        /* Yazıyı küçült */
        font-weight: 600;
    }

    /* Başlıkları küçült */
    .sheet-section-title {
        font-size: 11px;
        margin-top: 10px;
    }

    /* --- 3. KLAVYE VE ODAK MODU DÜZELTMELERİ --- */

    /* iOS'ta inputa tıklayınca zoom yapmayı engelle (Min 16px kuralı) */
    /* Sadece inputlar için fontu büyütüp scale ile küçültebiliriz veya direkt 14px kabul edebiliriz */
    /* Burada kullanıcı deneyimi için 14px bıraktık, gerekirse 16px yapılabilir */

    /* Mobilde Mesaj Balonları */
    .msg-bubble {
        font-size: 13px;
        /* Mobilde mesajlar çok yer kaplamasın */
        padding: 10px 12px;
    }

    .ai-terminal-box {
        font-size: 11px;
        /* Kod bloğu küçülsün */
        padding: 10px;
    }

    /* Değişken Kartları Mobilde Alt Alta */
    .modern-var-container {
        gap: 8px;
    }

    .modern-var-card {
        padding: 10px;
    }

    .mv-title {
        font-size: 10px;
    }
}

/* --- GÖZDEN KAÇAN: Android/iOS Klavye Açılınca Düzen --- */
@media (max-height: 500px) {

    /* Klavye açılınca ekran yataymış gibi davranır */
    .ai-toolbar {
        display: none;
        /* Üst barı gizle ki yer açılsın */
    }

    .intro-center {
        margin-top: 50px !important;
        /* Giriş ekranını yukarı çek */
    }

    /* Mobilde ayırıcı çizgiyi gizle */
    .input-divider {
        display: none !important;
    }
}

/* --- GÜNCELLENMİŞ EFEKT KUTUSU --- */
#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    overflow: hidden;
    /* Taşmaları engelle */
}

/* Giriş ekranındaki yazıların ve maskotun efektin önünde durması için */
.intro-center {
    position: relative;
    z-index: 10;
    /* Efektin (0) önüne geç */
    background: rgba(255, 255, 255, 0.5);
    /* Yazıların okunması için çok hafif flu zemin (İsteğe bağlı) */
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    /* Arkadaki noktaları hafif bulanıklaştırır, yazı netleşir */
}

/* ========================================= */
/* 🖱️ ÖZEL RESİMLİ İMLEÇ (IMAGE CURSOR) */
/* ========================================= */

/* 1. Genel Durum (Normal Ok) */
/* Tüm sitede bu resim görünecek */
body,
html {
    /* Resim bulunamazsa varsayılan 'auto' kullanılır */
    cursor: url('images/normal-ok.png'), auto;
}

/* 2. Tıklanabilir Alanlar (Hover Durumu) */
/* Buton, link, input vb. üzerine gelince bu resim çıkacak */
a,
button,
input,
select,
textarea,
.card-container,
/* Senin yapay zeka kartların */
.menu-item,
/* Menü öğeleri */
.like-btn,
/* Beğeni butonu */
.sheet-btn,
/* Alt menü butonları */
.nav-item,
/* Üst menü */
.cool-tag,
/* Kategori etiketleri */
[role="button"] {
    /* Resim bulunamazsa varsayılan 'pointer' (el) kullanılır */
    cursor: url('images/tikla-el.png'), pointer !important;
}

/* 3. Tıklama Anı (Tıkladığın an görüntü değişsin istersen) */
body:active,
a:active,
button:active {
    /* Tıklama anında resim hafif aşağı kaysın veya değişsin */
    cursor: url('images/tikla-el.png'), pointer !important;
}

/* --- VANTA.JS TAM EKRAN DÜZELTMESİ --- */
#vanta-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- YILDIZ PUANLAMA SİSTEMİ CSS --- */

/* Kartın üzerindeki puan göstergesi */
.rating-badge-row {
    display: flex;
    justify-content: flex-end;
    /* Sağa yasla */
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.rating-badge-row:hover {
    transform: scale(1.05);
}

.rating-score-text {
    font-weight: 800;
    color: #f1c40f;
    /* Altın Sarısı */
    font-size: 15px;
    margin-right: 4px;
}

.rating-star-icon {
    font-size: 16px;
}

/* Puanlama Modalı (Popup) */
.rating-modal-overlay {
    display: none;
    /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.rating-modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* İnteraktif Yıldızlar */
.star-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    direction: rtl;
    /* Yıldızları sağdan sola doldurma efekti için */
}

.star-input-wrapper input {
    display: none;
    /* Radyo butonlarını gizle */
}

.star-input-wrapper label {
    font-size: 35px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

/* Seçili ve üzerine gelinen yıldızları boya */
.star-input-wrapper input:checked~label,
.star-input-wrapper label:hover,
.star-input-wrapper label:hover~label {
    color: #f1c40f;
}

.rating-info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-close-rating {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.btn-close-rating:hover {
    background: #e0e0e0;
}

/* --- MOBİLDE SIDEBAR AYARLARI --- */
@media (max-width: 768px) {
    .history-sidebar {
        width: 260px;
        /* Mobilde daha dar (300px yerine) */
        left: -280px;
        /* Kapalıyken tam gizlenmesi için genişliğe göre ayar */
    }

    /* Açıkken yine 0 noktasına gelecek */
    .history-sidebar.open {
        left: 0;
    }
}

/* --- MOBİL İÇİN MODERN YAN PANEL (YÜZEN KART STİLİ) --- */
@media (max-width: 768px) {
    .history-sidebar {
        /* Genişlik ve Gizli Konum */
        width: 270px;
        left: -300px;
        /* Kapalıyken tamamen dışarıda */

        /* 🔥 MODERN DOKUNUŞLAR BURADA BAŞLIYOR 🔥 */

        /* 1. Tam Boy Yerine "Yüzen" Görünüm */
        top: 12px !important;
        /* Üstten hafif boşluk */
        height: calc(100% - 24px) !important;
        /* Alttan da boşluk kalsın */

        /* 2. Sağ Köşeleri Yuvarlat (Ovalleştir) */
        border-radius: 0 24px 24px 0 !important;

        /* 3. Kenarlığı Mobilde Biraz İncelt */
        border-right: 3px solid #9d4edd !important;

        /* 4. Derinlik Katan Gölge */
        box-shadow: 10px 5px 30px rgba(157, 78, 221, 0.2) !important;

        /* Taşmaları engelle (Köşelerin düzgün görünmesi için) */
        overflow: hidden;
    }

    /* Açıldığında sol kenara tam otursun (Boşluklar top/height ile ayarlı zaten) */
    .history-sidebar.open {
        left: 0;
    }

    /* Başlık alanını mobilde biraz daha kompakt yap */
    .history-header {
        padding: 15px !important;
    }

    /* Listeyi de sıkılaştır */
    .history-list {
        padding: 15px !important;
    }
}

/* İptal Butonu Ana Stil */
.btn-cancel-modal {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #eee;
    /* Normal hali gri */
    color: #333;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Geçiş yumuşatması */
}

/* Üzerine gelince (Hover) Kırmızı Olacak */
.btn-cancel-modal:hover {
    background: #e63946;
    /* Kırmızı arka plan */
    color: white;
    /* Yazı beyaz olsun ki okunsun */
    transform: translateY(-2px);
    /* Hafif yukarı kalkma efekti (isteğe bağlı) */
}

/* Tıklayınca hafif küçülme efekti */
.btn-cancel-modal:active {
    transform: scale(0.98);
}

/* --- MOBİL MENÜ ELEMANLARI (SIDEBAR) MODERNİZASYONU --- */

/* Menü listesinin genel kapsayıcısı */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    /* Elemanlar arasındaki o çok az boşluk */
    padding: 15px !important;
}

/* Her bir menü linki (sb-link) */
.sb-link {
    display: flex;
    align-items: center;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    /* Kenarları daha oval ve modern yapar */
    background: transparent;
    color: #444 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none;
    border: 1px solid transparent;
}

/* Üzerine gelince (Hover) veya Aktifken */
.sb-link:hover,
.sb-link.active {
    background: rgba(157, 78, 221, 0.08) !important;
    /* Marka renginin çok açık tonu */
    color: #9d4edd !important;
    /* Marka rengi */
    transform: translateX(5px);
    /* Sağa doğru hafif bir kayma efekti */
}

/* Aktif olan link için sol tarafa ince bir belirteç */
.sb-link.active {
    border-left: 4px solid #9d4edd !important;
    background: rgba(157, 78, 221, 0.12) !important;
}

/* Link içindeki ikonların boyutu ve hizası */
.sb-link i,
.sb-link .icon {
    font-size: 18px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

/* Linke basıldığında ikonu hafifçe büyüt */
.sb-link:active i {
    transform: scale(1.2);
}

/* Dil seçeneği gibi özel alanlar için alt çizgi ayracı (isteğe bağlı) */
.sb-lang-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- MOBİL ÜST MENÜ DİNAMİK DÜZENLEME --- */

@media (max-width: 900px) {

    /* 1. Kütüphane sekmesinde değilsek Arama Kutusunu gizle */
    body:not([data-active-tab="library"]) .search-box {
        display: none !important;
    }

    /* 2. Arama kutusu gizlendiğinde Menü Butonunu sağa yasla ve yerleşimi düzelt */
    body:not([data-active-tab="library"]) .search-area {
        display: flex;
        justify-content: flex-end;
        /* Sadece sağa yasla */
        grid-template-columns: none;
        /* Grid yapısını devre dışı bırak */
        width: auto;
    }

    /* 3. Menü butonunun yerleşimini sabitle */
    body:not([data-active-tab="library"]) .mobile-menu-btn {
        margin-left: auto;
        grid-column: auto;
        grid-row: auto;
    }

    /* 4. Filtre butonunu diğer sayfalarda gizle (Kütüphane'ye özel kalsın) */
    body:not([data-active-tab="library"]) .filter-container {
        display: none !important;
    }

    /* 5. Logo ve Buton arasındaki boşluğu koru */
    body:not([data-active-tab="library"]) .menu-container {
        flex-direction: row;
        /* Alt alta gelmesini engelle, yan yana kalsınlar */
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
    }
}

/* --- YENİ ÜRET BUTONU (MODAL İÇİN) --- */
.generate-btn-modal {
    flex: 1;
    /* Kopyala butonu ile eşit genişlikte olsun */
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    /* Marka mor rengi */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.generate-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.5);
    background: linear-gradient(135deg, #a65ce0 0%, #853dc7 100%);
}

.generate-btn-modal:active {
    transform: scale(0.98);
}

/* ============================================
   MOBİL UYUMLULUK DÜZELTMESİ (GÖNDER SAYFASI)
   ============================================ */

@media (max-width: 768px) {

    /* 1. Model ve Kategori Kutusunu Alt Alta Al */
    /* Not: HTML'deki inline style'ı ezmek için !important kullanıyoruz */
    #view-submit .info-section[style*="display:flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Kutuların Genişliğini %100 Yap */
    #view-submit .info-section>div {
        width: 100% !important;
        flex: none !important;
    }

    /* 2. Değişkenler (Variables) Kısmını Alt Alta Al */
    /* Yan yana 2 sütun yerine tek sütun olsun */
    #variableInputsContainer {
        grid-template-columns: 1fr !important;
    }

    /* 3. Fotoğraf / Video Seçim Butonlarını Rahatlat */
    #view-submit button[onclick^="selectMediaType"] {
        padding: 12px 5px !important;
        font-size: 13px !important;
    }
}

/* --- Modal İçindeki Üret Butonu --- */
.generate-btn-modal {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    /* Mor degrade */
    color: white;
    border: none;
    padding: 0 25px;
    /* Genişlik */
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    /* Kopyala butonuyla aynı yükseklik */
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
    transition: all 0.2s ease;
    flex: 1;
    /* Alana yayılması için */
}

.generate-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

.generate-btn-modal:active {
    transform: scale(0.98);
}

/* Kopyala ve Like butonlarının düzeni bozulmasın diye action-area ayarı */
.modal-right .action-area {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Kopyala butonu biraz küçülebilir, Üret öne çıksın */
.modal-right .copy-btn {
    flex: 1;
}

/* ============================================
   PWA İNDİRME BUTONU (MİNİMAL İKON)
   ============================================ */
.install-icon-btn {
    display: none;
    /* JS ile açılacak */
    background: transparent;
    /* Arkaplan şeffaf */
    border: 2px solid #2ecc71;
    /* Yeşil çerçeve */
    color: #2ecc71;
    /* Yeşil ikon */
    border-radius: 50%;
    /* Tam yuvarlak */
    width: 40px;
    /* Sabit genişlik */
    height: 40px;
    /* Sabit yükseklik */
    padding: 0;
    margin-left: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

/* Üzerine gelince (Hover) */
.install-icon-btn:hover {
    background: #2ecc71;
    /* İçi yeşil dolsun */
    color: white;
    /* İkon beyaz olsun */
    transform: scale(1.1);
    /* Hafif büyüsün */
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    /* Parlama efekti */
}

/* JS tarafından eklenen animasyon (Main3.js'de vardı) */
.install-anim {
    animation: pulse-green 2s infinite;
}

/* Butonun içindeki ikonu ortala */
.install-icon-btn {
    display: none;
    /* display:flex JS tarafından ezilecek */
}

/* JS açtığında flex olsun ki ikon tam ortalansın */
button#btnInstallApp[style*="display: inline-block"],
button#btnInstallApp[style*="display: block"] {
    display: inline-flex !important;
}

/* Masaüstü İndir Butonu Görünürlük Ayarı */
button#btnInstallApp[style*="display: inline-block"],
button#btnInstallApp[style*="display: block"] {
    display: inline-flex !important;
    /* JS ne derse desin flex yap */
    align-items: center;
    justify-content: center;
}

