/* Projects section title overlay in dark mode */
body.dark-mode .project-title-overlay {
    color: #fff !important;
}
/* Dark Mode Styles */

/* Dark mode CSS değişkenleri */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Body ve genel background */
body.dark-mode {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Header/Topbar */
body.dark-mode .container-fluid {
    background-color: var(--bg-secondary) !important;
}

body.dark-mode .bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Navbar */
body.dark-mode .navbar-light {
    background-color: var(--bg-secondary) !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
    color: #FF6600 !important;
}

body.dark-mode .navbar-vertical {
    background-color: var(--bg-secondary) !important;
}

/* Mobil hamburger menü - dark mode'da beyaz */
body.dark-mode .mobile-hamburger,
body.dark-mode .mobile-hamburger .navbar-toggler-icon {
    background-color: transparent !important;
    border-color: #fff !important;
}

body.dark-mode .mobile-hamburger .navbar-toggler-icon::before,
body.dark-mode .mobile-hamburger .navbar-toggler-icon::after,
body.dark-mode .mobile-hamburger .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.mobile-hamburger {
    border: 1px solid #333;
}

body.dark-mode .mobile-hamburger {
    border-color: #fff !important;
}

body.dark-mode .bg-secondary {
    background-color: var(--bg-tertiary) !important;
}

/* Text colors */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-primary) !important;
}

body.dark-mode p,
body.dark-mode small,
body.dark-mode span {
    color: var(--text-secondary) !important;
}

/* Cards and boxes */
body.dark-mode .card,
body.dark-mode .rounded,
body.dark-mode .bg-white {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .bg-secondary {
    background-color: var(--bg-tertiary) !important;
}

/* Borders */
body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom {
    border-color: var(--border-color) !important;
}

/* Input fields */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-secondary) !important;
}

/* Buttons */
body.dark-mode .btn-outline-primary {
    border-color: #FF6600 !important;
    color: #FF6600 !important;
}

