/* Custom styles for ArcGIS Field Maps Tutorial */

/* Hero section styling */
.hero-section {
  background: linear-gradient(135deg, #e8f4f8 0%, #d1e7dd 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.hero-section h1 {
  color: #2c5aa0;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Map background styling */
.map-background {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}

.map-background img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header strong {
  font-size: 1.5rem;
  color: #2c5aa0;
  display: block;
  margin-bottom: 1rem;
}

/* Tutorial grid layout */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tutorial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid #2c5aa0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tutorial-card h3 {
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.tutorial-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tutorial-card a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.tutorial-card a:hover {
  border-bottom-color: #2c5aa0;
}

/* Best practices grid */
.best-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.practice-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.practice-card:hover {
  border-color: #2c5aa0;
  background-color: #f0f7ff;
}

.practice-card h3 {
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.practice-card p {
  color: #666;
  line-height: 1.6;
}

/* Navigation styling */
.navbar {
  background-color: #2c5aa0 !important;
  padding: 1rem 0;
}

.navbar-brand {
  color: white !important;
  font-weight: bold;
  font-size: 1.3rem;
}

.navbar-nav .nav-link {
  color: white !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Button styling */
.btn-primary {
  background-color: #2c5aa0;
  border-color: #2c5aa0;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1e3d6f;
  border-color: #1e3d6f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Content styling */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Code blocks */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 1rem;
  overflow-x: auto;
}

code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Lists */
ul, ol {
  line-height: 1.8;
}

li {
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c5aa0;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .tutorial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .best-practices-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tutorial-card, .practice-card {
    padding: 1.5rem;
  }
}

/* Footer */
footer {
  background-color: #2c5aa0;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Accessibility improvements */
a:focus, button:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar, footer {
    display: none;
  }
  
  .hero-section {
    background: none;
    border: 2px solid #2c5aa0;
  }
  
  .tutorial-card, .practice-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

