/* =====================================================
   GLOBAL RESPONSIVE FRAMEWORK - TÜM SİTE
   Mobile-first, fully responsive design
   ===================================================== */

/* =====================================================
   BASE STYLES - RESET & NORMALIZE
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* =====================================================
   CONTAINER & WRAPPER
   ===================================================== */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.container {
  max-width: 1140px;
}

.container-sm {
  max-width: 540px;
}

.container-md {
  max-width: 720px;
}

.container-lg {
  max-width: 960px;
}

.container-xl {
  max-width: 1140px;
}

.container-xxl {
  max-width: 1320px;
}

/* =====================================================
   HEADER - RESPONSIVE
   ===================================================== */

header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

header img {
  height: auto;
  max-width: 150px;
  width: auto;
  display: block;
}

/* =====================================================
   NAVIGATION - MOBILE FRIENDLY
   ===================================================== */

nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

nav a,
nav button {
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

nav a:hover,
nav button:hover {
  color: #8d00b9;
}

/* =====================================================
   TYPOGRAPHY - RESPONSIVE
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 700;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  margin-bottom: 15px;
}

small,
.small {
  font-size: 12px;
}

/* =====================================================
   FORMS - RESPONSIVE
   ===================================================== */

form {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px;
  color: #666;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select,
.form-control,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #8d00b9;
  box-shadow: 0 0 0 3px rgba(141, 0, 185, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* =====================================================
   BUTTONS - RESPONSIVE
   ===================================================== */

button,
.btn,
[type="button"],
[type="submit"],
[type="reset"] {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary,
button[type="submit"] {
  background: #8d00b9;
  color: #ffffff;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: #6d0088;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-outline {
  background: transparent;
  border: 2px solid #dee2e6;
  color: #666;
}

.btn-outline:hover {
  border-color: #8d00b9;
  color: #8d00b9;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-large {
  padding: 12px 28px;
  font-size: 16px;
  width: 100%;
}

/* =====================================================
   GRID SYSTEM - RESPONSIVE
   ===================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.col,
[class*="col-"] {
  padding-right: 12px;
  padding-left: 12px;
  flex-basis: 100%;
  flex-grow: 0;
}

/* Mobile First - Full width by default */
.col-1 {
  max-width: calc(100% * 1 / 12);
}

.col-2 {
  max-width: calc(100% * 2 / 12);
}

.col-3 {
  max-width: calc(100% * 3 / 12);
}

.col-4 {
  max-width: calc(100% * 4 / 12);
}

.col-5 {
  max-width: calc(100% * 5 / 12);
}

.col-6 {
  max-width: calc(100% * 6 / 12);
}

.col-7 {
  max-width: calc(100% * 7 / 12);
}

.col-8 {
  max-width: calc(100% * 8 / 12);
}

.col-9 {
  max-width: calc(100% * 9 / 12);
}

.col-10 {
  max-width: calc(100% * 10 / 12);
}

.col-11 {
  max-width: calc(100% * 11 / 12);
}

.col-12 {
  max-width: 100%;
}

/* =====================================================
   TABLES - RESPONSIVE
   ===================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

tr:hover {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 8px;
  }
}

/* =====================================================
   FOOTER - RESPONSIVE
   ===================================================== */

footer {
  background: #34213a;
  color: #ffffff;
  padding: 20px 15px;
  margin-top: 0;
  text-align: center;
  font-size: 13px;
}

footer p {
  margin-bottom: 5px;
}

/* =====================================================
   MAIN CONTENT SECTION
   ===================================================== */

main,
section {
  width: 100%;
  padding: 0;
  min-height: auto;
}

/* =====================================================
   CARDS & PANELS
   ===================================================== */

.card,
.panel,
.box {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  margin: -20px -20px 15px;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.card-body {
  padding: 0;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  margin: 15px -20px -20px;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */

.alert,
.message {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.alert-success,
.message.success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger,
.message.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.mt-5 {
  margin-top: 32px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mb-5 {
  margin-bottom: 32px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 12px;
}

.p-3 {
  padding: 16px;
}

.p-4 {
  padding: 24px;
}

.p-5 {
  padding: 32px;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block;
}

.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 12px;
}

.gap-3 {
  gap: 16px;
}

.gap-4 {
  gap: 24px;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.text-muted {
  color: #6c757d;
}

.text-secondary {
  color: #6c757d;
}

.text-success {
  color: #198754;
}

.text-danger {
  color: #dc3545;
}

.text-warning {
  color: #ffc107;
}

.text-info {
  color: #0dcaf0;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-dark {
  background-color: #212529;
}

.bg-white {
  background-color: #ffffff;
}

/* =====================================================
   TABLET & MEDIUM SCREENS (768px+)
   ===================================================== */

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .col-md-1 {
    max-width: calc(100% * 1 / 12);
  }

  .col-md-2 {
    max-width: calc(100% * 2 / 12);
  }

  .col-md-3 {
    max-width: calc(100% * 3 / 12);
  }

  .col-md-4 {
    max-width: calc(100% * 4 / 12);
  }

  .col-md-5 {
    max-width: calc(100% * 5 / 12);
  }

  .col-md-6 {
    max-width: calc(100% * 6 / 12);
  }

  .col-md-7 {
    max-width: calc(100% * 7 / 12);
  }

  .col-md-8 {
    max-width: calc(100% * 8 / 12);
  }

  .col-md-9 {
    max-width: calc(100% * 9 / 12);
  }

  .col-md-10 {
    max-width: calc(100% * 10 / 12);
  }

  .col-md-11 {
    max-width: calc(100% * 11 / 12);
  }

  .col-md-12 {
    max-width: 100%;
  }

  header {
    padding: 8px 0;
  }

  header img {
    max-width: 180px;
  }

  nav ul {
    gap: 15px;
  }

  nav a,
  nav button {
    padding: 10px 16px;
    font-size: 15px;
  }

  button,
  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 16px;
  }

  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block;
  }

  .d-md-inline {
    display: inline;
  }

  .d-md-inline-block {
    display: inline-block;
  }

  .d-md-flex {
    display: flex;
  }
}

/* =====================================================
   DESKTOP & LARGE SCREENS (1024px+)
   ===================================================== */

@media (min-width: 1024px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .col-lg-1 {
    max-width: calc(100% * 1 / 12);
  }

  .col-lg-2 {
    max-width: calc(100% * 2 / 12);
  }

  .col-lg-3 {
    max-width: calc(100% * 3 / 12);
  }

  .col-lg-4 {
    max-width: calc(100% * 4 / 12);
  }

  .col-lg-5 {
    max-width: calc(100% * 5 / 12);
  }

  .col-lg-6 {
    max-width: calc(100% * 6 / 12);
  }

  .col-lg-7 {
    max-width: calc(100% * 7 / 12);
  }

  .col-lg-8 {
    max-width: calc(100% * 8 / 12);
  }

  .col-lg-9 {
    max-width: calc(100% * 9 / 12);
  }

  .col-lg-10 {
    max-width: calc(100% * 10 / 12);
  }

  .col-lg-11 {
    max-width: calc(100% * 11 / 12);
  }

  .col-lg-12 {
    max-width: 100%;
  }

  header img {
    max-width: 200px;
  }

  nav ul {
    gap: 20px;
  }

  nav a,
  nav button {
    padding: 12px 20px;
    font-size: 16px;
  }

  button,
  .btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block;
  }

  .d-lg-inline {
    display: inline;
  }

  .d-lg-inline-block {
    display: inline-block;
  }

  .d-lg-flex {
    display: flex;
  }
}

/* =====================================================
   EXTRA LARGE SCREENS (1200px+)
   ===================================================== */

@media (min-width: 1200px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .col-xl-1 {
    max-width: calc(100% * 1 / 12);
  }

  .col-xl-2 {
    max-width: calc(100% * 2 / 12);
  }

  .col-xl-3 {
    max-width: calc(100% * 3 / 12);
  }

  .col-xl-4 {
    max-width: calc(100% * 4 / 12);
  }

  .col-xl-5 {
    max-width: calc(100% * 5 / 12);
  }

  .col-xl-6 {
    max-width: calc(100% * 6 / 12);
  }

  .col-xl-7 {
    max-width: calc(100% * 7 / 12);
  }

  .col-xl-8 {
    max-width: calc(100% * 8 / 12);
  }

  .col-xl-9 {
    max-width: calc(100% * 9 / 12);
  }

  .col-xl-10 {
    max-width: calc(100% * 10 / 12);
  }

  .col-xl-11 {
    max-width: calc(100% * 11 / 12);
  }

  .col-xl-12 {
    max-width: 100%;
  }

  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block;
  }

  .d-xl-inline {
    display: inline;
  }

  .d-xl-inline-block {
    display: inline-block;
  }

  .d-xl-flex {
    display: flex;
  }
}

/* =====================================================
   SMALL MOBILE (max-width: 480px)
   ===================================================== */

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 14px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  header {
    padding: 8px 0;
  }

  header img {
    max-width: 120px;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
  }

  nav a,
  nav button {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }

  button,
  .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-large {
    padding: 14px 20px;
  }

  label {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 12px 10px;
  }

  table {
    font-size: 11px;
  }

  th,
  td {
    padding: 6px;
  }

  .row {
    margin-right: -8px;
    margin-left: -8px;
  }

  .col,
  [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
  }

  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block;
  }

  .mt-1 {
    margin-top: 4px;
  }

  .mt-2 {
    margin-top: 8px;
  }

  .mt-3 {
    margin-top: 12px;
  }

  .mt-4 {
    margin-top: 16px;
  }

  .mt-5 {
    margin-top: 20px;
  }

  .mb-1 {
    margin-bottom: 4px;
  }

  .mb-2 {
    margin-bottom: 8px;
  }

  .mb-3 {
    margin-bottom: 12px;
  }

  .mb-4 {
    margin-bottom: 16px;
  }

  .mb-5 {
    margin-bottom: 20px;
  }

  footer {
    padding: 15px 12px;
    font-size: 12px;
  }

  main,
  section {
    padding: 0;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {

  header,
  nav,
  footer,
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  button,
  .btn {
    border: 1px solid black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* =====================================================
   MOBILE MENU FIXES (Public Header)
   ===================================================== */
@media (max-width: 768px) {

  /* Ensure menu content container uses Flexbox for vertical stacking */
  .xs_menu .content>div {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .xs_menu .content>div .logo {
    flex: 0 0 auto;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Clear overlaps for the menu links area */
  .xs_menu .content>div .menuContent {
    flex: 1 1 auto;
    padding: 20px 15px;
    /* Ensure space for any absolute elements if present */
    position: relative;
  }

  .xs_menu .content>div .menuContent ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .xs_menu .content>div .menuContent ul li {
    display: block;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 0;
  }

  .xs_menu .content>div .menuContent ul li a {
    display: block;
    padding: 12px 5px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
  }

  /* Fix overlapping TR/EN if it appears here */
  .activeLanguage,
  .languageSelector {
    position: relative;
    margin: 15px 0;
    padding: 0 15px;
    display: block !important;
    /* Force block flow */
    clear: both;
  }

  /* Buttons Section Fix */
  .xs_menu .content>div .buttons {
    flex: 0 0 auto;
    padding: 20px 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    background: #fff;
  }

  .xs_menu .content>div .buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Candidate Login Button Color */
  .xs_menu .content>div .buttons a[href*="uye/giris"] {
    background-color: #8d00b9;
  }

  /* Employer Login Button Color */
  .xs_menu .content>div .buttons a[href*="isveren/giris"] {
    background-color: #282828;
  }

  .xs_menu .content>div .buttons a i {
    margin-right: 8px;
  }
}