/* SEO Optimizations */

/* Structured data for rich snippets */
.structured-data {
  display: none;
}

/* Semantic HTML enhancements */
main, article, section, aside, nav, header, footer {
  display: block;
}

/* Heading hierarchy */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

h5 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Canonical URL */
link[rel="canonical"] {
  display: none;
}

/* Meta description */
meta[name="description"] {
  display: none;
}

/* Open Graph tags */
meta[property^="og:"] {
  display: none;
}

/* Twitter Card tags */
meta[name^="twitter:"] {
  display: none;
}

/* Schema.org markup */
script[type="application/ld+json"] {
  display: none;
}

/* Image alt text */
img[alt] {
  /* No visual change, but ensures all images have alt text */
}

/* Breadcrumb navigation */
.breadcrumb-nav {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: #666;
}

.breadcrumb-link {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: #666;
}

/* URL structure */
.seo-friendly-url {
  display: none;
}

/* Internal linking */
.internal-link {
  color: var(--accent-color);
  text-decoration: none;
}

.internal-link:hover {
  text-decoration: underline;
}

/* External linking */
.external-link {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding-right: 20px;
}

.external-link::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 0;
}

.external-link:hover {
  text-decoration: underline;
}

/* Keyword-rich content */
.keyword-rich-heading {
  font-weight: 700;
  color: var(--primary-color);
}

