/* ATS2 Mods - Koyu Modern Tema */
:root {
  --bg: #0b1017;
  --bg-elevated: #121a24;
  --bg-card: #161f2c;
  --bg-hover: #1c2738;
  --border: #243044;
  --text: #ffffff;
  --text-muted: #ffffff;
  --accent: #e85d04;
  --accent-hover: #f48c06;
  --accent-soft: rgba(232, 93, 4, 0.15);
  --success: #2a9d8f;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Bootstrap 5 soluk renklerini beyaza zorla */
  --bs-body-color: #ffffff;
  --bs-secondary-color: #ffffff;
  --bs-secondary-color-rgb: 255, 255, 255;
  --bs-tertiary-color: #ffffff;
  --bs-secondary-bg: #161f2c;
  --bs-border-color: #243044;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top left, rgba(232, 93, 4, 0.08), transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(42, 157, 143, 0.06), transparent 40%);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* Bootstrap soluk metinleri koyu temada okunaklı olsun */
.text-muted,
.text-secondary,
small,
small.text-muted,
.form-text,
.form-label,
.empty-state,
.empty-state p,
.content-html,
.content-html p,
.content-html li,
.mod-card-desc,
.mod-card-stats,
.slide-desc,
.filter-bar .form-label,
.side-mod-list small,
.cat-list li a,
.breadcrumb-item,
.breadcrumb-item a,
.info-list span,
.tag-chip,
.footer-desc,
.footer-links a,
.footer-bottom,
.footer-bottom p,
.pagination .page-link,
.search-results small,
.widget-title,
.page-content {
  color: #ffffff !important;
}

/* Header */
.site-header {
  background: rgba(18, 26, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar { padding: .75rem 0; }
.navbar-brand { font-weight: 700; font-size: 1.25rem; color: var(--text) !important; }
.brand-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 10px; font-size: 1rem;
}
.site-logo { height: 36px; width: auto; }
.brand-text { letter-spacing: .02em; }

.nav-link { color: var(--text-muted) !important; font-weight: 500; }
.nav-link:hover, .nav-link:focus { color: var(--text) !important; }

.dropdown-menu-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-height: 70vh;
  overflow-y: auto;
}

.search-box { min-width: 260px; }
.search-box .form-control {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px 0 0 8px;
}
.search-box .form-control:focus {
  background: var(--bg);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem var(--accent-soft);
}
.search-box .btn { border-radius: 0 8px 8px 0; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1100;
  overflow: hidden;
}
.search-results a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-hover); }
.search-results img {
  width: 48px; height: 32px; object-fit: cover; border-radius: 4px;
}
.search-results small { color: var(--text-muted); display: block; }

/* Buttons */
.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-hover);
  color: #fff;
}
.btn-download {
  background: linear-gradient(135deg, #e85d04, #f48c06);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: .55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-download:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

/* Hero Slider */
.hero-slider { margin-bottom: 0; }
.slide-bg {
  min-height: 360px;
  background-color: #0d1219;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.slide-bg.has-image {
  min-height: 400px;
}
.slide-bg::before {
  display: none;
}
.slide-content { position: relative; z-index: 1; padding: 3rem 0; max-width: 640px; }
.slide-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.slide-desc {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* Filter */
.filter-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.filter-bar .form-label { color: var(--text-muted); font-size: .8rem; margin-bottom: .25rem; }
.form-select, .form-control {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}
.form-select:focus, .form-control:focus {
  background: var(--bg);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem var(--accent-soft);
}
.form-select option { background: var(--bg-card); }

/* Mod Grid */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.mod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 93, 4, 0.4);
  box-shadow: var(--shadow);
}

.mod-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}
.mod-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.mod-card:hover .mod-card-media img { transform: scale(1.06); }

