/* TurkAsia B2B Platform - Main CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-body-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   NAVBAR & HEADER
   ========================================================================= */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-teal);
  letter-spacing: -0.5px;
}

.nav-brand .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 10px var(--color-teal-glow);
  flex-shrink: 0;
}

.nav-brand .brand-text span {
  color: var(--color-mustard-dark);
}

.nav-search {
  flex: 1;
  max-width: 380px;
  margin: 0 24px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-offwhite);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--color-teal);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--color-teal-subtle);
}

.nav-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-teal);
  background-color: var(--color-teal-subtle);
}

.nav-action-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-teal);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background-color: var(--color-teal-dark);
  box-shadow: 0 4px 12px var(--color-teal-glow);
}

.btn-outline {
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background-color: var(--color-teal-subtle);
}

.btn-mustard {
  background: linear-gradient(135deg, var(--color-mustard), var(--color-mustard-dark));
  color: var(--color-navy) !important;
  font-weight: 700;
}

.btn-mustard:hover {
  box-shadow: 0 4px 14px rgba(242, 193, 78, 0.4);
}

/* Auth & Navigation Actions Section */
.nav-auth-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* User Profile Nav Card */
.nav-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-offwhite);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
  height: 40px;
  box-sizing: border-box;
}

.nav-user-btn:hover {
  border-color: var(--color-teal);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-user-name {
  font-weight: 600;
  font-size: 13px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-main);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
  animation: fadeInDown 0.15s ease-out;
}

.dropdown-menu.show,
.nav-user-dropdown.show .dropdown-menu {
  display: block;
}

/* Language Selector Dropdown */
.lang-selector-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 40px;
  box-sizing: border-box;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition);
}

.lang-selector-btn:hover {
  background: #FFFFFF;
  border-color: var(--color-teal);
  color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.lang-selector-btn .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 6px;
  display: none;
  z-index: 1100;
}

.lang-dropdown-menu.show,
.lang-selector-dropdown.show .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.lang-dropdown-item:hover {
  background: var(--color-teal-subtle);
  color: var(--color-teal);
}

.lang-dropdown-item.active {
  background: var(--color-teal-subtle);
  color: var(--color-teal);
  font-weight: 700;
}

.lang-dropdown-item .check-icon {
  margin-left: auto;
  color: var(--color-teal);
  font-size: 14px;
}

/* Mobile Drawer Language Section */
.mobile-lang-section {
  padding: 14px 0 10px;
  border-top: 1px solid var(--color-border-light);
  margin-top: 12px;
}

.mobile-lang-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.mobile-lang-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-lang-pill:hover,
.mobile-lang-pill.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #FFFFFF;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
}

.dropdown-item:hover {
  background-color: var(--color-offwhite);
  color: var(--color-teal);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 6px 0;
}

/* =========================================================================
   HERO / BANNER
   ========================================================================= */
.hero-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #FFFFFF;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 109, 119, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--color-mustard);
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-tertiary);
  max-width: 580px;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-mustard);
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================================
   FILTER BAR & FEED TABS
   ========================================================================= */
.filter-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  margin-bottom: 28px;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-item {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.pill-item:hover, .pill-item.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #FFFFFF;
}

.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-offwhite);
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* =========================================================================
   CARDS (OPPORTUNITY, SERVICE, COMPANY)
   ========================================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 109, 119, 0.3);
}

/* Opportunity Card */
.opp-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tender {
  background: rgba(10, 109, 119, 0.12);
  color: var(--color-teal);
}

.badge-partnership {
  background: rgba(242, 193, 78, 0.2);
  color: #9A6E00;
}

.badge-supply {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-info);
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.card-title a:hover {
  color: var(--color-teal);
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-offwhite);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.opp-meta-item {
  display: flex;
  flex-direction: column;
}

.opp-meta-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
}

.opp-meta-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-teal);
}

.card-footer {
  padding: 14px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poster-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poster-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.poster-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Service Card */
.srv-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--color-offwhite);
  overflow: hidden;
}

.srv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .srv-card-media img {
  transform: scale(1.05);
}

.srv-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 43, 58, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-offwhite-dark);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Company Card */
.comp-card-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-navy));
  position: relative;
  overflow: hidden;
}

.comp-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comp-card-header {
  position: relative;
  padding: 0 20px;
  margin-top: -36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.comp-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.verified-icon {
  color: var(--color-teal);
  font-size: 16px;
  margin-left: 4px;
}

.premium-badge {
  background: linear-gradient(135deg, var(--color-mustard), var(--color-mustard-dark));
  color: var(--color-navy);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================================
   FORMS & INPUTS
   ========================================================================= */
.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-offwhite);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-teal);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--color-teal-subtle);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-white);
  padding: 60px 0 24px;
  margin-top: 80px;
  border-top: 3px solid var(--color-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-teal-light);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-mustard);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* Badge Notification Dot */
.badge-notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-error);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  text-align: center;
  padding: 0 4px;
}

/* Responsive Layout Helpers */
.explore-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr auto;
  gap: 12px;
  align-items: center;
}

.detail-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.opp-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.edit-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}

.scroll-touch {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* =========================================================================
   RTL (Arabic) SUPPORT
   ========================================================================= */
body.rtl-layout {
  font-family: 'Cairo', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
}

body.rtl-layout .nav-search i {
  left: auto;
  right: 16px;
}

body.rtl-layout .nav-search input {
  padding: 10px 42px 10px 16px;
}

body.rtl-layout .dropdown-menu,
body.rtl-layout .lang-dropdown-menu {
  right: auto;
  left: 0;
}

body.rtl-layout .lang-dropdown-item .check-icon {
  margin-left: 0;
  margin-right: auto;
}

body.rtl-layout .mobile-search-form i {
  left: auto;
  right: 14px;
}

body.rtl-layout .mobile-search-form input {
  padding: 12px 42px 12px 16px;
}

body.rtl-layout .mobile-badge {
  margin-left: 0;
  margin-right: auto;
}

body.rtl-layout .badge-notif-dot,
html[dir="rtl"] .badge-notif-dot {
  right: auto;
  left: 4px;
}

body.rtl-layout .mobile-hamburger-btn,
html[dir="rtl"] .mobile-hamburger-btn {
  margin-left: 0;
  margin-right: 8px;
}

body.rtl-layout .dropdown-menu,
body.rtl-layout .lang-dropdown-menu,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}