.keyword-rich-paragraph {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Local business schema */
.local-business-info {
  margin-bottom: 30px;
}

.business-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.business-address {
  margin-bottom: 10px;
}

.business-hours {
  margin-bottom: 10px;
}

.business-contact {
  margin-bottom: 10px;
}

/* FAQ schema */
.faq-section {
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-answer {
  line-height: 1.6;
}

/* Article schema */
.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #666;
}

.article-author {
  margin-right: 20px;
}

.article-date {
  margin-right: 20px;
}

.article-category {
  margin-right: 20px;
}

/* Product schema */
.product-info {
  margin-bottom: 30px;
}

.product-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

.product-price {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.rating-stars {
  color: #ffc107;
  margin-right: 10px;
}

.rating-count {
  color: #666;
}

/* Event schema */
.event-info {
  margin-bottom: 30px;
}

.event-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.event-date {
  margin-bottom: 10px;
  font-weight: 600;
}

.event-location {
  margin-bottom: 10px;
}

.event-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Organization schema */
.organization-info {
  margin-bottom: 30px;
}

.organization-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.organization-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

.organization-logo {
  margin-bottom: 15px;
}

/* Person schema */
.person-info {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.person-image {
  margin-right: 20px;
  border-radius: 50%;
  overflow: hidden;
}

.person-details {
  flex: 1;
}

.person-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.person-job-title {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.person-bio {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Review schema */
.review-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.review-author {
  font-weight: 600;
  margin-bottom: 10px;
}

.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-text {
  line-height: 1.6;
  font-style: italic;
}

/* Video schema */
.video-container {
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-title {
  font-weight: 700;
  margin: 15px 0 10px;
}

.video-description {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Recipe schema */
.recipe-info {
  margin-bottom: 30px;
}

.recipe-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.recipe-meta-item {
  margin-right: 20px;
  margin-bottom: 10px;
}

.recipe-ingredients {
  margin-bottom: 20px;
}

.recipe-instructions {
  line-height: 1.6;
}

/* Job posting schema */
.job-posting {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.job-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.job-company {
  font-weight: 600;
  margin-bottom: 10px;
}

.job-location {
  margin-bottom: 10px;
}

.job-description {
  line-height: 1.6;
  margin-bottom: 15px;
}

.job-requirements {
  margin-bottom: 15px;
}

.job-salary {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Course schema */
.course-info {
  margin-bottom: 30px;
}

.course-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-provider {
  font-weight: 600;
  margin-bottom: 10px;
}

.course-description {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Sitemap styles */
.sitemap {
  margin-bottom: 40px;
}

.sitemap-section {
  margin-bottom: 20px;
}

.sitemap-heading {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-item {
  margin-bottom: 5px;
}

.sitemap-link {
  color: var(--text-color);
  text-decoration: none;
}

.sitemap-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Robots.txt styles */
.robots-info {
  font-family: monospace;
  background-color: #f5f5f5;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
  white-space: pre-wrap;
}

/* Canonical link */
.canonical-link {
  display: none;
}

/* Hreflang tags */
.hreflang-tags {
  display: none;
}

/* Mobile-friendly indicator */
.mobile-friendly {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* AMP compatibility */
.amp-compatible {
  display: inline-block;
  background-color: #0379c4;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* HTTPS indicator */
.https-secure {
  display: flex;
  align-items: center;
  color: #4caf50;
  margin-bottom: 20px;
}

.https-secure i {
  margin-right: 5px;
}

/* Page speed indicator */
.page-speed {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.speed-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 10px;
}

.speed-fast {
  background-color: #4caf50;
}

.speed-medium {
  background-color: #ff9800;
}

.speed-slow {
  background-color: #f44336;
}

/* Social sharing */
.social-sharing {
  display: flex;
  margin-bottom: 30px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  color: white;
  text-decoration: none;
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-pinterest {
  background-color: #bd081c;
}

.share-email {
  background-color: #666;
}

/* Print-friendly */
.print-friendly {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.print-friendly i {
  margin-right: 5px;
}

/* PDF version */
.pdf-version {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.pdf-version i {
  margin-right: 5px;
}

.pdf-link {
  color: var(--accent-color);
  text-decoration: none;
}

.pdf-link:hover {
  text-decoration: underline;
}

/* Last updated */
.last-updated {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Author info */
.author-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.author-bio {
  color: #666;
  font-size: 0.9rem;
}

/* Related content */
.related-content {
  margin-top: 40px;
  margin-bottom: 40px;
}

.related-heading {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.related-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.related-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.related-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-details {
  padding: 15px;
}

.related-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.related-excerpt {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.related-link {
  color: var(--accent-color);
  text-decoration: none;
}

.related-link:hover {
  text-decoration: underline;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  background-color: #f5f5f5;
  padding: 5px 10px;
  border-radius: 3px;
  margin-right: 10px;
  margin-bottom: 10px;
  color: #666;
  text-decoration: none;
}

.tag:hover {
  background-color: #e0e0e0;
}

/* Categories */
.categories {
  margin-bottom: 30px;
}

.category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none;
}

.category:hover {
  background-color: var(--accent-color);
}

/* Comments */
.comments {
  margin-top: 40px;
  margin-bottom: 40px;
}

.comments-heading {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.comment {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 10px;
}

.comment-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.comment-content {
  line-height: 1.6;
}

/* Search results */
.search-results {
  margin-bottom: 40px;
}

.search-result {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.result-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.result-url {
  color: #4caf50;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.result-snippet {
  line-height: 1.6;
  color: #666;
}

.result-highlight {
  background-color: rgba(255, 235, 59, 0.3);
  padding: 0 2px;
}

/* Pagination for search results */
.search-pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-link {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #ddd;
  color: var(--text-color);
  text-decoration: none;
}

.page-link:hover {
  background-color: #f5f5f5;
}

.page-link.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.page-link.disabled {
  color: #999;
  pointer-events: none;
}

/* 404 page */
.error-404 {
  text-align: center;
  padding: 60px 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.error-description {
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.back-home {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.back-home:hover {
  background-color: var(--primary-color);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-buttons {
  display: flex;
}

.cookie-button {
  padding: 8px 15px;
  margin-left: 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.accept-cookies {
  background-color: var(--accent-color);
  color: white;
}

.reject-cookies {
  background-color: #f5f5f5;
  color: var(--text-color);
}

/* Privacy policy */
.privacy-policy {
  line-height: 1.6;
  margin-bottom: 40px;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-heading {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.policy-text {
  margin-bottom: 15px;
}

.policy-list {
  margin-bottom: 15px;
  padding-left: 20px;
}

.policy-list li {
  margin-bottom: 10px;
}

/* Terms of service */
.terms-of-service {
  line-height: 1.6;
  margin-bottom: 40px;
}

.terms-section {
  margin-bottom: 30px;
}

.terms-heading {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.terms-text {
  margin-bottom: 15px;
}

.terms-list {
  margin-bottom: 15px;
  padding-left: 20px;
}

.terms-list li {
  margin-bottom: 10px;
}
