/*
    engine.css — DataLife Engine (DLE 14 - 21+) asosiy tizim stillari
*/

/* --- DLE Asosiy qutilar va xabarlar --- */
.berrors {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.berrors b {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

#dle-info {
    margin-bottom: 20px;
}

/* --- Tezkor qidiruv (Fast Search) --- */
#searchsuggestions {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 99999;
}
#searchsuggestions a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
#searchsuggestions a:hover, #searchsuggestions a.selected {
    background: #f7f9fb;
    color: #071D33;
}
#searchsuggestions span.searchheading {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #071D33;
}
#searchsuggestions span {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* --- Speedbar (Non ushoqlari) --- */
#dle-speedbar {
    font-size: 0.9rem;
    color: #6c757d;
}
#dle-speedbar a {
    color: inherit;
    text-decoration: none;
}
#dle-speedbar a:hover {
    color: #071D33;
    text-decoration: underline;
}

/* --- DLE Push bildirishnomalari (DLE 17.1+) --- */
.DLEPush {
    z-index: 99999;
    position: fixed;
    right: 20px;
    top: 20px;
}

@keyframes DLEPush-show {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.DLEPush-notification.wrapper {
    animation-name: DLEPush-show;
    animation-duration: 0.4s;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    color: #333;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.DLEPush-notification .DLEPush-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 50px;
    height: 100%;
    text-align: center;
    background-color: #071D33;
}

.DLEPush-notification .DLEPush-header {
    font-weight: 600;
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
    margin-left: 1rem;
    margin-top: 0.75rem;
}

.DLEPush-notification .DLEPush-header:empty {
    margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.875rem;
    margin: 0.5rem 1rem 0.75rem 1rem;
    color: #555;
}

.DLEPush-notification .DLEPush-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #999;
    opacity: 0.8;
}
.DLEPush-notification .DLEPush-close:hover {
    opacity: 1;
    color: #333;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon { background-color: #00897b; }
.DLEPush-notification.wrapper.push-warning .DLEPush-icon { background-color: #FF9800; }
.DLEPush-notification.wrapper.push-error .DLEPush-icon { background-color: #e53935; }

/* --- oEmbed xatolar bloki (DLE 21.0+) --- */
.dlemedia-oembed-error {
    color: #555;
    background: #f0f0f0;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

/* Dinamik maydon tugmalari (DLE 21.0+) */
.btn.bg-light {
    color: #333;
    background-color: #eae9e9;
    text-shadow: none;
    box-shadow: none;
}
.btn.bg-light.remove-dynamic-item {
    color: #ef5350;
}

/* Spoyler tuzatmasi (DLE 20.0+) */
.text_spoiler {
    display: none;
}

/* Kalendar tuzatmasi (DLE 20.0+) */
.monthselect-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
}
.monthselect-title {
    display: inline-block;
}

/* Smart Captcha (DLE 19.1+) */
.smart-captcha {
    display: inline-block;
}

/* Yashirin matn (DLE 19.1+) */
.dleshowhidden {
    color: #104d92;
    background-color: #E3F2FD;
    border: 1px solid #1E88E5;
    box-shadow: 0 5px 12px rgba(126, 142, 177, 0.2);
    padding: .83em;
    border-radius: 6px;
}

/* Nusxa ko'chirish tugmasi (DLE 19.0+) */
.clipboard-copy-link svg {
    color: #6c838e;
    vertical-align: middle;
    margin-top: -3px;
}

/* Iqtibos havolasi (DLE 18.1+) */
.quote_link {
    float: right;
}
.quote_link svg {
    color: #6c838e;
    vertical-align: middle;
}

/* Rasmlar stillari (DLE 15 - 16+) */
.image-bordered { border: 1px solid #ddd; }
.image-shadows { box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px; }
.image-padded { padding: 0.5rem; }

figure { margin: 0; }
figure.align-left { float: left; margin: 0 1.5rem 1rem 0; }
figure.align-right { float: right; margin: 0 0 1rem 1.5rem; }
figure.image.align-center { display: table; margin: 1rem auto; }
figure.image figcaption {
    padding: 0.5rem;
    background-color: #fafafa;
    font-size: 0.85rem;
    caption-side: bottom;
    text-align: center;
    color: #666;
}
figure.image.align-center figcaption { display: table-caption; }

/* DLE rasm yuklash va teglari */
.highslide-image {
    max-width: 100%;
    height: auto;
}

