/*
Theme Name: Squatter Rights
Theme URI: https://squatterrightshub.com/
Author: SquatterRightsHub
Author URI: https://squatterrightshub.com/
Description: A modern website focused on explaining Adverse Possession Laws Across the United States.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: squatter-rights
Tags: custom, responsive, adverse possession, legal
*/

:root {
  --primary-color: #A78BFA;
  --secondary-color: #C084FC;
  --dark-text: #111827;
  --light-text: #4B5563;
  --background-light: #FFFFFF;
  --background-gray: #F9FAFB;
  --border-color: #E5E7EB;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--dark-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Header */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation li {
  margin-left: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, #F3E8FF, #F5F3FF);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--light-text);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.search-bar {
  max-width: 36rem;
  margin: 0 auto 2rem;
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem 0 0 0.375rem;
  font-size: 1rem;
}

.search-bar button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

/* State Cards */
.state-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.state-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.3s ease, transform 0.1s ease;
  border-top: 4px solid var(--primary-color);
  position: relative;
  text-decoration: none;
  color: #333;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.state-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.state-card:hover:before {
  opacity: 1;
}

.state-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.state-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 1.4rem;
}

.state-card .statutory-period {
  font-weight: 700;
  color: #555;
  margin-bottom: 0.5rem;
}

.state-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* State-specific card styles */
.state-card[href*="washington"], .state-washington {
  border-top-color: #4CAF50; /* Green */
}
.state-washington .state-indicator {
  background-color: #4CAF50;
}

.state-card[href*="california"], .state-california {
  border-top-color: #2196F3; /* Blue */
}
.state-california .state-indicator {
  background-color: #2196F3;
}

.state-card[href*="new-york"], .state-new-york {
  border-top-color: #FFC107; /* Amber */
}
.state-new-york .state-indicator {
  background-color: #FFC107;
}

.state-card[href*="texas"], .state-texas {
  border-top-color: #F44336; /* Red */
}
.state-texas .state-indicator {
  background-color: #F44336;
}

.state-card[href*="florida"], .state-florida {
  border-top-color: #FF9800; /* Orange */
}
.state-florida .state-indicator {
  background-color: #FF9800;
}

.state-card[href*="colorado"], .state-colorado {
  border-top-color: #9C27B0; /* Purple */
}
.state-colorado .state-indicator {
  background-color: #9C27B0;
}

.state-card[href*="oregon"], .state-oregon {
  border-top-color: #795548; /* Brown */
}
.state-oregon .state-indicator {
  background-color: #795548;
}

.state-card[href*="arizona"], .state-arizona {
  border-top-color: #FF5722; /* Deep Orange */
}
.state-arizona .state-indicator {
  background-color: #FF5722;
}

.state-card[href*="nevada"], .state-nevada {
  border-top-color: #607D8B; /* Blue Grey */
}
.state-nevada .state-indicator {
  background-color: #607D8B;
}

.state-card[href*="utah"], .state-utah {
  border-top-color: #E91E63; /* Pink */
}
.state-utah .state-indicator {
  background-color: #E91E63;
}

/* Resource Cards */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.2s;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--primary-color);
}

.resource-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.resource-card h3 svg {
  margin-right: 0.5rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--background-gray);
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem 0 0 0.375rem;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: #1F2937;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-widget ul li a {
  color: #D1D5DB;
}

.footer-widget ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* Legal Disclaimer */
.legal-disclaimer {
    background-color: #fffde7;
    border-top: 1px solid #ffe57f;
    padding: 15px 0;
    margin-bottom: 20px;
}

.disclaimer-content {
    font-size: 14px;
    line-height: 1.5;
    color: #5d4037;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .search-bar, .newsletter-form {
    flex-direction: column;
  }
  
  .search-bar input, .newsletter-form input {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
  }
  
  .search-bar button, .newsletter-form button {
    border-radius: 0.375rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .site-navigation {
    display: none;
  }
}

/* Logo styles */
.site-logo {
    margin: 10px 0;
}

.site-logo img {
    max-width: 300px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo img {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        max-width: 180px;
    }
}

/* Header layout */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin-left: 20px;
}

.primary-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.primary-menu li a:hover {
    color: #6849c2;
}

/* Mobile navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu li {
        margin: 10px 0;
  }
}

/* Search Autocomplete Styles */
.hero-search {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-form {
  display: flex;
  position: relative;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(167, 139, 250, 0.15);
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: var(--secondary-color);
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid var(--border-color);
  border-top: none;
}

.search-suggestion {
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-suggestion:last-child {
  border-radius: 0 0 8px 8px;
}

.search-suggestion:hover,
.search-suggestion.highlighted {
  background-color: #f5f0ff;
}

.search-suggestion strong {
  font-weight: 600;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .hero-search {
    max-width: 100%;
  }
  
  .search-input {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .search-button {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* Blog Page Styles */
.blog-page-container {
  padding: 2rem 0;
  background-color: var(--background-gray);
  min-height: 100vh;
}

.blog-page-container .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.blog-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-title {
  font-size: 2.5rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.blog-description {
  font-size: 1.1rem;
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.blog-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blog-posts {
  padding: 2rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
  border-bottom: none;
}

.post-thumbnail {
  overflow: hidden;
  border-radius: 0.375rem;
}

.post-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
  transform: scale(1.05);
}

.post-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--dark-text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--primary-color);
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-excerpt {
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.blog-pagination {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.blog-pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.blog-pagination li {
  margin: 0;
}

.blog-pagination a,
.blog-pagination span {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.2s ease;
}

.blog-pagination a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.blog-pagination .current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.recent-posts-list,
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts-list li,
.categories-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts-list li:last-child,
.categories-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts-list a,
.categories-list a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.recent-posts-list a:hover,
.categories-list a:hover {
  color: var(--primary-color);
}

.sidebar-widget .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-widget .newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.sidebar-widget .newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-widget .newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.sidebar-widget p {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-top: 0.75rem;
}

.no-posts {
  text-align: center;
  padding: 3rem 2rem;
}

.no-posts h2 {
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.no-posts p {
  color: var(--light-text);
}

/* Responsive Blog Layout */
@media (max-width: 1024px) {
  .blog-page-container .container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .blog-post {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .post-thumbnail img {
    height: 200px;
  }
  
  .blog-title {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 1.25rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
} 