/* 
 * Engine.css - Material Design DLE Teması için Uyarlanmış
 * Anket (vote.tpl) sorunu düzeltilmiş
 */

/* ===== ORJINAL ENGINE.CSS - MATERIAL TEMAYA UYARLANMIŞ ===== */
#loading-layer { 
    background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.8); 
    padding: 10px; 
    text-align: center; 
    color: #fff; 
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#loading-layer.withouttext {
    background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.6);
    padding: 5px 5px 0px 5px;
    text-align: center;
    color: #fff;
    border-radius: 50%;
}

#loading-layer.withtext {
    padding: 10px;
    background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.6);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.scriptcode, .title_quote,
    .title_spoiler, .text_spoiler, .quote { 
        padding: 15px; 
        background: var(--surface-color, #fff); 
        border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
        border-radius: 12px;
    }

    .title_quote { 
        border-left: 3px solid var(--primary-color, #673AB7); 
        border-bottom: 0; 
        margin-top: 2px; 
        font-weight: 500; 
    }
    
    .quote, blockquote { 
        padding: 15px 20px; 
        border-left: 3px solid var(--primary-color, #673AB7);
        background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.03);
        border-radius: 0 12px 12px 0;
    }
    
    .title_spoiler { 
        margin-top: 2px;
        font-weight: 500;
        cursor: pointer;
    }
    
    .text_spoiler { margin-bottom: 2px; }
    .title_spoiler img { vertical-align: middle; margin: -1px 0 0 !important }
    .scriptcode { color: #4c6d0f; text-align: left; font-family: "Courier New" }
    .title_spoiler { font-weight: normal; }
    .text_spoiler { border-top: 0; text-align: justify; }

    .hide { 
        background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.03); 
        padding: 12px 15px; 
        color: var(--text-primary, rgba(0, 0, 0, 0.87)); 
        margin: 0 0 1em 0;
        border-radius: 12px;
    }
    
    .hide a { 
        color: var(--primary-color, #673AB7); 
        text-decoration: none; 
    }
    
    .hide a:hover { 
        text-decoration: underline; 
        opacity: 0.8; 
    }

.sort { 
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .sort > li, .sort { display: inline; }
    .sort > li { margin: 0 0 0 3%; }
    
    .sort > li a { 
        color: var(--text-primary, rgba(0, 0, 0, 0.87)); 
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 20px;
        transition: all 0.3s;
        font-size: 0.875rem;
    }
    
    .sort > li a:hover { 
        background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.05);
        color: var(--primary-color, #673AB7);
    }
    
    .sort > li.asc a, .sort > li.desc a { 
        color: var(--primary-color, #673AB7); 
        background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.08);
    }
    
    .sort > li.asc a:after, .sort > li.desc a:after {
        content: "";
        display: inline-block;
        vertical-align: middle;
        margin: -1px 0 0 .4em;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
    }
    
    .sort > li.asc a:after { 
        border-bottom: 4px solid var(--primary-color, #673AB7); 
    }
    
    .sort > li.desc a:after { 
        border-top: 4px solid var(--primary-color, #673AB7); 
    }

.calendar { 
    width: 100%; 
    text-align: center; 
    border-collapse: separate;
    border-spacing: 3px;
}

.calendar tr td, .calendar tr th { 
    padding: 5px; 
    border-radius: 8px;
}

.calendar tr td a { 
    color: var(--primary-color, #673AB7); 
    font-weight: 500;
    display: block;
    padding: 3px;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.calendar tr td a:hover { 
    background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.1);
    transform: scale(1.1);
}

.calendar tr td { padding: 5px 3px; }

.calendar tr td.weekday { 
    color: var(--primary-color, #673AB7); 
}

.calendar tr th { 
    background-color: var(--bg-light, #f8f9fa); 
    font-weight: 500; 
    text-transform: uppercase;
    font-size: 0.8rem;
}

.calendar tr th.weekday { 
    background-color: var(--primary-color, #673AB7); 
    color: #fff; 
}

.calendar tr th.monthselect { 
    background-color: transparent; 
    color: var(--text-muted, #6c757d); 
    padding-bottom: 15px; 
}

.calendar tr th.monthselect a { 
    color: var(--text-muted, #6c757d);
    text-decoration: none;
}

/* ===== ANKET (VOTE) BÖLÜMÜ - MATERIAL TEMA İÇİN UYARLANDI ===== */
.voteprogress, .pollprogress {
    overflow: hidden;
    height: 6px;
    margin-bottom: 10px;
    background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.1);
    border-radius: 3px;
    margin-top: 6px;
}

.voteprogress span, .pollprogress span {
    text-indent: -9999px;
    height: 6px;
    display: block;
    overflow: hidden;
    background: var(--primary-color, #673AB7);
}

.voteprogress .vote2, .pollprogress .poll2 { background-color: var(--accent-color, #E040FB); }
.voteprogress .vote3, .pollprogress .poll3 { background-color: #4CAF50; }
.voteprogress .vote4, .pollprogress .poll4 { background-color: #2196F3; }
.voteprogress .vote5, .pollprogress .poll5 { background-color: #FFA726; }

/* DLE Anket Yapısı - Material Tema için özel düzenleme */
.vote_list .vote,
.vote_list .pollanswer {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    display: block;
}

/* Radio butonları tamamen gizle */
.vote_list .vote > input,
.vote_list .pollanswer > input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Seçenek kartı stil */
.vote_list .vote > label,
.vote_list .pollanswer > label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border-radius: 30px;
    background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.03);
    border: 1px solid #e0e0e0;
    color: var(--text-primary, rgba(0, 0, 0, 0.87));
    font-weight: normal;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.vote_list .vote > label:hover,
.vote_list .pollanswer > label:hover {
    background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.05);
    border-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.2);
}

/* Custom radio circle */
.vote_list .vote > label:before,
.vote_list .pollanswer > label:before {
    content: "";
    display: inline-block;
    min-width: 22px;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border: 2px solid rgba(var(--primary-color-rgb, 103, 58, 183), 0.4);
    background-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Seçili radio stil */
.vote_list .vote > input:checked + label:before,
.vote_list .pollanswer > input:checked + label:before {
    border-width: 7px;
    border-color: var(--primary-color, #673AB7);
}

/* Seçili label stil */
.vote_list .vote > input:checked + label,
.vote_list .pollanswer > input:checked + label {
    background-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.08);
    border-color: rgba(var(--primary-color-rgb, 103, 58, 183), 0.3);
}

/* Anket kartı */
.block_grey {
    background: var(--surface-color, #fff);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color, rgba(0,0,0,0.12));
    padding: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.block_grey > .title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary, rgba(0,0,0,0.87));
}

/* Diğer anketler linki */
.vote_more {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.vote_more a {
    color: var(--primary-color, #673AB7);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vote_more a:hover {
    opacity: 1;
    text-decoration: none;
}

/* 
 * DLE Material Tema - Diyalog Penceresi ve Butonlar
 * Sidebar Kart ve Buton Düzenlemeleri
 * Güncelleme: 2025-06-01
 */

/* ===== 1. DIYALOG PENCERESI - SIDEBAR KART GÖRÜNÜMÜ ===== */
.ui-front { z-index: 1000; }

.ui-widget-overlay {
    background: #000;
    opacity: 0.5;
    left: 0; top: 0; right: 0; bottom: 0;
    position: fixed;
}

/* Dialog ana çerçeve - sidebar kart stili */
.ui-dialog {
    text-align: left;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 320px; /* 370px'den 320px'e küçültüldü */
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    border: 1px solid var(--border-color, rgba(0,0,0,0.12)) !important;
    background-color: var(--surface-color, #fff) !important;
    transition: all 0.3s ease;
}

/* Başlık çubuğu - tema rengini kullan, değişkenlere dayalı */
.ui-dialog-titlebar { 
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important; /* 12px 16px'den küçültüldü */
    position: relative;
    background-color: var(--surface-color, #fff) !important;
    color: var(--text-primary, rgba(0,0,0,0.87)) !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.12)) !important;
    overflow: hidden;
}

/* Dekoratif daire elementi - sidebar kart başlıklarındaki gibi */
.ui-dialog-titlebar::after {
    content: "";
    position: absolute;
    width: 120px; /* 150px'den 120px'e küçültüldü */
    height: 120px; /* 150px'den 120px'e küçültüldü */
    background: rgba(var(--primary-color-rgb, 103, 58, 183), 0.03);
    top: -60px; /* -75px'den -60px'e değiştirildi */
    right: -60px; /* -75px'den -60px'e değiştirildi */
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 1;
}

.ui-dialog:hover .ui-dialog-titlebar::after {
    transform: scale(1.2);
}

/* Başlık metni - sidebar kart başlığı stili */
.ui-dialog-title { 
    flex: 1 !important;
    float: none !important; /* float özelliğini kaldır */
    margin: 0 !important;
    font-weight: 500 !important; 
    font-size: 14px !important; /* 16px'den 14px'e küçültüldü */
    position: relative;
    padding-left: 10px !important; /* 12px'den 10px'e küçültüldü */
    text-shadow: none !important;
    z-index: 2;
    color: var(--text-primary, rgba(0,0,0,0.87)) !important;
}

/* Sidebar kart başlıklarındaki sol çubuk */
.ui-dialog-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px; /* 16px'den 14px'e küçültüldü */
    width: 2px; /* 3px'ten 2px'e küçültüldü */
    background: var(--primary-color, #673AB7);
    border-radius: 3px;
}

/* X kapatma butonu - sağ üstte, hizalı */
.ui-dialog-titlebar-close,
.ui-dialog .ui-dialog-titlebar-close,
#profile_popup .ui-dialog-titlebar-close {
    position: relative !important;
    right: 0 !important; 
    top: 0 !important;
    margin: 0 !important;
    height: 28px !important; /* 32px'den 28px'e küçültüldü */
    width: 28px !important; /* 32px'den 28px'e küçültüldü */
    border: 0 none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 3;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
}

/* Hover efekti */
.ui-dialog-titlebar-close:hover {
    background-color: rgba(0,0,0,0.05) !important;
}

/* X kapatma butonu - × simgesi */
.ui-dialog-titlebar-close:before {
    content: "×";
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 20px !important; /* 24px'ten 20px'e küçültüldü */
    color: var(--text-secondary, rgba(0,0,0,0.6)) !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.ui-dialog-titlebar-close:hover:before {
    opacity: 1 !important;
}

/* Varsayılan ikonları gizle */
.ui-dialog-titlebar-close .ui-icon,
.ui-dialog-titlebar-close span.ui-button-text,
.ui-dialog-titlebar-close span,
.ui-dialog-titlebar-close img {
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Dialog içerik alanı */
.ui-dialog-content { 
    padding: 15px !important; /* 20px'den 15px'e küçültüldü */ 
    border: none !important; 
    overflow: auto; 
    position: relative; 
    background: var(--surface-color, #fff) !important;
    font-size: 13px !important; /* Font boyutu küçültüldü */
}

/* Dialog buton alanı */
.ui-dialog .ui-dialog-buttonpane { 
    padding: 12px !important; /* 15px'ten 12px'ye küçültüldü */ 
    text-align: center !important; 
    border-top: none !important;
    background: var(--surface-color, #fff) !important;
    margin-top: 0 !important;
}

/* Profil popup özelleştirmesi */
#profile_popup {
    background: var(--surface-color, #fff);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border-color, rgba(0,0,0,0.12));
}

#profile_popup .ui-dialog-titlebar {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#profile_popup .ui-dialog-content {
    border: none;
    padding: 15px; /* 20px'den 15px'e küçültüldü */
}

/* Koyu tema desteği */
[data-bs-theme="dark"] .ui-dialog {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
}

[data-bs-theme="dark"] .ui-dialog-titlebar-close:before {
    color: var(--text-secondary, rgba(255,255,255,0.6)) !important;
}

[data-bs-theme="dark"] .ui-dialog-titlebar-close:hover {
    background-color: rgba(255,255,255,0.05) !important;
}

/* ===== 2. BUTON STİLLERİ ===== */
/* Tüm dialog butonları için temel stil */
.ui-button, 
.ui-dialog-buttonset .ui-button,
.ui-dialog .ui-button,
button.ui-button,
.ui-dialog button,
#profile_popup .ui-button,
input[type="button"].ui-button {
    font-size: 0.8rem !important; /* 0.9rem'den 0.8rem'e küçültüldü */
    border: 0 none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    border-radius: 6px !important; /* 8px'den 6px'e küçültüldü */
    outline: none !important;
    background-color: var(--primary-color, #673AB7) !important;
    color: #fff !important;
    padding: 6px 15px !important; /* 8px 20px'den 6px 15px'e küçültüldü */
    font-weight: 500 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: all 0.3s !important;
    text-shadow: none !important;
    margin: 0 3px !important;
    display: inline-block !important;
    float: none !important; /* Float özelliğini kaldır */
}

/* Profil butonuna özel düzeltme */
button#dleprofile,
.profile-btn,
input[value="Profil"],
button[value="Profil"],
.ui-dialog button[value="Profil"],
#profile_popup button {
    background-color: var(--primary-color, #673AB7) !important;
    color: #fff !important;
    border: 0 none !important;
    font-weight: 500 !important;
    padding: 6px 15px !important; /* 8px 20px'den 6px 15px'e küçültüldü */
    border-radius: 6px !important; /* 8px'den 6px'e küçültüldü */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Buton hover efektleri - tüm butonlar için ortak */
.ui-button:hover,
.ui-dialog button:hover,
button#dleprofile:hover,
.profile-btn:hover,
#profile_popup button:hover,
input[type="button"].ui-button:hover {
    background-color: var(--primary-light, #9575CD) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px) !important;
}

/* Koyu mod desteği - butonlar için */
[data-bs-theme="dark"] .ui-button:hover,
[data-bs-theme="dark"] .ui-dialog button:hover,
[data-bs-theme="dark"] #profile_popup button:hover {
    background-color: var(--primary-light, #9575CD) !important;
}

/* DLE Dropdown Menüsü - Orijinal DLE Stiline Ek Olarak */
#dropmenudiv {
    padding: 10px 0;
    min-width: 140px;
    width: auto !important;
    opacity: 1 !important;
    display: none;
    font-size: .9em;
    box-shadow: 0 8px 40px -10px rgba(0,0,0,0.3);
    border: 1px solid #e6e6e6;
    border-color: rgba(0,0,0,0.1);
    background-clip: padding-box;
    background-color: var(--surface-color);
    border-radius: 8px;
    z-index: 1000 !important;
}

#dropmenudiv a {
    text-decoration: none !important;
    color: var(--text-primary);
    display: block;
    padding: 8px 20px;
    border: 0 none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

#dropmenudiv a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

/* Karanlık Mod Uyumluluğu */
[data-bs-theme="dark"] #dropmenudiv {
    background-color: var(--surface-color);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] #dropmenudiv a {
    color: var(--text-primary);
}

[data-bs-theme="dark"] #dropmenudiv a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}


.DLEPush {
	z-index: 2001;
	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: 1s;
	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 15px rgb(0 0 0 / 20%);
	background-color: #fff;
	border-radius: 10px
}

.DLEPush-notification .DLEPush-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 45px;
	height: 100%;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
	scale: .8;
}

.DLEPush-notification .DLEPush-header {
	font-weight: 500;
	grid-column: 2;
	grid-row: 1;
	font-size: 1rem;
	margin-left: 1rem;
	margin-top: .5rem;
}
.DLEPush-notification .DLEPush-header:empty {
	margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
	grid-column: 2;
	grid-row: 2;
	font-size: .875rem;
	margin: 1rem;
}

.DLEPush-notification .DLEPush-message li, .DLEPush-notification .DLEPush-message ul {
	list-style-type: none;
	padding-left: 0;
}

.DLEPush-notification .DLEPush-close {
	position: absolute;
	top: 8px;
	right: 10px;
	font-weight: 300;
	background: none;
	border: 0;
	font-size: 1.15rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	color: inherit;
	outline: 0;
	opacity: 0.75;
}

@media only screen and (min-width: 601px) {
	.DLEPush-notification.wrapper {
		min-width: 400px;
	}
}

.DLEPush-notification .DLEPush-close:hover {
	opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
	background-color: #e0f2f1;
}

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

.DLEPush-notification.wrapper.push-warning {
	background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
	background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
	background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
	background-color: #FF5722;
}



