/* Gündem (Ana Tema Renk Paleti) */

:root {
    --primary-dark: #2c3e50;
    --primary-blue: #34495e;
    --accent-coral: #ff9a76;
    --accent-mint: #7fcdcd;
    --accent-cream: #fef5e7;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* Gündem Container */
#gundem .gundem-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.gundem-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Sol Frame: Başlıklar Listesi */
.gundem-left {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    overflow: hidden;
    height: fit-content;
    max-height: calc(100vh - 180px);
    position: sticky;
    top: 100px;
}

.gundem-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
}

.gundem-header h2 {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.gundem-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 15px;
}

.gundem-search {
    margin-bottom: 15px;
}

.topic-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.topic-search-input:focus {
    outline: none;
    border-color: var(--accent-coral);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.1);
}

.topic-search-input::placeholder {
    color: var(--primary-blue);
    opacity: 0.7;
}

.gundem-btn {
    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gundem-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-coral);
    transform: translateY(-2px);
}

.gundem-btn.active {
    background: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
    font-weight: 600;
}

/* Başlıklar Listesi */
.topics-list {
    max-height: calc(100vh - 340px);
    overflow-y: auto;
}

.topic-item {
    padding: 18px 25px;
    border-bottom: 1px solid #e8ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-item:hover {
    background: linear-gradient(135deg, var(--accent-cream) 0%, #fff9f0 100%);
    padding-left: 30px;
}

.topic-item.active {
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-cream) 100%);
    border-left: 5px solid var(--primary-dark);
    padding-left: 20px;
    font-weight: 600;
}

.topic-title {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 500;
}

.topic-item.active .topic-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.topic-count {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
    background: rgba(127, 205, 205, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
}

/* Sağ Frame: Entry'ler */
.gundem-right {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    padding: 35px;
    min-height: 500px;
}

.entries-container {
    max-width: 800px;
}

.topic-detail-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--accent-coral);
}

.topic-detail-title {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.3;
}

.topic-detail-meta {
    display: flex;
    gap: 25px;
    color: var(--primary-blue);
    font-size: 14px;
    flex-wrap: wrap;
}

/* Entry Kartı */
.entry-card {
    padding: 25px 0;
    border-bottom: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.entry-card:hover {
    background: linear-gradient(135deg, transparent 0%, var(--accent-cream) 100%);
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.entry-card:last-child {
    border-bottom: none;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 18px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Work Sans', sans-serif;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-author-name {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
}

.author-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.author-link:hover {
    color: var(--accent-mint);
    text-decoration: none;
}

.entry-date {
    color: var(--primary-blue);
    font-size: 13px;
}

.entry-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.entry-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.entry-like-btn:hover {
    background: linear-gradient(135deg, var(--accent-cream) 0%, #fff9f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 118, 0.2);
}

.entry-like-btn.liked {
    background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-cream) 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.entry-edit-btn,
.entry-delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.entry-edit-btn {
    background: var(--primary-blue);
    color: white;
}

.entry-edit-btn:hover {
    background: var(--primary-dark);
}

.entry-delete-btn {
    background: #e74c3c;
    color: white;
}

.entry-delete-btn:hover {
    background: #c0392b;
}

.topic-header-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.topic-edit-btn,
.topic-delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.topic-edit-btn {
    background: var(--primary-blue);
    color: white;
}

.topic-edit-btn:hover {
    background: var(--primary-dark);
}

.topic-delete-btn {
    background: #e74c3c;
    color: white;
}

.topic-delete-btn:hover {
    background: #c0392b;
}

/* Entry Gir Formu */
.entry-form {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--accent-cream) 0%, #fff9f0 100%);
    border-radius: 12px;
    border: 2px solid var(--accent-mint);
}

.entry-form h3 {
    margin: 0 0 18px 0;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}

.entry-textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.entry-textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.1);
}

.entry-submit-btn {
    margin-top: 0; /* entry-form-actions içinde flex ile hizalanıyor */
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff7f50 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
}

