@tailwind base;
@tailwind components;
@tailwind utilities;

/* Global project styling */
.hero-title {
  color: #002d72 !important; /* Donkerblauw - blijft zoals het was */
  font-family: "Gilroy", "Poppins", system-ui, sans-serif !important;
  font-weight: 800 !important; /* ExtraBold */
}

/* H1 styling for all headings */
h1,
.hero-title,
.text-4xl,
.text-3xl,
.section-title {
  font-family: "Poppins", "Gilroy", system-ui, sans-serif !important;
  font-weight: 800 !important; /* ExtraBold */
}

/* Body text styling */
body,
p,
div,
span,
li,
.text-base,
.text-sm,
.text-lg {
  font-family: "Poppins", "Gilroy", system-ui, sans-serif !important;
  font-weight: 400 !important; /* Regular */
}

/* Medium weight for specific elements */
.font-medium,
strong,
b,
.btn,
.font-semibold,
h2,
h3 {
  font-family: "Poppins", "Gilroy", system-ui, sans-serif !important;
  font-weight: 500 !important; /* Medium */
}

/* Bullet points and lists */
ul,
ol,
li {
  font-family: "Poppins", "Gilroy", system-ui, sans-serif !important;
  font-weight: 400 !important; /* Regular */
}

.section.bg-gray-50 {
  background-color: #dcfce7 !important; /* Lichtgroen */
}

/* Alleen de algemene pagina achtergrond lichtgroen maken */
body,
.min-h-screen {
  background-color: #dcfce7 !important; /* Lichtgroene pagina achtergrond */
}

/* Witte elementen zoals cards, forms, etc. blijven wit voor contrast */

/* Hero punt/pijl effect - Pentagon vorm zoals gevraagd */
.hero {
  background: linear-gradient(135deg, #16a34a 0%, #fbbf24 100%);
  position: relative;
  clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
  padding: 4rem 2rem;
}

/* Alternatief: Driehoek punt effect */
.hero-arrow {
  background: linear-gradient(135deg, #16a34a 0%, #fbbf24 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 100%, 0 70%);
}

/* Scherpe punt rechts */
.hero-point-right {
  background: linear-gradient(135deg, #16a34a 0%, #fbbf24 100%);
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

/* Punt links */
.hero-point-left {
  background: linear-gradient(135deg, #16a34a 0%, #fbbf24 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%, 0 50%);
}

@layer components {
  /* Notification Components */
  .notification {
    @apply fixed top-5 left-1/2 transform -translate-x-1/2 text-white px-6 py-4 rounded-lg z-50 font-bold shadow-2xl max-w-md;
  }

  /* Button Components */
  .btn {
    @apply inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200;
  }

  .btn-primary {
    @apply bg-primary-600 hover:bg-primary-700 text-white focus:ring-primary-500 shadow-sm hover:shadow-md;
  }

  .btn-secondary {
    @apply bg-secondary-500 hover:bg-secondary-600 text-white focus:ring-secondary-500 shadow-sm hover:shadow-md;
  }

  .btn-outline {
    @apply border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-white focus:ring-primary-500 bg-white;
  }

  .btn-lg {
    @apply px-6 py-3 text-base;
  }

  /* Card Components */
  .card {
    @apply bg-white rounded-xl shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow duration-200;
  }

  .card-hover {
    @apply hover:shadow-lg hover:-translate-y-1 transition-all duration-300;
  }

  /* Section Components */
  .section {
    @apply py-16;
  }

  .section-header {
    @apply text-center mb-12;
  }

  .section-title {
    @apply text-3xl md:text-4xl font-bold text-gray-900 mb-4;
  }

  .section-subtitle {
    @apply text-lg text-gray-600 max-w-3xl mx-auto;
  }

  /* Hero Components */
  .hero {
    @apply bg-gradient-to-r from-primary-600 to-accent-400 text-white py-16 md:py-24;
  }

  .hero-content {
    @apply max-w-4xl mx-auto text-center px-4 sm:px-6 lg:px-8;
  }

  .hero-title {
    @apply text-4xl md:text-5xl lg:text-6xl font-bold mb-6;
  }

  .hero-subtitle {
    @apply text-xl md:text-2xl mb-8 text-primary-100;
  }

  /* Layout Components */
  .container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
  }

  /* Feature Grid */
  .features-grid {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6;
  }

  .feature {
    @apply text-center p-6 bg-white rounded-xl shadow-sm border border-gray-200 hover:shadow-md transition-shadow duration-200;
  }

  /* CTA Section */
  .cta {
    @apply bg-gray-50 py-16;
  }

  /* Street Autocomplete Dropdown */
  #street-dropdown {
    z-index: 1000;
  }

  .street-suggestion {
    transition: background-color 0.15s ease-in-out;
  }

  .street-suggestion:hover,
  .street-suggestion.bg-blue-100 {
    background-color: #dbeafe !important;
  }

  .street-suggestion:last-child {
    border-bottom: none !important;
  }
}




* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
}

body {
  background-color: #EDEDED;
  margin: 0;
}

.login, .register {
  width: 400px;
  background-color: #EDEDED;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}

.login h1, .register h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}

.login .links, .register .links {
  display: flex;
  padding: 0 15px;
}

.login .links a, .register .links a {
  color: #adb2ba;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: bold;
}

.login .links a:hover, .register .links a:hover {
  color: #9da3ac;
}

.login .links a.active, .register .links a.active {
  border-bottom: 3px solid #08284A;
  color: #08284A;
}

.login form, .register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
}

.login form label, .register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #08284A;
  color: #EDEDED;
}

