/* Üyeler ve Danışmanlar referansından türetilen ortak portal tasarımı.
   Eski sayfa sınıfları bu katmanda eşlenir; sayfa davranışları kendi modüllerinde kalır. */
.unified-portal {
  --login-logo-bg: #1d202e;
  --portal-accent: var(--nav-accent, #ff751f);
  --portal-tint: color-mix(in srgb, var(--portal-accent) 9%, var(--bg-primary));
  --portal-ink: color-mix(in srgb, var(--portal-accent) 68%, var(--text-primary));
  --portal-radius: 18px;
  --innomis-primary: var(--portal-accent);
  --innomis-subtle: var(--portal-tint);
  --dash-bg: var(--bg-secondary);
  --dash-surface: var(--bg-primary);
  --dash-surface-elevated: var(--bg-primary);
  --dash-surface-subtle: var(--bg-tertiary);
  --dash-text: var(--text-primary);
  --dash-text-primary: var(--text-primary);
  --dash-text-muted: var(--text-secondary);
  --dash-border: var(--border-color);
  --dash-border-subtle: var(--border-color);
  --brand-gradient: var(--portal-accent);
  --brand-gradient-hover: var(--portal-ink);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.unified-portal .main-wrapper { min-width: 0; min-height: 100vh; background: var(--bg-secondary); }
.unified-portal .shared-wordmark { padding: 6px; border-radius: 8px; background: var(--nav-white); }
.unified-portal :is(.page-content, .directory-content) { width: 100%; max-width: 1500px; margin: 0 auto; padding: 40px 36px 48px; gap: 24px; }
.unified-portal .top-header { display: flex; height: 76px; min-height: 76px; padding: 0 36px; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); box-shadow: none; }
.unified-portal .header-page-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.unified-portal .header-page-desc { font-size: 11px; }
.unified-portal :is(.header-call-pill, .header-role-badge) { background: var(--portal-tint); color: var(--portal-ink); border-color: var(--border-color); box-shadow: none; }
.unified-portal :is(.sidebar-toggle-btn, .theme-toggle-btn) { width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-primary); color: var(--text-secondary); }
.unified-portal :is(.header-user-avatar, .header-user-chip) { box-shadow: none; }
.unified-portal .header-user-avatar { background: var(--portal-tint); color: var(--portal-ink); }
.unified-portal :is(.projects-hero-banner, .welcome-banner) { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 8px 0 40px; background: transparent !important; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; box-shadow: none; overflow: visible; }
.unified-portal :is(.projects-hero-banner, .welcome-banner)::before,
.unified-portal :is(.projects-hero-banner, .welcome-banner)::after { display: none; }
.unified-portal :is(.hero-main-title, .welcome-heading) { font-size: clamp(30px, 3vw, 46px); line-height: 1.15; letter-spacing: -.04em; font-weight: 750; color: var(--text-primary); margin: 12px 0 16px; }
.unified-portal .welcome-heading span { color: var(--portal-ink); }
.unified-portal :is(.hero-sub-text, .welcome-subtext) { font-size: 14px; line-height: 1.8; max-width: 570px; color: var(--text-secondary); }
.unified-portal :is(.hero-tags-row, .welcome-chip-wrapper, .mobile-brand-strip) { display: none; }
.unified-portal .hero-left-col { flex: 1; min-width: 0; }
.unified-portal .hero-right-actions { align-self: center; }
.unified-portal :is(.welcome-right-card, .projects-toolbar-card, .project-table-card, .project-card, .stat-card, .dashboard-card, .content-card, .panel-card, .card) { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--portal-radius); box-shadow: none; min-width: 0; }
.unified-portal :is(.project-card, .stat-card, .dashboard-card, .content-card, .panel-card, .card) { padding: 24px; }
.unified-portal :is(.project-card, .stat-card, .card):hover { transform: none; box-shadow: none; border-color: var(--border-color-strong); }
.unified-portal .project-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.unified-portal .project-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.unified-portal .project-card__category { font-size: 10px; padding: 5px 9px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-secondary); color: var(--text-secondary); text-transform: none; letter-spacing: 0; }
.unified-portal .project-card__meta { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.unified-portal .project-card__actions { border-top: 1px solid var(--border-color); padding-top: 14px; margin-top: auto; }
.unified-portal .projects-toolbar-card { padding: 20px; gap: 20px; }
.unified-portal :is(.search-input-box, .custom-select, .form-input, .form-textarea) { border: 1px solid var(--border-color); border-radius: 10px; min-height: 46px; background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 13px; box-shadow: none; }
.unified-portal :is(.form-input, .form-textarea) { width: 100%; padding: 12px 14px; }
.unified-portal .form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.unified-portal :is(.btn-create-project, .btn-save-project, .btn-welcome-primary, .btn--primary, .btn-primary) { background: var(--portal-accent); color: var(--nav-bg, var(--text-primary)); border: 1px solid var(--portal-accent); border-radius: 10px; min-height: 44px; padding: 12px 20px; font-size: 13px; font-weight: 650; box-shadow: none; }
.unified-portal :is(.btn-welcome-secondary, .filter-btn, .view-toggle-btn) { min-height: 44px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-secondary); border-radius: 10px; box-shadow: none; }
.unified-portal :is(.filter-btn.active, .view-toggle-btn.active) { background: var(--portal-tint); color: var(--portal-ink); border-color: var(--border-color); }
.unified-portal :is(.section-main-title, .section-title) { font-size: 22px; letter-spacing: -.025em; }
.unified-portal :is(.section-sub-desc, .toolbar-meta-row) { font-size: 13px; color: var(--text-secondary); }
.unified-portal .stat-card-value { font-size: 34px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.unified-portal .welcome-left-content { flex: 1.5; min-width: 0; }
.unified-portal .welcome-right-card { flex: 1; min-width: 280px; padding: 28px; }
.unified-portal .welcome-actions-row { flex-wrap: wrap; }
.unified-portal .empty-state { padding: 56px 24px; border-radius: var(--portal-radius); color: var(--text-secondary); }
.unified-portal .innomis-data-table th { background: var(--bg-secondary); color: var(--text-secondary); font-size: 11px; }
.unified-portal .innomis-data-table td { font-size: 13px; border-color: var(--border-color); }
.unified-portal #profileForm { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px !important; width: 100%; gap: 24px !important; }
.unified-portal #profileForm > div:nth-child(n+5) { grid-column: 1 / -1; }
.unified-portal #profileAvatarBig { width: 80px !important; height: 80px !important; background: var(--portal-tint) !important; color: var(--portal-ink) !important; border-radius: 18px !important; font-size: 28px !important; flex-shrink: 0; }
.unified-portal :is(.modal-content, .modal-container, .apps-modal-container) { background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: var(--shadow-xl); }
.unified-portal :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--portal-accent); outline-offset: 3px; }
/* Giriş: panelle aynı yüzey, tipografi ve form ölçeği. */
.login-body.unified-portal { background: var(--bg-secondary); }
.unified-portal .portal-card { border: 1px solid var(--border-color); border-radius: 20px; box-shadow: none; background: var(--bg-primary); }
.unified-portal .brand-showcase { background: var(--bg-tertiary); color: var(--text-primary); border-right: 1px solid var(--border-color); }
.unified-portal .brand-showcase::before, .unified-portal .brand-showcase::after { display: none; }
.unified-portal .showcase-title { color: var(--text-primary); font-size: clamp(32px, 3vw, 46px); letter-spacing: -.04em; }
.unified-portal .showcase-title span { color: var(--portal-ink); -webkit-text-fill-color: var(--portal-ink); background: none; }
.unified-portal :is(.showcase-desc, .showcase-subtitle, .feature-text, .brand-footer) { color: var(--text-secondary); }
.unified-portal :is(.partner-innomis-box, .mobile-innomis-box) { background: var(--login-logo-bg); padding: 8px; border-radius: 8px; }
.unified-portal .mobile-innomis-box .logo-light { display: none; }
.unified-portal .mobile-innomis-box .logo-dark { display: block; }
.unified-portal .portal-input { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); }
.unified-portal .submit-portal-btn { background: var(--portal-accent); color: var(--nav-bg, var(--text-primary)); border-radius: 10px; box-shadow: none; min-height: 46px; }
.unified-portal :is(.demo-info-panel, .demo-chip) { background: var(--bg-secondary); border-color: var(--border-color); border-radius: 12px; }
@media (max-width: 1200px) { .unified-portal .project-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
 .unified-portal :is(.page-content, .directory-content) { padding: 28px 24px 40px; }
 .unified-portal .welcome-right-card { flex-basis: 100%; }
}
@media (max-width: 768px) {
 .unified-portal .top-header { display: flex; height: 64px; min-height: 64px; padding: 0 16px; }
 .unified-portal :is(.header-call-pill, .header-user-meta, .header-page-desc, .header-right-area > .btn-header-action) { display: none; }
 .unified-portal :is(.header-left-area, .header-right-area) { gap: 8px; min-width: 0; }
 .unified-portal .header-page-title { font-size: 12px; }
 .unified-portal :is(.page-content, .directory-content) { padding: 28px 16px 32px; }
 .unified-portal :is(.projects-hero-banner, .welcome-banner) { padding-bottom: 28px; gap: 24px; }
 .unified-portal :is(.hero-main-title, .welcome-heading) { font-size: 34px; }
 .unified-portal .projects-toolbar-card { padding: 16px; }
 .unified-portal .project-card { padding: 22px; }
 .unified-portal #profileForm { grid-template-columns: minmax(0, 1fr); }
 .unified-portal #profileForm > div { grid-column: 1; }
 .unified-portal .brand-showcase { border-right: 0; }
}
@media (max-width: 560px) {
 .unified-portal .project-cards-grid { grid-template-columns: minmax(0, 1fr); }
 .unified-portal .hero-right-actions { width: 100%; }
 .unified-portal .welcome-right-card { min-width: 0; width: 100%; padding: 22px; }
 .unified-portal .hero-left-col { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .unified-portal *, .unified-portal *::before, .unified-portal *::after { animation: none !important; transition: none !important; } }
/* Eski mobil kuralların !important değerlerini ortak ölçülere bağla. */
.unified-portal .search-input-wrap { min-width: 0; }
.unified-portal .search-input-box { padding: 0 14px 0 42px; }
.unified-portal .hero-left-col { padding: 0; }
.unified-portal :is(.feature-meta strong, .feature-meta span, .affiliation-text, .category-badge) { color: var(--text-secondary); }
.unified-portal .feature-row { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 14px; }
@media (max-width: 768px) {
 .unified-portal .top-header { display: flex !important; }
 .unified-portal :is(.page-content, .directory-content) { padding: 28px 16px 32px !important; }
}
@media (max-width: 768px) {
 .unified-portal :is(.projects-hero-banner, .welcome-banner) { flex-direction: row; height: auto; }
 .unified-portal .hero-left-col { width: 100%; flex: 1 1 100%; }
}
.unified-portal .filter-btn { padding: 10px 14px; font-size: 12px; line-height: 1.5; }
.unified-portal #categoryFilters { display: flex; flex-wrap: wrap; gap: 8px; }
/* Tüm panel sayfalarında ortak header; mobil navigasyon alt dock üzerinden. */
.unified-portal :is(.top-header, .directory-topbar, .detail-topbar) { position: sticky; top: 0; z-index: 200; min-height: 76px; height: 76px; padding: 0 36px; gap: 24px; background: color-mix(in srgb, var(--bg-primary) 94%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); box-shadow: none; }
.unified-portal :is(.header-left-area,.directory-topbar-group,.detail-topbar-left,.detail-topbar-right,.header-right-area) { min-width: 0; gap: 14px; }
.unified-portal :is(.header-page-title,.detail-topbar-label) { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text-primary); }
.unified-portal .header-page-desc { font-size: 10px; line-height: 1.5; color: var(--text-secondary); }
.unified-portal .header-call-pill { font-size: 10px; white-space: nowrap; }
.unified-portal .header-user-chip { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); }
.unified-portal :is(.header-user-avatar,.directory-user,.detail-profile-link) { width: 36px; height: 36px; border-radius: 11px; background: var(--portal-tint); color: var(--portal-ink); }
.unified-portal .shared-header-brand { display: none; }
@media (max-width: 1000px) { .unified-portal .header-call-pill { display: none; } }
@media (max-width: 768px) {
 .unified-portal :is(.top-header,.directory-topbar,.detail-topbar) { height: 64px; min-height: 64px; padding: 0 16px; gap: 12px; }
 .unified-portal :is(#sidebarToggleBtn,#sidebarToggle,#hamburgerBtn,#mobileMenuBtn,.sidebar-toggle-btn) { display: none !important; }
 .unified-portal .shared-header-brand { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; text-decoration: none; }
 .shared-header-brand img { width: 30px; height: 30px; object-fit: contain; }
 .unified-portal :is(.header-left-area,.directory-topbar-group,.detail-topbar-left,.detail-topbar-right,.header-right-area) { gap: 10px; }
 .unified-portal :is(.header-page-title,.detail-topbar-label,.directory-topbar-group > span) { font-size: 12px; line-height: 1.4; font-weight: 600; }
 .unified-portal :is(.header-right-area > button:last-child:not(#themeToggleBtn),.header-right-area > .btn-header-action,.header-call-pill,.header-user-meta,.header-page-desc,.directory-program,.detail-program) { display: none !important; }
 .unified-portal :is(.theme-toggle-btn,.directory-icon-button,.detail-icon-button) { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-secondary); }
 .unified-portal .header-user-chip { padding: 0; border: 0; background: transparent; }
 body.app-body .shared-sidebar, body.app-body .shared-sidebar.mobile-open { display: none !important; }
 body.app-body .sidebar-overlay { display: none !important; }
}
@media (max-width: 768px) {
 body.app-body.unified-portal > .main-wrapper, body.app-body.unified-portal > .main-wrapper.sidebar-collapsed, body.app-body.unified-portal > .main-content, body.app-body.unified-portal > .main-content.sidebar-collapsed { margin-left: 0 !important; width: 100%; }
}
/* Liste sayfalarında tanıtım bannerı yerine doğrudan çalışma araçları. */
.unified-portal .projects-hero-banner:not(:has(#profileAvatarBig)) { justify-content: flex-end; padding: 0; border: 0; margin: 0; gap: 0; }
.unified-portal .projects-hero-banner:not(:has(#profileAvatarBig)):not(:has(button, a)) { display: none; }
.unified-portal .projects-hero-banner .hero-right-actions { width: auto; margin-left: auto; }
.unified-portal .directory-intro { display: block; padding: 0; border: 0; }
.unified-portal .directory-statistics { width: 100%; max-width: none; }
.unified-portal .welcome-banner { padding: 0; border: 0; }
.unified-portal .welcome-left-content { display: flex; align-items: center; }
.unified-portal .welcome-actions-row { margin: 0; }
@media (max-width: 768px) { .unified-portal .projects-hero-banner .hero-right-actions { width: 100%; } }
