/**
 * MediaFetch - Master Stylesheet
 * Brand Colors: Electric Blue (#3b82f6) & Vibrant Purple (#8b5cf6)
 */

:root {
  --mf-primary: #3b82f6;
  --mf-primary-hover: #2563eb;
  --mf-secondary: #8b5cf6;
  --mf-secondary-hover: #7c3aed;
  --mf-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --mf-gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --mf-dark-bg: #0b1120;
  --mf-dark-card: #1e293b;
  --mf-card-radius: 1.15rem;
  --mf-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
  --mf-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Gradients & Accents */
.bg-gradient-mf {
  background: var(--mf-gradient) !important;
}

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

.btn-mf-primary {
  background: var(--mf-gradient);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-mf-primary:hover,
.btn-mf-primary:focus {
  background: var(--mf-gradient-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-mf-secondary {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--mf-secondary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease;
}

.btn-mf-secondary:hover {
  background-color: var(--mf-secondary);
  color: #ffffff;
}

/* Navbar */
.navbar-mf {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0;
}

[data-bs-theme="dark"] .navbar-mf {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--mf-primary) !important;
}

/* Hero Section */
.hero-wrapper {
  padding: 5rem 0 3.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero-search-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: var(--mf-shadow-lg);
  padding: 1.5rem;
  background-color: var(--bs-body-bg);
  transition: box-shadow 0.3s ease;
}

.hero-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1rem;
  border: 2px solid rgba(59, 130, 246, 0.25);
  background: var(--bs-tertiary-bg);
  padding: 0.35rem 0.5rem;
  transition: all 0.25s ease;
}

.hero-search-input-group:focus-within {
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.hero-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  color: var(--bs-body-color);
}

/* Cards & Components */
.card-mf {
  border-radius: var(--mf-card-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--mf-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

[data-bs-theme="dark"] .card-mf {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-mf:hover {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow-lg);
}

.icon-box-mf {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--mf-gradient);
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Dropzone / Upload Box */
.dropzone-mf {
  border: 2px dashed rgba(59, 130, 246, 0.35);
  border-radius: 1.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bs-tertiary-bg);
  transition: all 0.25s ease;
}

.dropzone-mf:hover,
.dropzone-mf.dragover {
  border-color: var(--mf-secondary);
  background: rgba(139, 92, 246, 0.05);
}

/* Result Media Container */
.media-result-card {
  border-left: 5px solid var(--mf-primary);
}

.media-thumbnail-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Compliant Advertisements */
.adsense-placement {
  background: var(--bs-tertiary-bg);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 0.85rem;
  padding: 1rem;
  text-align: center;
  margin: 1.75rem 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

[data-bs-theme="dark"] .adsense-placement {
  border-color: rgba(255, 255, 255, 0.12);
}

.adsense-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid var(--mf-secondary);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.badge-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--mf-gradient);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border-radius: 50rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 3rem 0 1.5rem;
}

[data-bs-theme="dark"] footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
