/*$theme-colors: (
        "primary":    #3a6ea5,
        "danger":     #ff6700,
        "dark":       #004e98,
        "secondary":  #6c757d,
        "success":    #198754,
        "info":       #0dcaf0,
        "warning":    #ffc107,
        "light":      #f8f9fa,
);

$theme-colors: (
    "primary":    #00a99d,
    "danger":     #ff6700,
    "dark":       #00a99d,
    "secondary":  #6c757d,
    "success":    #198754,
    "info":       #0dcaf0,
    "warning":    #ffc107,
    "light":      #f8f9fa,
);*/


$primary: #00A99D;
$secondary: #00C4B8;
$success: #4ECDC4;
$info: #17a2b8;
$warning: #F2BB05;
$danger: #E54B4B;
$light: #f8f9fa;
$dark: #2c3e50;
//$dark: #3B413C;

$text-muted: #7f8c8d;
$border-radius-lg: 20px;
$border-radius-xl: 25px;
$box-shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.1);
$box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
$box-shadow-lg: 0 8px 20px rgba($primary, 0.3);


// Mixins
@mixin gradient-primary {
  background: linear-gradient(135deg, $primary 0%, $secondary 100%);
}

@mixin gradient-secondary {
  background: linear-gradient(135deg, $secondary, $success);
}

@mixin gradient-accent {
  background: linear-gradient(135deg, $success, $primary);
}

@mixin transition-smooth {
  transition: all 0.3s ease;
}

@mixin hover-lift {
  &:hover {
    transform: translateY(-5px);
  }
}

@mixin hover-lift-strong {
  &:hover {
    transform: translateY(-10px);
    box-shadow: $box-shadow;
  }
}

// Hero section
.hero-section {
  @include gradient-primary;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;

  // Subtle diagonal light overlay
  &::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.07) 0%, transparent 50%);
    pointer-events: none;
  }

  .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.15;
  }
}

.hero-section-home {
  padding: 60px 0 55px;

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .logo-container {
    margin: 0 auto 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    @include transition-smooth;
    @include hover-lift;

    img {
      filter: drop-shadow(0 6px 20px rgba(0,0,0,0.2));
    }
  }

  // Decorative divider between title and mottos
  .hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px auto 22px;
    max-width: 320px;

    &::before,
    &::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.45);
    }

    .hero-divider-icon {
      font-size: 1.1rem;
      opacity: 0.75;
    }
  }

  .hero-motto1 {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.97;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    line-height: 1.5;
  }

  .hero-motto2 {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.82;
    margin-bottom: 0;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }
}

.hero-section-subpage {
  padding: 16px 0 14px;
  background: $primary;
  text-align: left;

  &::before {
    display: none;
  }

  .subpage-header {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .subpage-logo img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
  }

  .hero-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0;
    text-shadow: none;
    margin-bottom: 2px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 0;
  }
}


// Focus section
.focus-section-home {
  background: $light;
  padding-top: 60px;
  padding-bottom: 20px;
}

.focus-section {
  .focus-card {
    background: white;
    border-radius: $border-radius-lg;
    padding: 40px 32px;
    text-align: center;
    box-shadow: $box-shadow-sm;
    height: 100%;
    border: none;
    position: relative;
    overflow: hidden;
    @include transition-smooth;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      @include gradient-primary;
    }

    &:hover {
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
      transform: translateY(-3px);
    }
  }

  .focus-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    @include gradient-primary;
    box-shadow: $box-shadow-lg;
  }

  .focus-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: $dark;
    letter-spacing: -0.01em;
  }

  .focus-description {
    color: $text-muted;
    margin-bottom: 0;
    line-height: 1.75;
  }
}

.btn-focus {
  @include gradient-primary;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: $border-radius-xl;
  font-weight: 500;
  @include transition-smooth;
  text-decoration: none;
  display: inline-block;

  &:hover {
    transform: translateY(-2px);
    box-shadow: $box-shadow-lg;
    color: white;
  }
}

.focus-section-divider {
  height: 40px;
  background: linear-gradient(180deg, $light 0%, white 100%);
}

// Feature section
.feature-section {
  padding: 40px 0 30px;
  background: white;

  & + .feature-section {
    padding-top: 0;
  }

  h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: $dark;
    letter-spacing: -0.02em;
  }

  .focus-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    @include gradient-primary;
    box-shadow: $box-shadow-lg;
    flex-shrink: 0;
  }

  .feature-card {
    background: white;
    border-radius: $border-radius-lg;
    padding: 36px 28px;
    text-align: center;
    box-shadow: $box-shadow-sm;
    height: 100%;
    border: none;
    position: relative;
    overflow: hidden;
    @include transition-smooth;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      @include gradient-primary;
    }

    &:hover {
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
      transform: translateY(-3px);
    }

    ul {
      padding-left: 1.1rem;

      li {
        margin-bottom: 6px;
      }
    }
  }

  .feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: $dark;
    text-align: center;
    letter-spacing: -0.01em;
  }

  p.feature-subtitle {
    text-align: center;
    color: $text-muted;
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .feature-description {
    text-align: left;
    color: $text-muted;
    margin-bottom: 10px;
    line-height: 1.75;
  }
}

