/* LocProf - Local Professional Directory - Main Stylesheet */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

/* Header */
header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header h2 a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem 0;
}

nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: white;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Title */
h1 {
  font-size: 2.2rem;
  color: #1e3a5f;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Slogan and Tagline */
.slogan {
  font-size: 1.25rem;
  color: #2d5a87;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.tagline {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Blog post styles */
.blog-post header {
  background: #1e3a5f;
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.blog-post h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-post .tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Search Box */
.search-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-box input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: #2d5a87;
}

.search-box button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  background: #2d5a87;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #1e3a5f;
}

/* Search Results */
.search-results {
  margin-bottom: 2rem;
}

.search-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.search-no-results {
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 1.1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-summary {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Industry List */
h2 {
  font-size: 1.5rem;
  color: #1e3a5f;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

ul li a {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: white;
  color: #2d5a87;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.95rem;
  border: 1px solid #e1e8ed;
  transition: all 0.2s;
}

ul li a:hover {
  background: #2d5a87;
  color: white;
  border-color: #2d5a87;
}

/* People Grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Person Card */
.person-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e1e8ed;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.person-card h3 {
  margin-bottom: 0.5rem;
}

.person-card h3 a {
  color: #1e3a5f;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
}

.person-card h3 a:hover {
  color: #2d5a87;
}

.person-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.person-card p:first-of-type {
  color: #2d5a87;
  font-weight: 500;
}

/* Person Profile Page */
.person-profile {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.person-profile h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e8ed;
}

.person-profile p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.person-profile strong {
  color: #1e3a5f;
  font-weight: 600;
}

.person-profile a {
  color: #2d5a87;
  text-decoration: none;
}

.person-profile a:hover {
  text-decoration: underline;
}

.person-profile hr {
  border: none;
  border-top: 1px solid #e1e8ed;
  margin: 2rem 0;
}

.person-profile h2 {
  font-size: 1.75rem;
  color: #1e3a5f;
  margin: 2rem 0 1rem;
}

.person-profile h3 {
  font-size: 1.25rem;
  color: #2d5a87;
  margin: 1.5rem 0 0.75rem;
}

.person-profile ul {
  display: block;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.person-profile ul li {
  margin-bottom: 0.5rem;
  color: #555;
}

.person-profile li {
  list-style-type: disc;
}

/* Footer */
footer {
  background: #1e3a5f;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer .contact-email {
  font-size: 1.0rem;
  color: #ffffff;
}

footer .contact-email a {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box input,
  .search-box button {
    width: 100%;
  }
  
  .people-grid {
    grid-template-columns: 1fr;
  }
  
  .person-profile {
    padding: 1.5rem;
  }
  
  .person-profile h1 {
    font-size: 1.75rem;
  }
}

/* Empty State */
.people-grid:empty::before {
  content: "No profiles found.";
  display: block;
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}
