/* Innovmar Platform Portalleri & Kurumsal Girisler (E-Com, Ajans Paneli, Kurumsal Mail) */

.im-refresh header nav a,
.im-refresh header a[href="/iletisim"],
.im-refresh header a[href="/contact"] {
  white-space: nowrap;
}

.im-refresh header nav a {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.im-portal-nav-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.im-portal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(148, 196, 181, 0.34);
  background: rgba(165, 230, 201, 0.08);
  color: #b3f4d8;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.im-portal-trigger:hover {
  background: rgba(165, 230, 201, 0.16);
  border-color: rgba(179, 244, 216, 0.55);
}

.im-portal-trigger .im-chev {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.im-portal-trigger[aria-expanded="true"] .im-chev {
  transform: rotate(180deg);
}

.im-refresh:not(.dark) .im-portal-trigger {
  color: #164e3f;
  border-color: rgba(22, 78, 63, 0.28);
  background: rgba(22, 78, 63, 0.06);
}

.im-refresh:not(.dark) .im-portal-trigger:hover {
  background: rgba(22, 78, 63, 0.12);
}

.im-portal-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 318px;
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 196, 181, 0.28);
  background: rgba(11, 24, 32, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  z-index: 80;
  display: none;
}

.im-portal-dropdown[data-open="true"] {
  display: grid;
  gap: 0.35rem;
}

.im-refresh:not(.dark) .im-portal-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.im-portal-dd-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.im-portal-dd-item:hover {
  background: rgba(165, 230, 201, 0.1);
  border-color: rgba(148, 196, 181, 0.26);
}

.im-refresh:not(.dark) .im-portal-dd-item:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

.im-portal-dd-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1fbf7;
}

.im-refresh:not(.dark) .im-portal-dd-title {
  color: #0f172a;
}

.im-portal-dd-sub {
  font-size: 0.7rem;
  color: #93b3a5;
}

.im-refresh:not(.dark) .im-portal-dd-sub {
  color: #475569;
}

.im-portal-dd-footer {
  margin-top: 0.15rem;
  padding: 0.45rem 0.75rem 0.25rem;
  border-top: 1px solid rgba(148, 196, 181, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: #88aa9c;
}

.im-portal-dd-footer a {
  color: #b3f4d8;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.im-refresh:not(.dark) .im-portal-dd-footer {
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

.im-refresh:not(.dark) .im-portal-dd-footer a {
  color: #0f5132;
}

/* Hero quick portal strip */
.im-hero-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.im-hero-portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid rgba(148, 196, 181, 0.28);
  background: rgba(18, 39, 49, 0.75);
  color: #e2f8ef;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.im-hero-portal-chip:hover {
  border-color: rgba(179, 244, 216, 0.65);
  background: rgba(25, 56, 68, 0.92);
  transform: translateY(-1px);
}

.im-hero-portal-chip .im-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b3f4d8;
  box-shadow: 0 0 8px rgba(179, 244, 216, 0.8);
}

.im-hero-portal-chip.is-cyan .im-dot {
  background: #73c9e4;
  box-shadow: 0 0 8px rgba(115, 201, 228, 0.8);
}

.im-hero-portal-chip.is-amber .im-dot {
  background: #f5c26b;
  box-shadow: 0 0 8px rgba(245, 194, 107, 0.8);
}

.im-refresh:not(.dark) .im-hero-portal-chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

.im-refresh:not(.dark) .im-hero-portal-chip:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.3);
}

/* Dedicated Platforms & Access Section (#platform-portalleri) */
.im-platforms-section {
  position: relative;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid rgba(141, 191, 166, 0.16);
  border-bottom: 1px solid rgba(141, 191, 166, 0.16);
  background: radial-gradient(circle at top right, rgba(115, 201, 228, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(179, 244, 216, 0.07), transparent 45%),
              linear-gradient(180deg, rgba(11, 26, 35, 0.72), rgba(9, 20, 28, 0.92));
}

.im-refresh:not(.dark) .im-platforms-section {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-color: rgba(15, 23, 42, 0.1);
}

.im-platforms-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.im-platforms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.im-platforms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95d8bd;
}

.im-refresh:not(.dark) .im-platforms-eyebrow {
  color: #166534;
}

.im-platforms-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.15;
  color: #f3fbf8;
}

.im-refresh:not(.dark) .im-platforms-head h2 {
  color: #0f172a;
}

.im-platforms-head p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #9cb6af;
}

.im-refresh:not(.dark) .im-platforms-head p {
  color: #475569;
}

.im-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.im-platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.65rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(143, 186, 163, 0.22);
  background: linear-gradient(145deg, rgba(22, 42, 49, 0.92), rgba(14, 28, 37, 0.94));
  box-shadow: inset 0 1px 0 rgba(214, 255, 243, 0.06), 0 18px 42px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.im-platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(145, 222, 194, 0.48);
}

.im-refresh:not(.dark) .im-platform-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.im-platform-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd2bc;
}

.im-refresh:not(.dark) .im-platform-kicker {
  color: #0f766e;
}

.im-platform-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  border: 1px solid rgba(148, 196, 181, 0.28);
  color: #b3f4d8;
  background: rgba(179, 244, 216, 0.08);
}

.im-refresh:not(.dark) .im-platform-badge {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.im-platform-card h3 {
  margin: 0.95rem 0 0.5rem;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.im-refresh:not(.dark) .im-platform-card h3 {
  color: #0f172a;
}

.im-platform-desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.68;
  color: #a7beb7;
}

.im-refresh:not(.dark) .im-platform-desc {
  color: #475569;
}

.im-platform-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
  font-size: 0.78rem;
  color: #cfe3dc;
}

.im-platform-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.im-platform-list li::before {
  content: "✓";
  color: #95d8bd;
  font-weight: 700;
  flex-shrink: 0;
}

.im-refresh:not(.dark) .im-platform-list {
  color: #334155;
}

.im-refresh:not(.dark) .im-platform-list li::before {
  color: #059669;
}

.im-platform-demos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.im-platform-demos a {
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 196, 181, 0.24);
  color: #bfe7da;
  background: rgba(16, 33, 41, 0.7);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.im-platform-demos a:hover {
  border-color: rgba(179, 244, 216, 0.6);
  background: rgba(25, 53, 64, 0.9);
}

.im-refresh:not(.dark) .im-platform-demos a {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.im-platform-cred {
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.73rem;
  line-height: 1.45;
  border: 1px dashed rgba(148, 196, 181, 0.32);
  background: rgba(9, 20, 28, 0.55);
  color: #c5ded6;
}

.im-platform-cred code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #b3f4d8;
}

.im-refresh:not(.dark) .im-platform-cred {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.im-refresh:not(.dark) .im-platform-cred code {
  color: #0f766e;
}

.im-platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.im-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.68rem 1rem;
  border-radius: 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: #b3f4d8;
  color: #0d2b22;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.im-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.im-refresh:not(.dark) .im-btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.im-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.68rem 0.92rem;
  border-radius: 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 196, 181, 0.32);
  color: #d6f5e8;
  background: rgba(165, 230, 201, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.im-btn-secondary:hover {
  background: rgba(165, 230, 201, 0.14);
  border-color: rgba(179, 244, 216, 0.55);
}

.im-refresh:not(.dark) .im-btn-secondary {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
  background: #ffffff;
}

@media (max-width: 1023px) {
  .im-platforms-grid {
    grid-template-columns: 1fr;
  }
  .im-hero-portals {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .im-platforms-section {
    padding: 3rem 1.15rem;
  }
  .im-platform-card {
    padding: 1.25rem;
  }
}