.mod-card-overlay {
  position: absolute; inset: 0;
  background: rgba(11,16,23,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.mod-card:hover .mod-card-overlay { opacity: 1; }

.badge-featured {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 6px;
  z-index: 2;
}

.mod-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mod-card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.cat-badge, .ver-badge {
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 600;
}
.cat-badge { background: var(--accent-soft); color: var(--accent-hover); }
.ver-badge { background: rgba(42,157,143,.15); color: var(--success); }

.mod-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  line-height: 1.35;
}
.mod-card-title a { color: var(--text); }
.mod-card-title a:hover { color: var(--accent); }

.mod-card-desc {
  color: #ffffff !important;
  font-size: .85rem;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.mod-card-stats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: #ffffff !important;
  margin-bottom: .85rem;
}
.mod-card-stats i { margin-right: 3px; }
.mod-card .btn-download { width: 100%; }

/* Sidebar */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.side-mod-list, .cat-list { list-style: none; padding: 0; margin: 0; }
.side-mod-list li { margin-bottom: .75rem; }
.side-mod-list a {
  display: flex; gap: .65rem; align-items: center; color: var(--text);
}
.side-mod-list a:hover { color: var(--accent); }
.side-thumb {
  width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.side-mod-list strong { display: block; font-size: .85rem; line-height: 1.3; }
.side-mod-list small { color: var(--text-muted); font-size: .75rem; }

.cat-list li a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}
.cat-list li a:hover { color: var(--accent); }

/* Breadcrumb */
.breadcrumb-section {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.breadcrumb { --bs-breadcrumb-divider-color: var(--text-muted); }
.breadcrumb-item, .breadcrumb-item a { color: var(--text-muted); font-size: .9rem; }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* Mod Detail */
.mod-cover-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.mod-cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.mod-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.content-html { color: var(--text-muted); }
.content-html h2, .content-html h3, .content-html h4 { color: var(--text); margin-top: 1.25rem; }
.content-html img { border-radius: 8px; margin: .5rem 0; }
.content-html a { text-decoration: underline; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.gallery-item {
  display: block;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

.tag-chip {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .3rem .7rem;
  border-radius: 20px;
  font-size: .8rem;
  margin: 0 .3rem .3rem 0;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }

.mod-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sticky-side { position: sticky; top: 90px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--text-muted); }
.info-list strong { text-align: right; }

/* Comments */
.comments-section,
.comments-section p,
.comments-section strong,
.comments-section small,
.comments-section h3,
.comment-form,
.comment-form .form-label,
.comment-form .form-control,
.comment-form textarea,
.comment-item,
.comment-item p,
.comment-item strong,
.comment-item small,
.comment-head,
.comment-head small {
  color: #ffffff !important;
}

.comment-form .form-control {
  margin-bottom: 0;
  background: var(--bg);
  border-color: var(--border);
  color: #ffffff !important;
}

.comment-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .75rem;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.comment-item p { margin: 0; }

/* Pagination */
.pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-link:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border);
}

/* Empty */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; display: block; }

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}
.section-title i { color: var(--accent); margin-right: .35rem; }

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-desc { color: var(--text-muted); font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-muted); font-size: .9rem; display: inline-block; padding: .2rem 0; }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* Lazy */
.lazy-img { opacity: 0; transition: opacity .4s; }
.lazy-img.loaded { opacity: 1; }

/* Alerts */
.alert { border-radius: 8px; }

/* Responsive */
@media (max-width: 991px) {
  .search-box { min-width: 100%; margin-top: 1rem; }
  .sticky-side { position: static; }
  .slide-bg { min-height: 280px; }
}
@media (max-width: 575px) {
  .mod-grid { grid-template-columns: 1fr; }
  .slide-title { font-size: 1.5rem; }
}

/* === Tum soluk / gri metinler beyaz (nihai override) === */
body,
body p,
body li,
body span:not(.badge):not(.cat-badge):not(.ver-badge):not(.badge-featured),
body small,
body label,
body .text-muted,
body .text-secondary,
body .form-label,
body .form-text,
body .form-control,
body .form-select,
body .content-html,
body .content-html *,
body .mod-card-desc,
body .mod-card-stats,
body .mod-card-stats span,
body .info-list,
body .info-list span,
body .info-list strong,
body .comment-item,
body .comment-item *,
body .comments-section,
body .comments-section *,
body .sidebar-widget,
body .sidebar-widget *,
body .side-mod-list small,
body .cat-list a,
body .footer-desc,
body .footer-links a,
body .footer-bottom,
body .footer-bottom *,
body .empty-state,
body .empty-state *,
body .breadcrumb-item,
body .slide-desc,
body .tag-chip,
body .page-content,
body .page-content *,
body .admin-card ul,
body .admin-card li {
  color: #ffffff !important;
}

