/* AskNova Developer Hub - Enhanced Styles for AdSense Compliance */

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

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #667eea;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #e0e0e0;
}

/* Navigation */
.navbar-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem 2rem;
  margin: 1rem auto;
  max-width: 1200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar-menu {
  background: rgba(30, 30, 30, 0.95);
  color: #e0e0e0;
}

.navbar-menu ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.navbar-menu .title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark-mode .navbar-menu .title {
  color: #8fa2ff;
}

.navbar-menu a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dark-mode .navbar-menu a {
  color: #e0e0e0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.input_model {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  outline: none;
  min-width: 200px;
  transition: all 0.3s ease;
}

.input_model:focus {
  border-color: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.dark-mode .input_model {
  background: rgba(255, 255, 255, 0.1);
  border-color: #555;
  color: #e0e0e0;
}

.dark-mode-toggle {
  background: none;
  border: 2px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #667eea;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  background: #667eea;
  color: white;
  transform: rotate(180deg);
}

.dark-mode .dark-mode-toggle {
  border-color: #8fa2ff;
  color: #8fa2ff;
}

.dark-mode .dark-mode-toggle:hover {
  background: #8fa2ff;
  color: #333;
}

/* General Button Styles */
button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin: 0.25rem;
  font-family: inherit;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.dark-mode button {
  background: linear-gradient(135deg, #8fa2ff, #9c88ff);
  box-shadow: 0 4px 15px rgba(143, 162, 255, 0.3);
}

.dark-mode button:hover {
  background: linear-gradient(135deg, #9c88ff, #8fa2ff);
  box-shadow: 0 8px 25px rgba(143, 162, 255, 0.4);
}

/* Button Styles */
.button_id,
.search_button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin: 0.5rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button_id:hover,
.search_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

.button_id:active,
.search_button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.centered_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Main Content Areas */
.view {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search_id_engine {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search_id_engine h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 1rem;
}

.search_id_engine h2 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 300;
}

.search_id_engine p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Search Form */
#search-form {
  margin: 2rem 0;
}

#search_terms {
  width: 100%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#search_terms:focus {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Search form specific styles */
.search-form .search_button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-form .search_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Featured Content */
.featured-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .featured-content {
  background: rgba(30, 30, 30, 0.95);
}

.featured-content h3 {
  color: #667eea;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.dark-mode .featured-card {
  background: rgba(40, 40, 40, 0.8);
  border-color: #555;
}

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

.featured-card h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.dark-mode .featured-card h4 {
  color: #e0e0e0;
}

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

.dark-mode .featured-card p {
  color: #bbb;
}

.featured-card button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  width: 100%;
}

.featured-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Quick Tools */
.quick-tools {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .quick-tools {
  background: rgba(30, 30, 30, 0.95);
}

.quick-tools h3 {
  color: #667eea;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin: 0.5rem;
  text-decoration: none;
  display: inline-block;
}

.tool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Content Pages */
.content-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .content-header {
  background: rgba(30, 30, 30, 0.95);
}

.content-header h2 {
  color: #667eea;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.content-header p {
  color: #666;
  font-size: 1.1rem;
}

.dark-mode .content-header p {
  color: #bbb;
}

/* Tutorial Categories */
.tutorial-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.category-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #667eea;
  color: #667eea;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dark-mode .category-btn {
  background: rgba(40, 40, 40, 0.9);
  color: #8fa2ff;
  border-color: #8fa2ff;
}

.category-btn:hover,
.category-btn.active {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Tutorial Cards */
.tutorials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tutorial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.dark-mode .tutorial-card {
  background: rgba(30, 30, 30, 0.95);
  border-color: #555;
}

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

.tutorial-header h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.dark-mode .tutorial-header h3 {
  color: #e0e0e0;
}

.tutorial-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tutorial-meta span {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #666;
}

.dark-mode .tutorial-meta span {
  background: #444;
  color: #bbb;
}

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

.dark-mode .tutorial-content p {
  color: #bbb;
}

.tutorial-author {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin: 1rem 0;
}

.dark-mode .tutorial-author {
  color: #aaa;
}

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

.primary-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
}

.primary-btn:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.favorite-btn {
  background: none;
  border: 2px solid #667eea;
  color: #667eea;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  background: #667eea;
  color: white;
}

/* Tools Container */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.dark-mode .tool-card {
  background: rgba(30, 30, 30, 0.95);
  border-color: #555;
}

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

.tool-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dark-mode .tool-card h3 {
  color: #e0e0e0;
}

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

.dark-mode .tool-card p {
  color: #bbb;
}

.tool-card button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tool-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Blog Posts */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.blog-post {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.dark-mode .blog-post {
  background: rgba(30, 30, 30, 0.95);
  border-color: #555;
}

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

.blog-post h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.dark-mode .blog-post h3 {
  color: #e0e0e0;
}

.post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.dark-mode .post-meta {
  color: #aaa;
}

.blog-post p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.dark-mode .blog-post p {
  color: #bbb;
}

.blog-post button {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-post button:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

/* About and Contact Sections */
.about-content,
.contact-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.dark-mode .about-content,
.dark-mode .contact-content {
  background: rgba(30, 30, 30, 0.95);
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-section p,
.about-section ul {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.dark-mode .about-section p,
.dark-mode .about-section ul {
  color: #bbb;
}

.about-section ul {
  padding-left: 2rem;
}

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

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.dark-mode .contact-item {
  background: rgba(40, 40, 40, 0.5);
}

.contact-item h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.dark-mode .contact-item h4 {
  color: #e0e0e0;
}

.contact-item p {
  color: #666;
  margin: 0.25rem 0;
}

.dark-mode .contact-item p {
  color: #bbb;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.dark-mode .form-group label {
  color: #e0e0e0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: #555;
  color: #e0e0e0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.search-results-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .search-results-header {
  background: rgba(30, 30, 30, 0.95);
}

.search-results-header h3 {
  color: #667eea;
  font-size: 1.3rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.search-result-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.dark-mode .search-result-card {
  background: rgba(30, 30, 30, 0.95);
  border-color: #555;
}

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

.result-header h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.dark-mode .result-header h4 {
  color: #e0e0e0;
}

.result-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.result-meta span {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.result-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dark-mode .result-content p {
  color: #bbb;
}

.read-time,
.author {
  font-size: 0.9rem;
  color: #888;
  margin: 0.5rem 0;
}

.dark-mode .read-time,
.dark-mode .author {
  color: #aaa;
}

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

.no-results {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .no-results {
  background: rgba(30, 30, 30, 0.95);
}

.no-results h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-results p {
  color: #666;
  margin-bottom: 1rem;
}

.dark-mode .no-results p {
  color: #bbb;
}

.no-results ul {
  list-style: none;
  padding: 0;
}

.no-results li {
  color: #667eea;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-results li:hover {
  color: #5a6fd8;
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
  display: block;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #667eea;
  transform: translateX(5px);
}

/* Legal Pages */
.legal-page {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .legal-page {
  background: rgba(30, 30, 30, 0.95);
}

.legal-content h3 {
  color: #667eea;
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.legal-content h4 {
  color: #333;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.dark-mode .legal-content h4 {
  color: #e0e0e0;
}

.legal-content p,
.legal-content ul {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.dark-mode .legal-content p,
.dark-mode .legal-content ul {
  color: #bbb;
}

.legal-content ul {
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content button {
  background: #667eea;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.legal-content button:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

/* Highlight search terms */
mark {
  background-color: #ffeb3b;
  color: #333;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

.dark-mode mark {
  background-color: #ff9800;
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search_id_engine p {
    font-size: 2rem;
  }

  .featured-cards {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .view {
    padding: 0 0.5rem;
  }

  .featured-content,
  .quick-tools,
  .content-header,
  .tutorial-card,
  .tool-card,
  .blog-post,
  .search-result-card {
    padding: 1.5rem;
  }

  .navbar-menu {
    padding: 1rem;
  }

  .search_button,
  .button_id {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    padding: 1rem 2rem;
  }

  .centered_button {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tool-button {
    width: 100%;
    margin: 0.25rem 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {

  .featured-card,
  .tutorial-card,
  .tool-card,
  .blog-post,
  .search-result-card {
    border: 2px solid #000;
  }

  .dark-mode .featured-card,
  .dark-mode .tutorial-card,
  .dark-mode .tool-card,
  .dark-mode .blog-post,
  .dark-mode .search-result-card {
    border: 2px solid #fff;
  }
}

/* Footer Enhancements */
.footer {
  margin-top: 4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-section nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-section nav a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.dark-mode .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: #8fa2ff;
}

.dark-mode .social-links a:hover {
  background: #8fa2ff;
  color: #1a1a1a;
}

/* Service Notice Banner */
.service-notice-banner {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  animation: pulse-notice 3s ease-in-out infinite;
}

.service-notice-banner .notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.service-notice-banner .notice-content h4 {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.service-notice-banner .notice-content p {
  color: white;
  margin: 0;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.service-notice-banner .notice-content a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

.service-notice-banner .notice-content a:hover {
  color: #fff3cd;
  text-decoration: none;
}

.dark-mode .service-notice-banner {
  background: linear-gradient(135deg, #d63384 0%, #dc3545 100%);
  border-color: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Subtle pulse animation for the notice */
@keyframes pulse-notice {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  }

  50% {
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
  }
}

.dark-mode .service-notice-banner {
  animation: pulse-notice-dark 3s ease-in-out infinite;
}

@keyframes pulse-notice-dark {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  }

  50% {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5);
  }
}

/* Responsive design for the banner */
@media (max-width: 768px) {
  .service-notice-banner {
    flex-direction: column;
    text-align: center;
    margin: 1rem;
    padding: 1rem;
  }

  .service-notice-banner .notice-icon {
    font-size: 1.5rem;
  }

  .service-notice-banner .notice-content h4 {
    font-size: 1.1rem;
  }
}

/* Focus indicators for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .navbar-menu,
  .footer,
  .dark-mode-toggle {
    display: none !important;
  }

  .featured-card,
  .tutorial-card,
  .tool-card,
  .blog-post {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}