/* --- DLE LOADING LAYER (MODERNIZE) --- */
#loading-layer {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 15px 25px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 50px !important;
    border: none !important;
}

/* --- QUOTES & SPOILERS (ANTRASIT STYLE) --- */
.scriptcode,
.title_quote,
.title_spoiler,
.text_spoiler,
.quote {
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px;
    margin-bottom: 15px;
}

.title_quote {
    border-left: 3px solid var(--accent) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    background: rgba(229, 9, 20, 0.05) !important;
}

.quote,
blockquote {
    border-left: 3px solid var(--accent) !important;
    font-style: italic;
    opacity: 0.9;
}

.title_spoiler {
    font-weight: 800;
    cursor: pointer;
    background: var(--bg-antrasit) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title_spoiler:hover {
    border-color: var(--accent) !important;
}

/* --- CALENDAR (DARK MODERN) --- */
.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar tr th {
    background: transparent !important;
    color: var(--accent) !important;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 10px 0;
}

.calendar tr td {
    padding: 8px !important;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 4px;
    font-size: 0.8rem;
}

.calendar tr td.weekday {
    color: var(--accent);
    font-weight: bold;
}

.calendar tr td a {
    color: var(--accent) !important;
    font-weight: 900;
}

.calendar .monthselect {
    padding-bottom: 10px !important;
    font-weight: 800;
    color: var(--text-main) !important;
}

/* --- VOTING & POLLS --- */
.voteprogress,
.pollprogress {
    background: var(--bg-body) !important;
    height: 8px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
}

.voteprogress span,
.pollprogress span {
    background: var(--accent) !important;
    border-radius: 10px;
}

/* --- DLE DIALOG (POPUP) ANA ÇERÇEVE --- */
.ui-dialog {
    background: var(--bg-antrasit) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important;
    z-index: 9999 !important;
    overflow: hidden;
}

/* --- BAŞLIK ALANI (TITLEBAR) --- */
.ui-dialog-titlebar {
    background: var(--bg-body) !important;
    padding: 18px 25px !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 !important;
}

.ui-dialog-title {
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    color: var(--text-main) !important;
    float: none !important;
    /* DLE'nin float hatasını ezer */
}

/* --- KAPATMA BUTONU (CLOSE BUTTON) - Facianın Çözümü --- */
.ui-dialog-titlebar-close {
    position: static !important;
    /* Float yerine esnek yerleşim */
    background: rgba(229, 9, 20, 0.1) !important;
    /* Accent renginin çok şeffaf hali */
    border: 1px solid rgba(229, 9, 20, 0.2) !important;
    color: var(--accent) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

.ui-dialog-titlebar-close:hover {
    background: var(--accent) !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Kapatma ikonunun içindeki DLE metnini gizle, temiz görüntü sağla */
.ui-dialog-titlebar-close .ui-button-text {
    display: none !important;
}

.ui-dialog-titlebar-close:after {
    content: "\F62A";
    /* Bootstrap Icons "X" kodu */
    font-family: 'bootstrap-icons';
    font-size: 1.1rem;
}

/* --- İÇERİK ALANI --- */
.ui-dialog-content {
    padding: 25px !important;
    color: var(--text-main) !important;
    font-size: 0.9rem !important;
    background: transparent !important;
}

/* Profil kartındaki inputları ve yazıları düzelt */
.ui-dialog-content input,
.ui-dialog-content textarea {
    background: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* --- ALT BUTON ALANI (BUTTON PANE) --- */
.ui-dialog-buttonpane {
    background: var(--bg-body) !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 15px 25px !important;
    margin: 0 !important;
}

.ui-dialog-buttonset {
    float: none !important;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ui-dialog-buttonpane button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s;
}

.ui-dialog-buttonpane button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- MODAL ARKASINDAKİ KARARTMA (OVERLAY) --- */
.ui-widget-overlay {
    background: #000 !important;
    opacity: 0.8 !important;
    backdrop-filter: blur(5px);
    /* Premium hissi kanka */
    z-index: 9998 !important;
}

/* --- CAPTCHA FIX (ANTRAZIT UYUMU) --- */
.c-captcha img,
.dle-captcha img {
    filter: invert(1) hue-rotate(180deg);
    /* Karanlık temada beyaz captcha resmini tersine çevirip okunur yapar */
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* --- RATING --- */
.ratingplus {
    color: #2ecc71 !important;
    font-weight: bold;
}

.ratingminus {
    color: #e74c3c !important;
    font-weight: bold;
}

.ratingzero {
    color: var(--text-main);
    opacity: 0.5;
}

/* --- AUTOCOMPLETE & SUGGESTIONS --- */
#searchsuggestions {
    background: var(--bg-antrasit) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-main) !important;
}

#searchsuggestions a {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 12px 20px !important;
}

#searchsuggestions a:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--accent) !important;
}


/* --- DLE PUSH NOTIFICATIONS (MODERNIZE) --- */
.DLEPush {
    z-index: 9999 !important;
    /* Her şeyin üstünde olmalı */
    position: fixed;
    right: 25px;
    top: 25px;
}

@keyframes DLEPush-slideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.DLEPush-notification.wrapper {
    animation: DLEPush-slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    margin-bottom: 15px;
    width: 380px;
    background: var(--bg-antrasit) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-main) !important;
    overflow: hidden;
}

