
/* Theme Common Styles - Applied across the entire site */

/* Main layout elements */
body {
  background-color: var(--background-color, #f5f5f5);
  color: var(--text-color, #333333);
}

header, .aitools-header {
  background: var(--header-background, #000000);
  border-bottom: 1px solid var(--header-border-color, rgba(22, 211, 247, 0.1));
  color: var(--header-text-color, #ffffff);
  padding: var(--header-padding, 20px 0);
  margin: var(--header-margin, 0 0 30px 0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color, #0A1A3D);
}

a {
  color: var(--link-color, #16D3F7);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color, #0A1A3D);
}

/* Form elements */
input, textarea, select {
  background-color: var(--input-background, #ffffff);
  border: 1px solid var(--input-border, #e0e0e0);
  color: var(--input-text, #333333);
  border-radius: var(--border-radius, 8px);
}

button, .btn, .button {
  background-color: var(--primary-color, #16D3F7);
  color: var(--button-text-color, #ffffff);
  border-radius: var(--border-radius, 8px);
  border: 1px solid var(--primary-color, #16D3F7);
}

button:hover, .btn:hover, .button:hover {
  opacity: 0.9;
}

/* Cards and content containers */
.card, .aitools-item, .aitools-blog-post {
  background-color: var(--card-background, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius, 8px);
}

/* Blog specific styles */
.aitools-blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Responsive styles for theme common elements */
@media (max-width: 768px) {
  .aitools-blog-posts {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .aitools-single-post {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .aitools-blog-posts {
    grid-template-columns: 1fr;
  }
  
  button, .btn, .button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
  }
  
  input, textarea, select {
    padding: 8px;
    font-size: 14px;
  }
}

.aitools-blog-post {
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.aitools-blog-post h2 a {
  color: var(--secondary-color, #0A1A3D);
  text-decoration: none;
}

.aitools-blog-post h2 a:hover {
  color: var(--primary-color, #16D3F7);
}

.aitools-post-meta {
  color: #777;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.aitools-post-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius, 8px);
  margin-bottom: 15px;
}

.aitools-read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color, #16D3F7);
  text-decoration: none;
  font-weight: bold;
}

/* Single blog post view */
.aitools-single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-background, #ffffff);
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aitools-back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary-color, #16D3F7);
  text-decoration: none;
}
