/* Mast CMS - Taurus teması üzerine küçük eklemeler */
.navbar-brand { padding-top: 11px !important; padding-bottom: 0 !important; } .navbar-brand img { height: 28px; margin: 0; }
.mast-foot { text-align: center; color: rgba(255,255,255,.6); font-size: 12px; padding: 10px 0 30px; }
.mast-foot a { color: rgba(255,255,255,.85); }
.mast-small { font-size: 12px; opacity: .85; }
.inline { display: inline-block; margin: 0; }
.tar { text-align: right; }
.mast-actions { white-space: nowrap; }
.mast-actions form { display: inline-block; margin: 0; }
.mast-actions .btn { margin-left: 2px; }
.mast-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: mastspin .7s linear infinite; vertical-align: middle; }
@keyframes mastspin { to { transform: rotate(360deg); } }

/* Tablolar */
.mast-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 3px; background: rgba(255,255,255,.15); }
.mast-handle { cursor: move; width: 26px; text-align: center; opacity: .7; }
.mast-sortable tr.ui-sortable-helper { background: rgba(0,0,0,.5); display: table; }
.mast-toggle { cursor: pointer; }
.mast-kv th { width: 45%; font-weight: normal; opacity: .8; }
.mast-kv td, .mast-kv th { border-top-color: rgba(255,255,255,.1) !important; }
.mast-filter { margin-bottom: 10px; }
.mast-filter .btn.active { font-weight: bold; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { color: #333; }

/* Form alanları */
.controls .form-row { margin-bottom: 4px; }
.controls .form-row:after { content: ""; display: table; clear: both; }
.help-block { font-size: 12px; opacity: .8; }
.help-block code, .help-block a { color: inherit; }
.mast-image-field { display: flex; gap: 10px; align-items: center; }
.mast-image-field .input-group { flex: 1; }
.mast-image-preview { width: 84px; height: 60px; flex: 0 0 84px; border-radius: 4px; background: rgba(255,255,255,.12) repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%) 0 0/16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 22px; opacity: .95; }
.mast-image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mast-gallery-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; min-height: 10px; }
.mast-gallery-item { position: relative; width: 96px; height: 72px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.12); cursor: move; }
.mast-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.mast-gallery-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px; text-align: center; background: rgba(0,0,0,.65); color: #fff !important; border-radius: 50%; font-size: 16px; text-decoration: none !important; }
.mast-editor-media { margin-bottom: 4px; }
.cleditorMain { border-radius: 3px; overflow: hidden; background: #fff; }
.cleditorMain iframe { background: #fff; }
.cleditorToolbar { background: #f2f2f2; }
.cleditorPopup, .cleditorList div { color: #333; }
.mast-color-text { font-family: monospace; }
div.tagsinput { background: rgba(255,255,255,.95); border: 0; padding: 4px; }
div.tagsinput input { color: #333; }

/* Kayıt formu yan sütunu */
@media (min-width: 992px) { .mast-sticky { position: sticky; top: 10px; } }

/* Bloklar */
.mast-group-list .list-group-item.active { font-weight: bold; }
.mast-block-row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mast-block-row.is-changed > div:first-child label:after { content: " ●"; color: #f0ad4e; }
.mast-block-row.is-edited > div:first-child label:after { content: " ✎"; color: #5bc0de; }
.mast-reset { font-weight: normal; cursor: pointer; }

/* Ana sayfa bölümleri */
.mast-home-sections .list-group-item { cursor: default; }
.mast-home-sections .mast-handle { cursor: move; margin-right: 8px; }
.mast-home-sections label { margin: 0; font-weight: normal; cursor: pointer; }

/* Medya */
.mast-media-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.mast-media-toolbar .mast-media-search { max-width: 260px; margin-left: auto; }
.mast-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; min-height: 80px; }
.mast-media-grid.is-loading { opacity: .5; }
.mast-media-empty { grid-column: 1 / -1; text-align: center; padding: 20px; }
.mast-media-item { position: relative; background: rgba(255,255,255,.1); border: 2px solid transparent; border-radius: 4px; padding: 6px; cursor: pointer; transition: border-color .15s; }
.mast-media-item:hover { border-color: rgba(255,255,255,.35); }
.mast-media-item.is-selected { border-color: #5bc0de; background: rgba(91,192,222,.25); }
.mast-media-item.is-selected:after { content: "✓"; position: absolute; top: 4px; right: 6px; background: #5bc0de; color: #fff; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-weight: bold; }
.mast-media-item.is-new { animation: mastnew 1.2s ease; }
@keyframes mastnew { from { border-color: #5cb85c; } }
.mast-media-thumb { height: 100px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.9) repeating-conic-gradient(#e8e8e8 0 25%, transparent 0 50%) 0 0/14px 14px; position: relative; }
.mast-media-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mast-file-icon { font-size: 40px; color: #777; }
.mast-ext { position: absolute; bottom: 4px; right: 6px; font-size: 10px; font-weight: bold; color: #555; }
.mast-media-name { font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-media-meta { font-size: 11px; opacity: .7; min-height: 15px; }
.mast-media-tools { position: absolute; top: 10px; left: 10px; display: none; gap: 3px; }
.mast-media-item:hover .mast-media-tools { display: flex; }
.mast-media-more { margin-top: 12px; }
.mast-dropzone { border: 2px dashed rgba(255,255,255,.35); border-radius: 6px; padding: 20px; text-align: center; transition: background .15s; }
.mast-dropzone > .icon-cloud-upload { font-size: 34px; opacity: .8; }
.mast-dropzone.is-over { background: rgba(91,192,222,.2); border-color: #5bc0de; }
.mast-upload-progress { text-align: left; }
.mast-up-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; }
.mast-up-name { flex: 0 0 35%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast-up-row .progress { flex: 1; margin: 0; height: 10px; }
#mediaModal .modal-content { background: #2b3036; color: #eee; }
#mediaModal .modal-header, #mediaModal .modal-footer { border-color: rgba(255,255,255,.1); }
#mediaModal .close { color: #fff; opacity: .8; }
#mediaModal .mast-media-grid { max-height: 60vh; overflow-y: auto; padding: 2px; }

/* Mesajlar */
.mast-message-body { white-space: pre-wrap; background: rgba(255,255,255,.08); padding: 12px; border-radius: 4px; line-height: 1.6; }
.mast-email-list .item.unread, .mast-email-list tr.unread { font-weight: bold; }
.mast-note { width: 100%; }

/* Güncellemeler */
.mast-inline-forms { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mast-inline-forms form { margin: 0; }
.mast-notes { margin-top: 6px; font-size: 13px; max-height: 220px; overflow: auto; }
.alert a { font-weight: bold; }

/* Pano */
.mast-stat { text-align: center; padding: 12px 6px; }
.mast-stat b { display: block; font-size: 28px; line-height: 1.2; }
.mast-stat span { font-size: 12px; opacity: .8; }
.mast-stat a { color: inherit; text-decoration: none; }

@media (max-width: 767px) {
    .mast-image-field { flex-direction: column; align-items: stretch; }
    .mast-image-preview { width: 100%; height: 120px; }
    .mast-media-toolbar .mast-media-search { max-width: none; margin-left: 0; width: 100%; }
    .controls .form-row .col-md-3 label { margin-top: 6px; }
}
code { background: rgba(0,0,0,.3); color: #ffd7a8; border-radius: 3px; padding: 1px 5px; }
.list-group .text-muted, .block .content .list-group-item.text-muted { color: #666 !important; }

/* ================= 1.1: Sayfalar ekranı ================= */
.mast-page-head { float: none !important; width: auto !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.mast-page-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mast-page-title h1 { margin: 0; font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }
.mast-page-title p { margin: 4px 0 0; opacity: .75; font-size: 13px; max-width: 760px; }
.mast-page-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mast-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mast-pill { padding: 6px 10px; border-radius: 99px; font-size: 12px; }

.mast-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.mast-page-card { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.mast-page-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mast-page-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 130px; background: #2b3036 center/cover no-repeat; color: #fff !important; text-decoration: none !important; }
.mast-page-thumb:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.mast-page-thumb > span[class^="icon-"] { position: relative; font-size: 30px; width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.mast-page-state { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #5cb85c; color: #fff; }
.mast-page-card.is-off .mast-page-state { background: #777; }
.mast-page-card.is-off .mast-page-thumb { filter: grayscale(1); opacity: .65; }
.mast-page-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mast-page-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.mast-page-url { font-family: monospace; font-size: 12px; opacity: .65; }
.mast-page-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; opacity: .8; min-height: 18px; }
.mast-page-btns { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }

/* Anahtar (switch) */
.mast-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; user-select: none; }
.mast-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mast-switch-ui { width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.25); position: relative; transition: background .2s; flex: 0 0 42px; }
.mast-switch-ui:after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.mast-switch input:checked + .mast-switch-ui { background: #5cb85c; }
.mast-switch input:checked + .mast-switch-ui:after { transform: translateX(18px); }
.mast-switch input:focus-visible + .mast-switch-ui { outline: 2px solid #5bc0de; outline-offset: 2px; }
.mast-switch.is-disabled { opacity: .5; cursor: not-allowed; }
.mast-switch-sm .mast-switch-ui { width: 34px; height: 20px; flex-basis: 34px; }
.mast-switch-sm .mast-switch-ui:after { width: 14px; height: 14px; }
.mast-switch-sm input:checked + .mast-switch-ui:after { transform: translateX(14px); }
.mast-switch-label:after { content: attr(data-off); font-weight: 600; }
.mast-switch input:checked ~ .mast-switch-label:after { content: attr(data-on); }

/* Bölüm listesi */
.mast-sections { list-style: none; margin: 0; padding: 0; counter-reset: sec; }
.mast-section { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); transition: opacity .2s, background .2s; }
.mast-section:hover { background: rgba(255,255,255,.11); }
.mast-section.is-off { opacity: .5; }
.mast-section.ui-sortable-helper { background: #3a4048; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.mast-section-placeholder { height: 56px; border: 2px dashed rgba(255,255,255,.25); border-radius: 8px; margin-bottom: 6px; list-style: none; }
.mast-section .mast-handle { cursor: grab; font-size: 16px; }
.mast-section-no { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 24px; }
.mast-section-body { flex: 1; min-width: 0; }
.mast-section-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; }
.mast-goto { color: #8fd3ff !important; }

/* Yazı grupları */
.mast-group { border: 1px solid rgba(255,255,255,.08); border-radius: 8px; margin-bottom: 14px; padding: 4px 12px 8px; background: rgba(0,0,0,.12); scroll-margin-top: 80px; }
.mast-group.is-off { opacity: .6; }
.mast-group.is-flash { animation: mastflash 1.4s ease; }
@keyframes mastflash { 0%, 40% { box-shadow: 0 0 0 2px #5bc0de; } 100% { box-shadow: none; } }
.mast-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
.mast-group-head b { font-size: 14px; }
.mast-shared { font-size: 11px; opacity: .75; margin-left: auto; }

/* SEO önizleme */
.mast-serp { background: #fff; color: #202124; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; font-family: Arial, sans-serif; }
.mast-serp-url { font-size: 12px; color: #4d5156; }
.mast-serp-title { font-size: 19px; color: #1a0dab; margin: 4px 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-serp-desc { font-size: 13px; color: #4d5156; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mast-counter { float: right; font-size: 11px; opacity: .75; }
.mast-counter.is-over { color: #f0ad4e; opacity: 1; font-weight: bold; }

/* Canlı önizleme */
.mast-preview .content { padding: 10px; }
.mast-preview-frame { position: relative; width: 100%; overflow: hidden; border-radius: 6px; background: #fff; height: 70vh; }
.mast-preview-frame iframe { position: absolute; top: 0; left: 50%; border: 0; transform-origin: top center; background: #fff; }
.mast-devices .btn.active { background: #5bc0de; color: #fff; border-color: #5bc0de; }

/* Pano: sayfa durumu */
.mast-mini-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mast-mini-page { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: inherit !important; text-decoration: none !important; font-size: 13px; }
.mast-mini-page:hover { background: rgba(255,255,255,.15); }
.mast-mini-page i { width: 8px; height: 8px; border-radius: 50%; background: #5cb85c; flex: 0 0 8px; }
.mast-mini-page.is-off i { background: #888; }
.mast-mini-page.is-off { opacity: .7; }
.mast-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mast-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); color: #fff !important; text-decoration: none !important; transition: background .15s; }
.mast-tile:hover { background: rgba(0,0,0,.4); }
.mast-tile > span { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: rgba(255,255,255,.14); flex: 0 0 42px; }
.mast-tile b { display: block; font-size: 22px; line-height: 1.1; }
.mast-tile small { opacity: .75; font-size: 12px; }
.mast-tile.is-alert > span { background: #d9534f; }
.mast-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.mast-tiles, .mast-page-grid { clear: both; }

/* 1.2 İngilizce alanlar */
.mast-en-field { position: relative; margin-top: 6px; }
.mast-en-field .form-control { padding-left: 40px; background: rgba(255,255,255,.06); }
.mast-en-tag { position: absolute; left: 8px; top: 7px; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; background: #3a7bd5; color: #fff; z-index: 2; }

/* Sol kart (şablon düzeni) */
.mast-side .user { height: 190px; }
.mast-avatar { display: block; width: 96px; height: 96px; line-height: 90px; margin: 0 auto; border-radius: 50%; background: #e8453c; border: 4px solid rgba(255,255,255,.35); color: #fff; font-size: 36px; font-weight: 800; text-align: center; letter-spacing: 1px; }
.mast-side .list-group-item .badge { margin-left: 6px; background: #e8453c; }
.mast-main-col .row:first-child { margin-top: 0; }
@media (max-width: 991px) { .mast-side-col { margin-bottom: 15px; } }
/* Pencere (modal) içindeki sayfa */
body.mast-modal-body .container { width: auto; padding: 14px 18px 4px; }
body.mast-modal-body .mast-sticky { position: static; }
.mast-frame-modal .modal-dialog { width: 1040px; max-width: 96vw; margin-top: 3vh; }
.mast-frame-modal .modal-content { background: #0f2c4d; border: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mast-frame-modal iframe { display: block; width: 100%; height: 84vh; border: 0; background: transparent; }
.mast-frame-close { position: absolute; right: 10px; top: 8px; z-index: 5; }
/* Uygulama gibi davranış: yakınlaştırma ve kaydırma sıçraması kapalı */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); user-select: none; -webkit-user-select: none; } input, textarea, select { user-select: text; -webkit-user-select: text; } }
.mast-remember { color: #ddd; font-size: 13px; cursor: pointer; margin: 2px 0; }
.mast-remember input { margin-right: 6px; vertical-align: -2px; }