body.dark-mode .btn-outline-light {
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

/* Orange button text always white in dark mode, no color change on hover/click */
body.dark-mode .btn-primary,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus,
body.dark-mode .btn-primary:active {
    background-color: #FF6600 !important;
    color: #fff !important;
    border-color: #FF6600 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* But keep box-shadow removal for project card buttons specifically */
body.dark-mode .project-card-title .btn-primary,
body.dark-mode .project-card-title .btn-primary:hover,
body.dark-mode .project-card-title .btn-primary:focus,
body.dark-mode .project-card-title .btn-primary:active {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    outline: none !important;
}

/* Footer */
body.dark-mode .bg-dark {
    background-color: #1a1a1a !important;
}

/* Reduce extra top padding in dark-mode footer so logo hugs the top nicely */
body.dark-mode .container-fluid.bg-dark.text-white.py-5 {
    padding-top: 24px !important;
    margin-top: 0 !important; /* remove dark gap above logo in dark mode */
}
body.dark-mode .container-fluid.bg-dark.text-white.py-5 .footer-brand {
    margin-top: 0 !important;
}

body.dark-mode footer,
body.dark-mode .footer {
    background-color: #1a1a1a !important;
    color: var(--text-primary) !important;
}

body.dark-mode footer a,
body.dark-mode .footer a {
    color: var(--text-secondary) !important;
}

body.dark-mode footer a:hover,
body.dark-mode .footer a:hover {
    color: #FF6600 !important;
}

/* Dropdown menus */
body.dark-mode .dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .dropdown-item {
    color: var(--text-primary) !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: var(--bg-tertiary) !important;
    color: #FF6600 !important;
}

/* Modal */
body.dark-mode .modal-content {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: var(--border-color) !important;
}

/* Badge */
body.dark-mode .badge-primary {
    background-color: #FF6600 !important;
    color: #fff !important;
}

/* Course cards: make titles white in dark mode */
body.dark-mode .course-card .bg-secondary .h5,
body.dark-mode .course-card .bg-secondary h5 {
    color: #ffffff !important;
}

/* Specialty badges - dark mode'da turuncu veya beyaz */
body.dark-mode .specialty-badge {
    background-color: #FF6600 !important;
    color: #fff !important;
    border: none !important;
}

body.dark-mode .badge-light.specialty-badge {
    background-color: #FF6600 !important;
    color: #fff !important;
}

/* Program etiketleri dark mode'da turuncu */
body.dark-mode .program-card .badge-light {
    background-color: #FF6600 !important;
    color: #fff !important;
    border: none !important;
}

/* Keep badge text white on hover in dark mode */
body.dark-mode .program-card .badge-light:hover,
body.dark-mode .program-card .badge-light:focus {
    color: #fff !important;
    background-color: #FF6600 !important;
}

/* Anchor variant in dark mode */
body.dark-mode .program-card a.badge-light:hover,
body.dark-mode .program-card a.badge-light:focus {
    color: #fff !important;
    background-color: #FF6600 !important;
}

/* Tag buttons in dark mode */
body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-outline-primary:focus {
    color: #fff !important;
    background-color: #FF6600 !important;
    border-color: #FF6600 !important;
}

/* Owl Carousel */
body.dark-mode .owl-carousel .owl-item {
    color: var(--text-primary) !important;
}

/* Program cards */
body.dark-mode .program-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .program-card-content {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Dark mode'da hover olunca beyaz alan kalır, description, etiketler ve üst yazılar siyah görünür */
body.dark-mode .program-card:hover .program-card-content p.text-muted {
    color: #000 !important;
}

body.dark-mode .program-card:hover .program-card-content h5 {
    color: #000 !important;
}

body.dark-mode .program-card:hover .program-card-content small {
    color: #000 !important;
}

body.dark-mode .program-card:hover .program-card-content .badge {
    color: #000 !important;
    background-color: transparent !important;
    border: 1px solid #000 !important;
}

/* Alttaki turuncu buton (badge-primary) hover'da turuncu kalır */
body.dark-mode .program-card:hover .program-card-content .badge-primary {
    color: #fff !important;
    background-color: #FF6600 !important;
    border: none !important;
}

/* Course cards */
body.dark-mode .cat-item {
    background-color: var(--bg-secondary) !important;
}

/* Project cards - dark mode styling */
body.dark-mode .project-card-title {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%) !important;
    border-top-color: #FF6600 !important;
}

body.dark-mode .project-card-title h6 {
    color: var(--text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover .project-card-title {
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%) !important;
    box-shadow: none !important;
}

body.dark-mode .project-card:hover .project-card-title h6 {
    color: #fff !important;
    transform: scale(1.02);
}

/* Project card button - remove extra glow on hover */
body.dark-mode .project-card-title .btn.btn-primary,
body.dark-mode .project-card-title a.btn.btn-primary,
body.dark-mode .project-card-title .btn-primary:link,
body.dark-mode .project-card-title .btn-primary:visited,
body.dark-mode .project-card-title .btn-primary:hover,
body.dark-mode .project-card-title .btn-primary:focus,
body.dark-mode .project-card-title .btn-primary.focus,
body.dark-mode .project-card-title .btn-primary:active,
body.dark-mode .project-card-title .btn-primary.active,
body.dark-mode .project-card-title .btn-primary:not(:disabled):not(.disabled):active,
body.dark-mode .project-card-title .btn-primary:not(:disabled):not(.disabled):active:focus,
body.dark-mode .project-card-title .btn-primary:not(:disabled):not(.disabled).active,
body.dark-mode .project-card-title .btn-primary:not(:disabled):not(.disabled).active:focus,
body.dark-mode .project-card-title .show > .btn-primary.dropdown-toggle,
body.dark-mode .project-card-title .show > .btn-primary.dropdown-toggle:focus,
body.dark-mode .project-card:hover .project-card-title .btn.btn-primary,
body.dark-mode .project-card:hover .project-card-title a.btn.btn-primary,
body.dark-mode .project-card:hover .project-card-title .btn-primary:link,
body.dark-mode .project-card:hover .project-card-title .btn-primary:visited,
body.dark-mode .project-card:hover .project-card-title .btn-primary:hover,
body.dark-mode .project-card:hover .project-card-title .btn-primary:focus,
body.dark-mode .project-card:hover .project-card-title .btn-primary.focus,
body.dark-mode .project-card:hover .project-card-title .btn-primary:active,
body.dark-mode .project-card:hover .project-card-title .btn-primary.active,
body.dark-mode .project-card:hover .project-card-title .btn-primary:not(:disabled):not(.disabled):active,
body.dark-mode .project-card:hover .project-card-title .btn-primary:not(:disabled):not(.disabled):active:focus,
body.dark-mode .project-card:hover .project-card-title .btn-primary:not(:disabled):not(.disabled).active,
body.dark-mode .project-card:hover .project-card-title .btn-primary:not(:disabled):not(.disabled).active:focus,
body.dark-mode .project-card:hover .project-card-title .show > .btn-primary.dropdown-toggle,
body.dark-mode .project-card:hover .project-card-title .show > .btn-primary.dropdown-toggle:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    outline: none !important;
    outline-offset: 0 !important;
}

body.dark-mode .project-card-title .btn-primary,
body.dark-mode .project-card-title .btn-primary:hover,
body.dark-mode .project-card-title .btn-primary:focus,
body.dark-mode .project-card-title .btn-primary.focus {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.dark-mode .project-card:hover .project-card-title .btn-primary,
body.dark-mode .project-card:hover .project-card-title .btn-primary:hover,
body.dark-mode .project-card:hover .project-card-title .btn-primary:focus,
body.dark-mode .project-card:hover .project-card-title .btn-primary.focus {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.dark-mode .project-card-img-container {
    background-color: var(--bg-secondary) !important;
}

/* Image overlays */
body.dark-mode .cat-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Text muted */
body.dark-mode .text-muted {
    color: var(--text-secondary) !important;
}

/* Links */
body.dark-mode a {
    color: var(--text-primary) !important;
}

body.dark-mode a:hover {
    color: #FF6600 !important;
}

/* Markdown content */
body.dark-mode .markdown-content {
    color: var(--text-primary) !important;
}

body.dark-mode .markdown-content h1,
body.dark-mode .markdown-content h2,
body.dark-mode .markdown-content h3,
body.dark-mode .markdown-content h4,
body.dark-mode .markdown-content h5,
body.dark-mode .markdown-content h6 {
    color: var(--text-primary) !important;
}

body.dark-mode .markdown-content p {
    color: var(--text-secondary) !important;
}

body.dark-mode .markdown-content ul,
body.dark-mode .markdown-content ol {
    color: var(--text-primary) !important;
}

body.dark-mode .markdown-content li {
    color: var(--text-primary) !important;
}

body.dark-mode .markdown-content code {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .markdown-content pre {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

/* Smooth transition */
body,
body.dark-mode {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    box-sizing: border-box;
}

.dark-mode-toggle.active {
    background-color: #FF6600;
}

/* Slider - beyaz yuvarlak */
.dark-mode-toggle .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle.active .toggle-slider {
    transform: translateX(30px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* İkonlar - slider'ın karşı tarafında */
.dark-mode-toggle .toggle-icon {
    font-size: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Ay ikonu - slider solda iken sağda görünür */
.dark-mode-toggle .moon-icon {
    right: 6px;
    color: #333;
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.dark-mode-toggle.active .moon-icon {
    opacity: 0;
    transform: translateY(-50%) scale(0.8) rotate(-180deg);
}

/* Güneş ikonu - slider sağda iken solda görünür */
.dark-mode-toggle .sun-icon {
    left: 6px;
    color: #fff;
    opacity: 0;
    transform: translateY(-50%) scale(0.8) rotate(180deg);
}

.dark-mode-toggle.active .sun-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

/* SSS/FAQ Dark Mode uyumlu teması */
body.dark-mode #sss {
  background: linear-gradient(135deg, #202233 0%, #252542 100%) !important;
}
body.dark-mode #sss h1 {
  color: #fff !important;
  text-shadow: 0 3px 16px rgba(0,0,0,0.21);
}
body.dark-mode #sss h5,  
body.dark-mode #sss .card-header h5 {
  color: #f5f5fa !important;
}
body.dark-mode #sss .card,
body.dark-mode #sss .card.mb-3 {
  background: #292944 !important;
  border: 1px solid #242444 !important;
  color: #ececf0 !important;
  box-shadow: 0 4px 16px rgba(22,22,34,0.16);
  border-radius: 12px;
  transition: background 0.4s, color 0.2s;
}
body.dark-mode #sss .card-header {
  background: transparent !important;
  color: #ececf0 !important;
  border-bottom: 1px solid #353555 !important;
}
body.dark-mode #sss .card-body {
  color: #fff !important;
  background: transparent !important;
}
body.dark-mode #sss .btn-link {
  color: #FFB347 !important;
  font-weight: 600;
}
body.dark-mode #sss .btn-link.collapsed {
  color: #ececf0 !important;
}
body.dark-mode #sss .text-muted {
  color: #bdbdd7 !important;
}
body.dark-mode #sss .btn-link:hover,
body.dark-mode #sss .card-header h5:hover {
  color: #ffaa00 !important;
  background: transparent !important;
}

/* Back to top button - keep center white in dark mode */
body.dark-mode .back-to-top.btn-primary,
body.dark-mode .back-to-top.btn-primary:hover,
body.dark-mode .back-to-top.btn-primary:focus,
body.dark-mode .back-to-top.btn-primary:active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #FF6600 !important; /* icon visible on white */
}