// Subscribe section
.subscribe-section {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, white 0%, rgba($primary, 0.05) 60%, rgba($primary, 0.09) 100%);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -140px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba($primary, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba($secondary, 0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .subscribe-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
  }

  h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: $dark;
    letter-spacing: -0.02em;
  }

  .subscribe-subtitle {
    text-align: center;
    color: $text-muted;
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .subscribe-card {
    background: white;
    border-radius: $border-radius-lg;
    padding: 44px 40px 36px;
    box-shadow: 0 16px 50px rgba($primary, 0.16);
    border: 1px solid rgba($primary, 0.1);
  }

  .subscribe-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    @include gradient-primary;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: $box-shadow-lg;
  }

  .subscribe-text {
    text-align: center;
    color: $text-muted;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .subscribe-privacy {
    text-align: center;
    color: $text-muted;
    font-size: 0.88rem;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .subscribe-section {
    padding: 50px 0 60px;

    h2 { font-size: 1.6rem; }
    .subscribe-subtitle { font-size: 0.95rem; }
    .subscribe-card { padding: 28px 22px 22px; }
  }
}

// App section
.app-section {
  padding: 40px 0;
  background: white;

  h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: $dark;
  }

  p {
    text-align: center;
    color: $text-muted;
    font-size: 1.1rem;
    margin-bottom: 50px;
  }

  .app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .app-btn {
    background: $dark;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    @include transition-smooth;
    min-width: 180px;
    justify-content: center;

    &:hover {
      background: $primary;
      transform: translateY(-3px);
      box-shadow: $box-shadow-lg;
      color: white;
    }

    i {
      font-size: 24px;
    }
  }
}


// Responsive breakpoints
@media (max-width: 768px) {
  .hero-section {
    .hero-title {
      font-size: 2.1rem;
      letter-spacing: -0.01em;
    }
  }

  .hero-section-home {
    padding: 36px 0 30px;

    .logo-container {
      margin-bottom: 20px;

      img {
        height: 150px;
      }
    }

    .hero-divider {
      margin: 14px auto 16px;
    }

    .hero-motto1 {
      font-size: 1.05rem;
    }

    .hero-motto2 {
      font-size: 0.95rem;
    }
  }

  .focus-section-divider {
    height: 20px;
  }

  .hero-section-subpage {
    padding: 14px 0 12px;

    .subpage-header {
      gap: 14px;
    }

    .subpage-logo img {
      height: 38px;
    }

    .hero-title {
      font-size: 1.4rem;
    }

    .hero-subtitle {
      font-size: 0.9rem;
    }
  }

  .focus-section {
    padding: 36px 0 16px;

    .focus-card {
      padding: 24px 18px;
      margin-bottom: 0;

      &:hover {
        transform: none;
      }
    }
  }

  .feature-section {
    padding: 30px 0 20px;

    h2 {
      font-size: 1.6rem;
    }

    p.feature-subtitle {
      font-size: 0.95rem;
    }

    .feature-title {
      font-size: 1.15rem;
    }

    .feature-card {
      padding: 24px 18px;

      &:hover {
        transform: none;
      }
    }
  }

  .app-section {
    h2 {
      font-size: 1.75rem;
    }

    .app-buttons {
      flex-direction: column;
      align-items: center;
    }
  }
}


// Navbar styles
.navbar {
  background-color: $dark;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
  font-size: 1.5rem;

  &:hover {
    color: $success !important;
  }
}

.nav-link {
  color: white !important;
  font-weight: 500;
  @include transition-smooth;

  &:hover {
    color: $success !important;
  }
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);

  &-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

.page-body {
  padding: 20px 0;
}

/*$link-color: #00a99d;
$link-hover-color: #14591D;
$btn-color: #ffffff;

$navbar-dark-color: #fff;
$navbar-dark-active-color: #fff;
$navbar-dark-brand-color: #ffe8cc;
$navbar-dark-brand-hover-color: darken($navbar-dark-brand-color,15%);*/

$theme-colors: (
        "primary": $primary,
        "secondary": $secondary,
        "success": $success,
        "info": $info,
        "warning": $warning,
        "danger": $danger,
        "light": $light,
        "dark": $primary,
);

// the ~ allows you to reference things in node_modules
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap-icons/font/bootstrap-icons";

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: $dark;
  line-height: 1.6;
}

.footer {
  background: $dark;
  color: white;
  text-align: center;
  padding: 5px 0;
}

#main {
  padding-top: 8px;
}

#logo {
  max-height: 42px;
}

form.delete_form {
  display: contents;
}

footer.footer a {
  color: $light;

  &:hover {
    color: $success;
  }
}

@media (max-width: 768px) {
  footer.footer .nav-link {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

// Cookie consent banner
.cookie-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1080;
  background: white;
  border-radius: $border-radius-lg;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba($primary, 0.15);
  max-width: 680px;
  margin: 0 auto;

  .cookie-consent-inner {
    padding: 20px 24px;
  }

  .cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: $dark;
  }

  .cookie-consent-text {
    font-size: 0.92rem;
    color: $text-muted;
    margin-bottom: 14px;
    line-height: 1.55;

    a {
      color: $primary;
      text-decoration: underline;
    }
  }

  .cookie-consent-details {
    background: $light;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.9rem;

    .form-check {
      margin-bottom: 8px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .form-check-label {
      color: $dark;
    }
  }

  .cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .cookie-consent {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: $border-radius-lg $border-radius-lg 0 0;

    .cookie-consent-inner {
      padding: 16px 18px;
    }

    .cookie-consent-actions {
      .btn:not(.btn-link) {
        flex: 1 1 140px;
      }

      [data-consent="toggle-details"] {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
      }
    }
  }
}