.entry-submit-btn:hover {
    background: linear-gradient(135deg, #ff7f50 0%, var(--accent-coral) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 154, 118, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: var(--primary-blue);
}

.empty-state p {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
}

/* Responsive */
@media (max-width: 768px) {
    .gundem-container,
    #gundem .gundem-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .gundem-left {
        position: static;
        max-height: none; /* Başlıklar listesi mobilde tam görünsün */
        margin-bottom: 20px;
    }

    /* Mobilde başlıklar listesi yüksekliği - scroll ile tam liste */
    .topics-list {
        max-height: 500px; /* Mobilde daha fazla başlık görünsün */
        overflow-y: auto;
    }

    /* Mobilde sağ panel (entries) gizli, sadece başlık seçildiğinde göster */
    .gundem-right {
        padding: 25px;
        display: none; /* Başlangıçta gizli */
    }

    .gundem-right.show-entries {
        display: block; /* Başlık seçilince görünsün */
    }

    /* Mobilde geri dön butonu ekle */
    .mobile-back-btn {
        display: inline-block;
        padding: 10px 20px;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: 8px;
        margin-bottom: 15px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-back-btn:hover {
        background: var(--primary-dark);
        transform: translateX(-3px);
    }

    .topic-detail-title {
        font-size: 26px;
    }

    .entry-content {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    .mobile-back-btn {
        display: none; /* Desktop'ta geri dön butonu gösterme */
    }

    .gundem-right {
        display: block !important; /* Desktop'ta her zaman görünsün */
    }
}

/* Modal: Yeni Başlık Oluştur */
.create-topic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.create-topic-modal.active {
    display: flex;
}

.create-topic-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.3);
}

.create-topic-content h3 {
    margin: 0 0 25px 0;
    color: var(--primary-dark);
    font-size: 26px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.create-topic-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.create-topic-input:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.1);
}

.create-topic-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.create-topic-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.create-topic-actions .btn-cancel {
    background: #e8ecef;
    color: var(--primary-blue);
    margin: 0;
    padding: 10px 20px;
}

.create-topic-actions .btn-cancel:hover {
    background: #d4d9dd;
}

.create-topic-actions .btn-submit {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff7f50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
    margin: 0;
    padding: 10px 20px;
}

.create-topic-actions .btn-submit:hover {
    background: linear-gradient(135deg, #ff7f50 0%, var(--accent-coral) 100%);
    box-shadow: 0 6px 20px rgba(255, 154, 118, 0.4);
}

/* Edit Modal (Düzenleme için) */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.edit-modal.active {
    display: flex;
}

.edit-modal-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.3);
}

.edit-modal-content h3 {
    margin: 0 0 25px 0;
    color: var(--primary-dark);
    font-size: 26px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.edit-modal-content label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
}

.edit-modal-content input[type="text"],
.edit-modal-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    box-sizing: border-box;
}

.edit-modal-content textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.edit-modal-content input:focus,
.edit-modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.1);
}

.edit-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.edit-modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.edit-modal-actions .btn-cancel {
    background: #e8ecef;
    color: var(--primary-blue);
    margin: 0;
    padding: 10px 20px;
}

.edit-modal-actions .btn-cancel:hover {
    background: #d4d9dd;
}

.edit-modal-actions .btn-submit {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff7f50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
    margin: 0;
    padding: 10px 20px;
}

.edit-modal-actions .btn-submit:hover {
    background: linear-gradient(135deg, #ff7f50 0%, var(--accent-coral) 100%);
    box-shadow: 0 6px 20px rgba(255, 154, 118, 0.4);
}

.edit-modal-actions .btn-delete {
    background: #e74c3c;
    color: white;
    margin: 0;
    padding: 10px 20px;
    margin-right: auto;
}

.edit-modal-actions .btn-delete:hover {
    background: #c0392b;
}

/* Onay Modal (Silme için) */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    z-index: 2001;
    align-items: center;
    justify-content: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.4);
    text-align: center;
}

.confirm-modal-content h3 {
    margin: 0 0 15px 0;
    color: #e74c3c;
    font-size: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.confirm-modal-content p {
    margin: 0 0 30px 0;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-modal-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.confirm-modal-actions .btn-cancel {
    background: #e8ecef;
    color: var(--primary-blue);
}

.confirm-modal-actions .btn-cancel:hover {
    background: #d4d9dd;
}

.confirm-modal-actions .btn-confirm-delete {
    background: #e74c3c;
    color: white;
}

.confirm-modal-actions .btn-confirm-delete:hover {
    background: #c0392b;
}

/* Scrollbar Styling */
.topics-list::-webkit-scrollbar {
    width: 8px;
}

.topics-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.topics-list::-webkit-scrollbar-thumb {
    background: var(--accent-mint);
    border-radius: 10px;
}

.topics-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ====================================
   Kullanıcı Profil Sayfası
   ==================================== */

.user-profile-page {
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.user-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: #34495e;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

.user-profile-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    font-weight: 600;
    color: white;
    margin: 0;
}

.btn-back-to-topics {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-mint) 0%, #5bb8b8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(110, 207, 207, 0.3);
}

.btn-back-to-topics:hover {
    background: linear-gradient(135deg, #5bb8b8 0%, var(--accent-mint) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 207, 207, 0.4);
}

.user-profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-tab-btn:hover {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(110, 207, 207, 0.1) 0%, rgba(110, 207, 207, 0.15) 100%);
    border-color: var(--accent-mint);
}

.user-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-mint) 0%, #5bb8b8 100%);
    color: white;
    border-color: var(--accent-mint);
    box-shadow: 0 4px 12px rgba(110, 207, 207, 0.3);
}