body a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.btn-download):not(.btn-accent) {
  /* linkler turuncu kalsin */
  color: var(--accent) !important;
}
body a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.btn-download):not(.btn-accent):hover {
  color: var(--accent-hover) !important;
}
body .nav-link,
body .mod-card-title a,
body .side-mod-list a,
body .side-mod-list strong,
body .brand-text,
body .section-title,
body .mod-title,
body .footer-title,
body .widget-title {
  color: #ffffff !important;
}
body .nav-link:hover,
body .mod-card-title a:hover,
body .side-mod-list a:hover {
  color: var(--accent-hover) !important;
}
body .cat-badge { color: var(--accent-hover) !important; }
body .ver-badge { color: var(--success) !important; }
body .form-control::placeholder,
body .form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Rating & Report */
.mod-rating-box {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}
.rating-avg {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1;
}
.stars-display i { color: #f48c06 !important; margin-right: 2px; }
.star-picker {
  display: flex;
  gap: .25rem;
  justify-content: center;
}
.star-btn {
  background: none;
  border: none;
  padding: .2rem;
  cursor: pointer;
  font-size: 1.35rem;
  color: #5a6a7e;
  line-height: 1;
}
.star-btn.active,
.star-btn:hover { color: #f48c06; }
.star-btn i { color: inherit !important; }

.download-multi-label {
  font-size: .85rem;
  font-weight: 700;
  color: #fff !important;
  opacity: .9;
}
.download-buttons .btn-download { margin-bottom: 0; }
.download-buttons .btn-download + .btn-download { margin-top: .5rem; }

.download-links-box .download-link-row .form-control {
  color: #fff;
}
.btn-report {
  background: transparent;
  border: 1px solid #c1121f;
  color: #ff6b6b !important;
  font-weight: 600;
  border-radius: 8px;
  padding: .55rem 1rem;
}
.btn-report:hover {
  background: rgba(193, 18, 31, .15);
  border-color: #ff6b6b;
  color: #ff8a8a !important;
}

.report-modal-content {
  background: #161f2c;
  color: #fff;
  border: 1px solid #243044;
}
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.report-reason-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid #243044;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  color: #fff !important;
}
.report-reason-item:hover,
.report-reason-item:has(input:checked) {
  border-color: #e85d04;
  background: rgba(232, 93, 4, .1);
}
.report-reason-item input { margin-top: .2rem; }

/* Mod Gönder */
.nav-link-submit {
  color: var(--accent-hover) !important;
  font-weight: 700 !important;
}
.nav-link-submit:hover { color: #fff !important; }

.submit-intro {
  color: #ffffff !important;
  opacity: .9;
  margin: .5rem 0 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.contact-form-card h2 {
  color: #fff !important;
  font-weight: 700;
}
.contact-form .form-label {
  color: #fff !important;
}

.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}
.submit-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
  color: #fff !important;
}
.form-hint {
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
  color: #ffffff !important;
  opacity: .75;
}
.submit-mod-form .form-label {
  color: #ffffff !important;
}

.submit-rules-box {
  background: #0d1219;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem 1rem 0.5rem;
  color: #fff !important;
  max-height: 260px;
  overflow-y: auto;
}
.submit-rules-box ol {
  margin: 0;
  padding-left: 1.5rem;
}
.submit-rules-box li {
  margin-bottom: .65rem;
  line-height: 1.5;
  color: #fff !important;
}
.submit-rules-box li:last-child { margin-bottom: 0; }
.submit-rules-check .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: .2em;
  border-color: var(--accent);
  background-color: var(--bg);
}
.submit-rules-check .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.submit-rules-check .form-check-label {
  color: #fff !important;
  margin-left: .35rem;
}


