/* ==================================================
   WORLD TRADE INDIA (WTI) 2026 - COMPONENTS STYLESHEET
   Buttons, Modals, Forms, Drawer, Radial Nodes, Toasts
   ================================================== */

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1.2;
  border-radius: var(--radius-sharp);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  border: none;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary Button: Orange Energy Gradient */
.btn-primary {
  background: linear-gradient(115deg, var(--orange) 0%, var(--orange-bright) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: linear-gradient(115deg, #e55c12 0%, var(--orange) 100%);
  box-shadow: 0 16px 28px rgba(244, 109, 37, 0.35);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button: Outlined White */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sharp);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

/* Outlined Navy Button */
.btn-outline-navy {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue-border-light);
  border-radius: var(--radius-sharp);
}

.btn-outline-navy:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-3px);
}

/* Sizes */
.btn-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 0.10em;
}

.btn-lg {
  min-height: 54px;
  padding: 16px 34px;
  font-size: 11px;
  letter-spacing: 0.10em;
}

/* ==================================================
   MOBILE NAVIGATION DRAWER
   ================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--darker-navy);
  z-index: 1050;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transition: right var(--transition-smooth);
  overflow-y: auto;
  border-left: 1px solid rgba(196, 122, 24, 0.3);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-header img {
  height: 54px;
  width: auto;
  max-width: calc(100% - 64px);
  object-fit: contain;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-nav-item a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active {
  color: var(--gold-glow);
  padding-left: 8px;
}

.mobile-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 36, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==================================================
   INTERACTIVE MODAL DIALOGS
   ================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 36, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-sharp);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(6, 26, 58, 0.4);
  border: 1px solid var(--line);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 30px;
  background: var(--ink);
  color: var(--white);
  border-top-left-radius: var(--radius-sharp);
  border-top-right-radius: var(--radius-sharp);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange);
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-header p {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-top: 4px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
}

.modal-close-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  transition: stroke var(--transition-fast);
}

.modal-close-btn:hover svg {
  stroke: var(--gold-glow);
}

.modal-body {
  padding: 30px;
}

/* Modal Form Styles */
.modal-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}

.form-input,
.form-select,
.form-textarea {
  min-height: 48px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--blue-border-light);
  border-radius: var(--radius-sharp);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    min-height: 48px;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-action);
  box-shadow: 0 0 0 3px rgba(11, 95, 193, 0.15);
  background: #FFFFFF;
  outline: none;
}

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

.form-submit-btn {
  grid-column: span 2;
  margin-top: 10px;
  width: 100%;
}

/* ==================================================
   TOAST NOTIFICATION
   ================================================== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark-navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(196, 122, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-glow);
}

.toast-text h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.toast-text p {
  font-size: 0.78rem;
  color: #CBD5E1;
}

/* ==================================================
   BACK TO TOP BUTTON
   ================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(196, 122, 24, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top-btn:hover {
  background: var(--gold);
  color: var(--dark-navy);
  transform: scale(1.08);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transform: rotate(180deg);
}
