/* Lucas Lucas Originele Kleuren Toepassing */

/* Button Styles met Lucas Nieuwe Kleuren */
.button {
  background: linear-gradient(90deg, var(--lucas-diep-rood-bruin) 60%, var(--lucas-blauw-cyaan) 100%);
  color: var(--lucas-wit);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(90deg, var(--primary-hover) 60%, var(--secondary-hover) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(90deg, var(--lucas-blauw-cyaan), var(--lucas-donkergrijs-blauw));
  color: var(--lucas-wit);
}

.btn-secondary:hover {
  background: linear-gradient(90deg, var(--secondary-hover), var(--lucas-donkergrijs-blauw));
}

/* Modern Link Cards Components */

/* Search Component */
.search-container {
  position: relative;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

#search-input:focus {
  outline: none;
  border-color: var(--lucas-blauw-cyaan);
  box-shadow: 0 0 0 3px rgba(52, 136, 154, 0.15);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* Search Results */
.search-results-container {
  margin-top: 1rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.search-results-container h3 {
  margin: 0 0 1rem 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.search-result-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--lucas-blauw-cyaan);
  transition: var(--transition);
}

.search-result-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.search-result-item a {
  text-decoration: none;
  color: inherit;
}

.search-result-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--secondary-color);
}

.search-result-item p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: #999;
}

/* Highlight search terms */
mark {
  background: var(--primary-color);
  color: white;
  padding: 0.1em 0.2em;
  border-radius: 3px;
}

/* CAPTCHA Styles */
.captcha-group {
  background: #f8f9fa;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.captcha-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--secondary-color);
}

.captcha-question span {
  font-size: 1.1rem;
}

.btn-refresh {
  background: linear-gradient(90deg, var(--lucas-blauw-cyaan), var(--lucas-donkergrijs-blauw));
  color: var(--lucas-wit);
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-refresh:hover {
  background: linear-gradient(90deg, var(--secondary-hover), var(--lucas-donkergrijs-blauw));
  transform: rotate(180deg);
}

.captcha-group input[type="number"] {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.captcha-group input[type="number"]:focus {
  border-color: var(--lucas-blauw-cyaan);
  box-shadow: 0 0 0 3px rgba(52, 136, 154, 0.15);
}

.captcha-help {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
  display: block;
}

.captcha-group.error {
  border-color: #e74c3c;
  background: #fdf2f2;
}

.captcha-group.error .captcha-question {
  border-color: #e74c3c;
}

/* Contact Form Styles */
.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.contact-form-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form-container h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lucas-blauw-cyaan);
  box-shadow: 0 0 0 3px rgba(52, 136, 154, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.form-message {
  margin-top: 1rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info,
  .contact-form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-info,
  .contact-form-container {
    padding: 1rem;
  }
  
  .contact-info h2,
  .contact-form-container h2 {
    font-size: 1.3rem;
  }
}

/* Link Grid Modern */
.link-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem;
}

/* Thumbnail Grid Layout */
.link-grid-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem;
  width: 100%;
}

/* Force grid layout for AJAX loaded content */
#content-area .link-grid-thumbnails {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
}

.link-thumbnail {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.link-thumbnail:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--lucas-blauw-cyaan);
}

.link-thumbnail a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.link-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.link-thumbnail:hover img {
  transform: scale(1.05);
}

.thumbnail-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--lucas-diep-rood-bruin), var(--lucas-blauw-cyaan));
  color: var(--lucas-wit);
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.link-thumbnail:hover .thumbnail-overlay {
  transform: translateY(0);
}

.thumbnail-overlay h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.link-card-modern {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
}

.link-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.link-card-modern .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.link-card-modern img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.link-card-modern:hover img {
  transform: scale(1.05);
}

.link-card-modern h3 {
  padding: 1rem 1rem 0.5rem 1rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.link-card-modern p {
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Ensure thumbnails always display in grid */
.link-thumbnail {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

/* Responsive adjustments for thumbnails */
@media (max-width: 600px) {
  .link-grid-thumbnails {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }
  .link-thumbnail img {
    height: 120px;
  }
  .thumbnail-overlay {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Hover Effect */
.hover-effect {
  background-color: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .link-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .link-card-modern img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .link-grid-modern {
    gap: 1rem;
  }
  
  .link-card-modern h3 {
    font-size: 1rem;
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
  }
  
  .link-card-modern p {
    font-size: 0.85rem;
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
}

/* Modern Content Section */
.modern-content {
  padding: 2rem;
}

.modern-content h1 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modern-content > p {
  color: #666;
  font-size: 1rem;
}

/* Animation Classes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loaded {
  opacity: 1;
}

/* Accessibility */
.link-card-modern:focus-within {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .link-card-modern {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}
