/* Custom Styling Overlays on top of Bulma CSS */

:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --fufuk-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --bg-subtle: #f8fafc;
  --card-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Customizations */
.navbar {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e2e8f0;
}

.brand-title {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-badge {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

/* Hero Section */
.hero.is-subtle {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
}

.hero-title-main {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input-lg {
  border-radius: 9999px !important;
  padding-left: 3rem !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.search-input-lg:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.search-icon-left {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 10;
}

/* Tabs Styling */
.custom-tabs .tabs ul {
  border-bottom: 2px solid #e2e8f0;
}

.custom-tabs .tabs li.is-active a {
  border-bottom-color: #6366f1;
  color: #4f46e5;
  font-weight: 600;
}

/* Platform Cards */
.platform-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.card-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.bg-icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.bg-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.bg-icon-emerald {
  background: #d1fae5;
  color: #059669;
}

.bg-icon-sky {
  background: #e0f2fe;
  color: #0284c7;
}

.bg-icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

.bg-icon-slate {
  background: #f1f5f9;
  color: #475569;
}

.card-title-text {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  line-height: 1.3;
}

.card-subtitle-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-description {
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.feature-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.feature-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 500;
}

/* Fufuk Dedicated Section */
.fufuk-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.fufuk-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.fufuk-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fufuk-title {
  color: #ffffff;
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.fufuk-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.fufuk-card {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.fufuk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.95);
}

.fufuk-card .card-title-text {
  color: #ffffff;
}

.fufuk-card .card-description {
  color: #cbd5e1;
}

.btn-fufuk {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.btn-fufuk:hover {
  opacity: 0.92;
  color: #ffffff;
}

/* Modal styling */
.modal-card {
  border-radius: 20px;
  overflow: hidden;
  max-width: 640px;
}

.modal-card-head {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.modal-card-foot {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Footer Styling */
.footer-custom {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 1.5rem;
  margin-top: auto;
}

.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  color: #64748b;
}
