/*
Theme Name: Jurid.me
Theme URI: https://jurid.me
Description: Tema WordPress personalizado para o agregador de advogados jurid.me com mapa interativo e funcionalidades de diretório
Version: 1.0.0
Author: Jurid.me Team
Author URI: https://jurid.me
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juridme
Domain Path: /languages
*/

/* ============================================
   RESET E ESTILOS GLOBAIS
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0052a3;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.site-header {
  background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header a {
  color: white;
}

.site-header a:hover {
  color: #e0e0e0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #001a4d;
  font-size: 1.2rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-title a {
  color: white;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.main-navigation a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  background-color: #ff6b35;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #e55a28;
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  padding: 0.7rem 1.5rem;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: white;
  color: #001a4d;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-search {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  width: 300px;
  font-size: 1rem;
}

.search-input::placeholder {
  color: #999;
}

/* ============================================
   SEÇÃO DE FILTROS
   ============================================ */

.filter-section {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #001a4d;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

/* ============================================
   SEÇÃO DE MAPA
   ============================================ */

.map-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
}

.lawyer-list {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.lawyer-card {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.lawyer-card:hover {
  background-color: #f8f9fa;
  border-left-color: #ff6b35;
  transform: translateX(5px);
}

.lawyer-card:last-child {
  border-bottom: none;
}

.lawyer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-bottom: 1rem;
}

.lawyer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #001a4d;
  margin-bottom: 0.5rem;
}

.lawyer-specialty {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.lawyer-rating {
  color: #ff9800;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.lawyer-distance {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.lawyer-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lawyer-status.available {
  background-color: #d4edda;
  color: #155724;
}

.lawyer-status.busy {
  background-color: #f8d7da;
  color: #721c24;
}

.lawyer-contact-btn {
  width: 100%;
  padding: 0.7rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.lawyer-contact-btn:hover {
  background-color: #0052a3;
}

.map-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 600px;
  overflow: hidden;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

/* ============================================
   SEÇÃO DE CONTEÚDO (BLOG)
   ============================================ */

.content-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #001a4d;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0066cc;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #001a4d;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.blog-meta {
  font-size: 0.85rem;
  color: #999;
  display: flex;
  gap: 1rem;
}

.read-more {
  color: #0066cc;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #0052a3;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: #001a4d;
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #b3d9ff;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #b3d9ff;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .search-input {
    width: 100%;
  }

  .map-section {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 400px;
  }

  .lawyer-list {
    max-height: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
