/* Main Custom Stylesheet - MyAssetsHub Portal Native Design */
/* NOTE: Global resets removed for CI4 integration - site provides its own */

@import url('theme.css');



.mah-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}


/* NOTE: Standalone header styles (.top-ribbon, .mah-header, .mah-nav-*) removed for CI4 integration */

/* Icon button (used in tool pages) */
.mah-icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.mah-icon-btn:hover {
  color: var(--btn-blue);
  border-color: var(--btn-blue);
  transform: translateY(-2px);
}



/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(135deg, rgba(23,37,84,0.05) 0%, rgba(66,133,244,0.05) 100%);
  border-radius: 0 0 2rem 2rem;
  margin-bottom: 2rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(66, 133, 244, 0.1);
  color: #4285F4;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #0a2540;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1.75rem;
}

/* Modern Search Bar (.search-container-modern) */
.search-container-modern {
  position: relative !important;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 100;
}
.search-container-modern:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 133, 244, 0.3);
  transform: translateY(-2px);
}
.search-container-modern input {
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.95rem;
  width: 100%;
  border-radius: 50px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.search-container-modern .search-btn {
  background: var(--btn-blue);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  margin-left: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.search-container-modern .search-btn:hover {
  background: var(--btn-blue-hover);
}

/* SEARCH DROPDOWN PERFECT ABSOLUTE ALIGNMENT BELOW SEARCH BAR */
.mah-search-results {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  z-index: 9999 !important;
  display: none;
  padding: 0.5rem !important;
  text-align: left !important;
}

.mah-search-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.mah-search-item:last-child {
  border-bottom: none;
}
.mah-search-item:hover, .mah-search-item.active-focus {
  background: rgba(66, 133, 244, 0.08) !important;
}

/* Category Grid & Tabs */
.mah-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.mah-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.mah-tab-btn:hover {
  border-color: var(--btn-blue);
  color: var(--btn-blue);
}
.mah-tab-btn.active {
  background: var(--btn-blue);
  color: #ffffff;
  border-color: var(--btn-blue);
}

/* Category Cards (.category-grid) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #445;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.09);
  border-color: rgba(66, 133, 244, 0.25);
}

/* Domain Specific Icon Badges */
.mah-cat-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.category-card:hover .mah-cat-icon-badge {
  transform: scale(1.1) rotate(3deg);
}

/* Specific Domain Color Schemes */
.cat-badge-real-estate { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.cat-badge-area-converters { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.cat-badge-finance { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.cat-badge-business { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.cat-badge-general { background: rgba(225, 29, 72, 0.12); color: #e11d48; }
.cat-badge-ai-tools { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

/* Tool Cards Grid */
.mah-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.mah-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.mah-tool-card:hover {
  border-color: var(--btn-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mah-card-popular {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08) !important;
}

.mah-popular-tag {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

/* HEART FAVORITE ICON BUTTON */
.mah-tool-fav {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  z-index: 10 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.mah-tool-fav:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626 !important;
  transform: scale(1.15);
}
.mah-tool-fav.active {
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.12) !important;
}
.mah-tool-fav.active svg {
  fill: #dc2626 !important;
  stroke: #dc2626 !important;
}
.mah-tool-fav svg {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.tool-cat-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.pill-real-estate { background: rgba(16, 185, 129, 0.1); color: #059669; }
.pill-area-converters { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
.pill-finance { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.pill-business { background: rgba(2, 132, 199, 0.1); color: #0369a1; }
.pill-general { background: rgba(225, 29, 72, 0.1); color: #be123c; }
.pill-ai-tools { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }

.mah-tool-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.mah-tool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
  flex-grow: 1;
}

/* Tool Workspace */
.mah-workspace {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.mah-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Form Controls */
.mah-form-group {
  margin-bottom: 1.4rem;
}
.mah-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.mah-input, .mah-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.mah-input:focus, .mah-select:focus {
  border-color: var(--btn-blue);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Result Hero Box */
.mah-result-hero {
  background: linear-gradient(135deg, #0d4b96 0%, #4285F4 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.mah-result-val {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.5rem 0;
  font-family: var(--font-mono);
}

/* Modern FAQ Accordion UI */
.mah-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mah-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.mah-faq-item:hover {
  border-color: rgba(66, 133, 244, 0.3);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.08);
  transform: translateY(-2px);
}
.mah-faq-item.active {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.02);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.12);
}

.mah-faq-q {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  user-select: none;
  gap: 1rem;
}
.mah-faq-q .faq-num-badge {
  background: rgba(66, 133, 244, 0.1);
  color: #4285F4;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.mah-faq-q .faq-chevron-icon {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}
.mah-faq-item.active .faq-chevron-icon {
  transform: rotate(180deg);
  background: #4285F4;
  color: #ffffff;
}

.mah-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
}
.mah-faq-item.active .mah-faq-a {
  max-height: 800px;
  padding: 0.5rem 1.5rem 1.35rem;
}

/* Buttons */
.mah-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.mah-btn:hover {
  border-color: var(--btn-blue);
  color: var(--btn-blue);
}
.mah-btn-primary {
  background: var(--btn-blue);
  color: #ffffff;
  border-color: var(--btn-blue);
}
.mah-btn-primary:hover {
  background: var(--btn-blue-hover);
  border-color: var(--btn-blue-hover);
  color: #ffffff;
}


/* NOTE: Standalone footer styles (.footer-modern) removed for CI4 integration */



.mah-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