.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
}

.login form input[type="submit"], .register form input[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #08284A;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #EDEDED;
  transition: background-color 0.2s;
  border-radius: 0;
  appearance: none;
}

.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
  background-color: #08284A;
  transition: background-color 0.2s;
}

.login form #rememberme, .register form #rememberme {
  width: 100%;
  height: auto;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
}

.login form #rememberme input, .register form #rememberme input {
  transform: scale(1.3);
  margin-right: 7px;
}

.login form .msg, .register form .msg {
  padding: 0 20px;
  width: 100%;
}

.login form .captcha, .register form .captcha {
  display: flex;
}

.login form > a, .register form > a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px 20px;
}

.login form > a:hover, .register form > a:hover {
  color: #394049;
}

.navtop {
  background-color: #2f3947;
  height: 60px;
  width: 100%;
  border: 0;
}

.navtop div {
  display: flex;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}

.navtop div h1 {
  flex: 1;
  font-size: 22px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}

.navtop div a {
  padding: 0 15px;
  text-decoration: none;
  color: #c1c4c8;
  font-weight: 600;
  font-size: 16px;
}

.navtop div a i {
  font-size: 14px;
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  color: #EDEDED;
}

body.loggedin {
  background-color: #EDEDED;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 20px;
  border-bottom: 1px solid #e0e0e3;
  color: #4a536e;
}

.content .block {
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  margin: 25px 0;
  padding: 25px;
  background-color: #EDEDED;
}

.content .block p {
  padding: 5px;
  margin: 0 0 10px 0;
}

.content.profile form label {
  display: block;
  padding: 15px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #4d4d4d;
}

.content.profile form input[type="text"], .content.profile form input[type="password"], .content.profile form input[type="email"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.content.profile .profile-detail {
  padding: 5px;
}

.content.profile .profile-detail strong {
  display: inline-block;
  color: #777;
  min-width: 120px;
  font-size: 16px;
}

.content.profile .profile-detail i {
  width: 28px;
  color: #aaabad;
}

.content.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #08284A;
  margin: 20px 5px 0 0;
  padding: 10px 15px;
  border-radius: 4px;
  appearance: none;
  font-size: 14px;
}

.content.profile .profile-btn:hover {
  background-color: #08284A;
}

@media screen and (max-width: 400px) {
  .login, .register {
    width: 95%;
  }
}

@media screen and (max-width: 1000px) {
  .navtop {
    height: auto;
    padding: 10px;
  }
  .navtop div {
    flex-flow: wrap;
    width: 100%;
  }
  .navtop div h1 {
    display: block;
    flex-basis: 100%;
  }
  .navtop div a {
    padding: 10px 0;
    flex-basis: 50%;
  }
  .content {
    padding: 10px;
    width: 100%;
  }
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"] {
    width: 100%;
    max-width: 100%;
  }
  .profile-detail strong {
    width: 100%;
  }
}
