/* ==========================================================================
   SMTwin theme — mobile overrides (max-width: 899px)
   Tema responsive.css'i varsayılanın yerine yüklendiğinden önce çekirdek
   responsive stiller import edilir.
   ========================================================================== */

@import url("/stylesheets/responsive.css");

@media all and (max-width: 899px) {

  #header {
    background:
      radial-gradient(420px 160px at 10% -40%, rgba(37, 99, 235, .46), transparent 65%),
      linear-gradient(135deg, #0b1220 0%, #17183d 100%);
    border-bottom: 1px solid rgba(34, 211, 238, .30);
    box-shadow: 0 12px 34px rgba(2, 6, 23, .38);
    padding: 12px 16px;
  }

  .mobile-toggle-button {
    border-left-color: rgba(255, 255, 255, .12);
  }
  .mobile-toggle-button:hover { background: rgba(255, 255, 255, .07); }
  .mobile-toggle-button:after { color: #ffffff; }

  #project-jump .drdn-trigger::before {
    border-bottom: 2px solid rgba(255, 255, 255, .78);
    border-right: 2px solid rgba(255, 255, 255, .78);
    box-sizing: border-box;
    content: "";
    height: 9px;
    left: 5px;
    opacity: 1;
    padding: 0;
    top: 21px;
    transform: rotate(45deg);
    width: 9px;
  }
  #project-jump.expanded .drdn-trigger::before {
    padding: 0;
    top: 25px;
    transform: rotate(225deg);
  }

  /* Flyout menu (Redmine clones top/main menu in here on mobile) */
  #flyout-menu,
  .flyout-menu {
    background:
      radial-gradient(420px 260px at 20% 0%, rgba(37, 99, 235, .24), transparent 65%),
      #0b1220;
    visibility: hidden;
  }
  .flyout-is-active #flyout-menu,
  .flyout-is-active .flyout-menu { visibility: visible; }
  #flyout-menu h3,
  .flyout-menu h3 {
    background-color: #142a45;
    border-color: rgba(255, 255, 255, .08);
    color: #94a3b8;
    letter-spacing: .06em;
  }
  #flyout-menu a, .flyout-menu a { color: #e2e8f0; }
  #flyout-menu ul li a:hover,
  .flyout-menu ul li a:hover {
    background-color: rgba(255, 255, 255, .08);
    color: #ffffff;
  }
  #flyout-menu #account a, .flyout-menu #account a { color: #e2e8f0; }

  #content {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0;
    padding: 20px 18px 28px;
    box-shadow: none;
  }

  #content h2 {
    font-size: 21px;
    margin-bottom: 14px;
  }

  #content > .contextual > a,
  #content > .contextual .drdn,
  p.buttons a {
    background-color: var(--ag-surface);
    border-color: var(--ag-border);
    border-radius: var(--ag-radius-sm);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  }

  #content .box.tabular.settings { padding: 14px 16px; }
  #content .tabular.settings > p {
    padding-bottom: 12px;
    padding-top: 12px;
  }

  #admin-index #admin-menu > ul {
    grid-template-columns: minmax(0, 1fr);
  }
  #admin-index #admin-menu a,
  #admin-index #admin-menu a.selected {
    background-position: 15px 50%;
    line-height: 1.35;
    min-height: 54px;
    padding: 11px 38px 11px 44px !important;
  }

  #projects-index > ul.projects.root {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }
  #projects-index li.root > div.root {
    min-height: 116px;
    padding: 17px 48px 17px 70px;
  }
  #projects-index li.root > div.root::before {
    height: 40px;
    left: 16px;
    top: 17px;
    width: 40px;
  }
  #projects-index li.root > div.root::after {
    left: 22px;
    top: 23px;
  }

  table.list td, table.list thead th { padding: 9px 8px; }

  #login-form {
    border-radius: 12px;
    margin: 16px;
    padding: 24px;
  }
}