/* Registration/Contact section: keep background image visible in dark mode */
body.dark-mode #registrationSection,
body.dark-mode #registrationSection .container-fluid {
    background-color: transparent !important;
}
/* If using .bg-registration utility, remove dark overlay in dark mode */
body.dark-mode .bg-registration {
    background: url('../img/registration.jpg') no-repeat center center !important;
    background-size: cover !important;
}

/* Form Mesaj Kutusu - Dark Mode */
body.dark-mode #formMessage .alert-success {
    background-color: #1e4620 !important;
    color: #90ee90 !important;
    border-left: 4px solid #28a745 !important;
}

body.dark-mode #formMessage .alert-danger {
    background-color: #4a1e1e !important;
    color: #ff6b6b !important;
    border-left: 4px solid #dc3545 !important;
}

body.dark-mode #formMessage .alert-warning {
    background-color: #4a3e1e !important;
    color: #ffd93d !important;
    border-left: 4px solid #ffc107 !important;
}

body.dark-mode #formMessage .alert-info {
    background-color: #1e3a4a !important;
    color: #6bc5e8 !important;
    border-left: 4px solid #17a2b8 !important;
}

/* Gönder Butonu - Dark Mode */
body.dark-mode #contactForm button.btn-orange,
body.dark-mode #contactForm .btn.btn-orange,
body.dark-mode #contactForm button[type="submit"].btn-orange {
    background-color: #FF6600 !important;
    background: #FF6600 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
}

body.dark-mode #contactForm button.btn-orange:hover,
body.dark-mode #contactForm .btn.btn-orange:hover,
body.dark-mode #contactForm button[type="submit"].btn-orange:hover {
    background-color: #ff7a1a !important;
    background: #ff7a1a !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

body.dark-mode #contactForm button.btn-orange:focus,
body.dark-mode #contactForm .btn.btn-orange:focus,
body.dark-mode #contactForm button[type="submit"].btn-orange:focus,
body.dark-mode #contactForm button.btn-orange:active,
body.dark-mode #contactForm .btn.btn-orange:active,
body.dark-mode #contactForm button[type="submit"].btn-orange:active {
    background-color: #e55a00 !important;
    background: #e55a00 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
}

/* KVKK Notu - Dark Mode */
body.dark-mode #contactForm .kvkk-note,
body.dark-mode #contactForm p.text-center.small.kvkk-note,
body.dark-mode #contactForm p.kvkk-note {
    color: #ffffff !important;
}