.user-tab-content {
    min-height: 300px;
}

.user-topics-list,
.user-entries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-topic-item,
.user-entry-item {
    padding: 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-topic-item:hover,
.user-entry-item:hover {
    border-color: var(--accent-mint);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(110, 207, 207, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, rgba(110, 207, 207, 0.05) 100%);
}

.user-topic-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.user-topic-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-topic-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-entry-topic {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--accent-mint);
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(110, 207, 207, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.user-entry-content {
    color: var(--primary-dark);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 1em;
}

.user-entry-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.user-entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   BKZ Özelliği - Ekşi Sözlük Tarzı Linkler
   ============================================ */

/* Entry form actions (bkz + gönder butonları) */
.entry-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Butonları sağa yasla */
    align-items: center;
    margin-top: 15px;
}

/* bkz butonu - gönder butonu ile aynı boyutlarda, sağa yaslı */
.bkz-add-btn {
    padding: 12px 30px; /* gönder butonu ile aynı padding */
    background: rgba(127, 205, 205, 0.1);
    border: 2px solid var(--accent-mint);
    color: var(--accent-mint);
    border-radius: 10px; /* gönder butonu ile aynı border-radius */
    font-size: 16px; /* gönder butonu ile aynı font-size */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    margin-top: 0; /* entry-submit-btn'daki margin-top'u kaldır */
}

.bkz-add-btn:hover {
    background: var(--accent-mint);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 205, 205, 0.3);
}

/* bkz Modal */
.bkz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.bkz-modal.active {
    display: flex;
}

.bkz-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bkz-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: lowercase;
}

.bkz-hint {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.bkz-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bkz-search-input:focus {
    outline: none;
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 3px rgba(127, 205, 205, 0.1);
}

/* bkz Arama Sonuçları */
.bkz-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.bkz-results-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bkz-result-item {
    padding: 12px 15px;
    background: rgba(127, 205, 205, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bkz-result-item:hover {
    background: rgba(127, 205, 205, 0.15);
    border-color: var(--accent-mint);
    transform: translateX(5px);
}

.bkz-result-title {
    color: var(--primary-dark);
    font-weight: 500;
    flex: 1;
}

.bkz-result-count {
    color: var(--text-secondary);
    font-size: 0.9em;
    opacity: 0.7;
}

/* Başlık bulunamadı */
.bkz-no-result {
    padding: 30px;
    text-align: center;
    background: rgba(255, 154, 118, 0.05);
    border-radius: 12px;
    border: 2px dashed var(--accent-coral);
}

.bkz-no-result p {
    margin: 0 0 15px 0;
    color: var(--primary-dark);
    font-size: 16px;
}

.bkz-add-anyway-btn {
    padding: 10px 20px;
    background: var(--accent-coral);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bkz-add-anyway-btn:hover {
    background: #ff8059;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 118, 0.3);
}

.bkz-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Entry içinde bkz linkleri */
.entry-content .bkz-wrapper {
    display: block;
    text-align: left; /* Sola yaslı - en solda */
    margin-top: 1em; /* Bir satır boşluktan sonra yeni satırda */
    margin-bottom: 0.5em;
}

.entry-content .bkz-label {
    color: inherit; /* Normal text rengi */
    font-weight: normal;
}

.entry-content .bkz-link {
    color: var(--accent-mint);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--accent-mint);
    transition: all 0.2s ease;
}

.entry-content .bkz-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: rgba(127, 205, 205, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Başlık Bulunamadı Sayfası */
.topic-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
}

.topic-not-found-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.topic-not-found h2 {
    font-size: 32px;
    color: var(--primary-dark);
    margin: 0 0 15px 0;
    font-weight: 700;
    text-transform: lowercase;
    font-family: 'Cormorant Garamond', serif;
}

.topic-not-found-title {
    font-size: 20px;
    color: var(--accent-mint);
    font-weight: 600;
    margin: 10px 0;
}

.topic-not-found-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 10px 0 30px 0;
}

.topic-create-btn,
.topic-create-link {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff7a52 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.3);
    text-decoration: none;
}

.topic-create-btn:hover,
.topic-create-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 154, 118, 0.4);
    color: white;
    text-decoration: none;
}

.topic-not-found-login {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.topic-not-found-login a {
    color: var(--accent-mint);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-mint);
}

.topic-not-found-login a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}
