/* Custom styles for longread to complement layout-template.css */

/* Additional CSS variables matching GIP color scheme */
:root {
  --color-2025: #ff4000;
  --color-2026: #3f334d; 
  --color-2027: #c1809d;
}

/* Header logo styling */
.header__logo-img {
  height: 60px;
  width: auto;
}

/* Full page sections */
.hero,
.content-section,
.map-section,
.dashboard-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Smooth scrolling for better UX - removed scroll-snap */
html {
  scroll-behavior: smooth;
}

/* Hero sections get extra height for visual impact */
.hero {
  min-height: 100vh;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Content sections padding adjustment for full page */
.content-section {
  padding: var(--spacing-xl) 0;
}

/* Map section full height */
.map-section {
  height: 100vh;
  min-height: 100vh;
}

/* Statistics highlight styling */
.stats-highlight {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  margin: var(--spacing-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Category budget styling */
.category-budget {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.category-years {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.category-years div {
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  display: inline-block;
  margin-top: var(--spacing-md);
  color: var(--accent-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.scroll-indicator:hover {
  transform: translateY(5px);
  color: var(--primary-color);
}

/* Hero section variants */
.hero-asset-management {
  background: linear-gradient(135deg, #029453, #184382);
}

.hero-asset-management .hero__title,
.hero-asset-management .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-grote-werken {
  background: 
    linear-gradient(135deg, rgba(24, 67, 130, 0.7), rgba(2, 148, 83, 0.7)),
    url('../assets/peter-heymans-ooh4m2HdEls-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-grote-werken .hero__title,
.hero-grote-werken .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-duurzaam-vervoer {
  background: 
    linear-gradient(135deg, rgba(16, 207, 201, 0.7), rgba(2, 148, 83, 0.7)),
    url('../assets/multimodaal.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-duurzaam-vervoer .hero__title,
.hero-duurzaam-vervoer .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-waterbeheersing {
  background: 
    linear-gradient(135deg, rgba(24, 67, 130, 0.7), rgba(16, 207, 201, 0.7)),
    url('../assets/demet-kayabasi-GtshVNCTyTs-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-waterbeheersing .hero__title,
.hero-waterbeheersing .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-zeehavens {
  background: 
    linear-gradient(135deg, rgba(2, 148, 83, 0.7), rgba(24, 67, 130, 0.7)),
    url('../assets/jannes-van-den-wouwer-Gv9ZvAojDN4-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-zeehavens .hero__title,
.hero-zeehavens .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-diversen {
  background: 
    linear-gradient(135deg, rgba(16, 207, 201, 0.7), rgba(24, 67, 130, 0.7)),
    url('../assets/alvaro-reyes-qWwpHwip31M-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-diversen .hero__title,
.hero-diversen .hero__tagline {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Color coding for years - updated to match new color scheme */
.color-2025 {
  color: #029453; /* Primary green */
}

.color-2026 {
  color: #184382; /* Secondary blue */
}

.color-2027 {
  color: #10cfc9; /* Accent cyan */
}

/* Warning card styling */
.warning-card {
  background: #fff3e0;
  border-left: 5px solid #ff9800;
}

.warning-text {
  margin: 0;
  color: #e65100;
}

/* Map section styling */
.map-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.map-container {
  width: 100%;
  height: 100%;
  border-radius: 0; /* Remove border radius for full screen */
  overflow: hidden;
  box-shadow: none; /* Remove shadow for full screen */
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Darker overlay for better readability */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  padding: var(--spacing-md);
  transition: opacity 0.3s ease;
}

.map-overlay:hover {
  opacity: 0.9;
}

.map-overlay h2 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.map-overlay p {
  font-size: 1.5rem;
  max-width: 800px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Dashboard section styling */
.dashboard-section {
  padding: var(--spacing-xl) 0;
  min-height: unset; /* Remove fixed height to allow natural content flow */
}

.dashboard-filters {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-color);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.filter-group input,
.filter-group select {
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  background: var(--bg-light);
}

.filter-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Results info */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-gray);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.filtered-budget {
  font-weight: 600;
  color: var(--primary-color);
}

/* Table styling */
.table-container {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-md);
}

#projects-table {
  width: 100%;
  border-collapse: collapse;
}

#projects-table th,
#projects-table td {
  padding: var(--spacing-xs);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

#projects-table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--text-dark);
  position: sticky;
  top: 0;
  z-index: 1;
}

#projects-table tbody tr:hover {
  background: rgba(2, 148, 83, 0.05);
}

.sortable {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sortable:hover {
  background: var(--primary-color);
  color: white;
}

.numeric {
  text-align: right;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

#page-info {
  font-weight: 600;
  color: var(--text-dark);
}

#items-per-page {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Disable full height on mobile for better usability */
  .hero,
  .content-section,
  .map-section,
  .dashboard-section {
    min-height: unset;
  }
  
  .hero {
    min-height: 70vh; /* Still impactful but not overwhelming on mobile */
  }
  
  .map-section {
    height: 100vh; /* Keep full height on mobile for immersive experience */
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .stats-highlight {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .results-info {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
  
  .pagination {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  #projects-table {
    min-width: 800px;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .map-overlay h2 {
    font-size: 2rem;
  }
  
  .map-overlay p {
    font-size: 1.1rem;
    max-width: 90%;
  }
}