.DLEPush-notification .DLEPush-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    height: 100%;
    font-size: 1.5rem;
    background: var(--accent);
    /* Default olarak ana rengin */
}

.DLEPush-notification .DLEPush-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.DLEPush-notification .DLEPush-header {
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
    font-size: 0.85rem;
    margin-left: 15px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.DLEPush-notification .DLEPush-message {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
    margin: 5px 15px 15px 15px;
    opacity: 0.8;
    line-height: 1.4;
}

.DLEPush-notification .DLEPush-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(128, 128, 128, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.5;
}

.DLEPush-notification .DLEPush-close:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.2);
    color: var(--accent);
}




/* Push Durum Renkleri (Senior Dokunuşu) */
.DLEPush-notification.wrapper.push-success {
    border-left: 4px solid #2ecc71 !important;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
    background: #2ecc71 !important;
}

.DLEPush-notification.wrapper.push-warning {
    border-left: 4px solid #f1c40f !important;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
    background: #f1c40f !important;
}

.DLEPush-notification.wrapper.push-error {
    border-left: 4px solid var(--accent) !important;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
    background: var(--accent) !important;
}

/* --- FORM ELEMANLARI EKSTRA --- */
input[type="text"].comments_author_field {
    width: 100%;
    margin-bottom: 15px;
    background: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    padding: 12px !important;
    border-radius: 10px !important;
}

input[type="text"].comments_author_field:focus {
    border-color: var(--accent) !important;
    outline: none;
}


/* --- DLE DROPDOWN MENÜ MODERNIZE --- */
#dropmenudiv {
    background-color: var(--bg-antrasit) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    min-width: 180px !important;
    z-index: 10000 !important;
    /* Her şeyin üstünde durmalı */
    font-family: 'Inter', sans-serif !important;
}

/* Menü Linkleri */
#dropmenudiv a {
    color: var(--text-main) !important;
    padding: 10px 20px !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: none !important;
    /* Senior işi, gecikme yok */
    border: none !important;
    white-space: nowrap !important;
}

/* Hover Durumu: Üzerine gelince kırmızı vurgu */
#dropmenudiv a:hover {
    background-color: rgba(229, 9, 20, 0.1) !important;
    /* Accent renginin çok şeffaf hali */
    color: var(--accent) !important;
}

/* Menü içindeki ayraç çizgileri veya spanlar gelirse */
#dropmenudiv span {
    display: block;
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Mobil için tıklama alanını koruyalım */
@media (max-width: 768px) {
    #dropmenudiv {
        min-width: 200px !important;
    }

    #dropmenudiv a {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}