/* Themeix Blog Plugin Styles - Unique Instance Support */

/* Container */
.themeix-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Single Blog Item Styles - Using attribute selectors for uniqueness */
.themeix_shortcode_blog-item {
  transition: all 0.3s ease;
  background: #ffffff00;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 25px;
  padding-top: 25px;
  border-top-color: #e0e0e0;
  border-top-style: solid;
  border-top-width: 1px;
  margin-bottom: 20px;
}

.themeix_shortcode_blog-item:hover {
  transform: translateY(-5px);
  background: #ffffff00;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

/* Left Content */
.themeix_shortcode_blog-item .themeix_shortcode_blog-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-tag {
  background: #007cba;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-tag:hover {
  background: #005a87;
  color: #ffffff;
  text-decoration: none;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-date {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666666;
  font-size: 14px;
}

.themeix_shortcode_blog-item .themeix_shortcode_date-divider {
  width: 3px;
  height: 3px;
  background: #cccccc;
  border-radius: 50%;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-title {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-title h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-title:hover {
  color: #007cba;
  text-decoration: none;
}

/* Right Content */
.themeix_shortcode_blog-item .themeix_shortcode_blog-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  justify-content: end;
  position: relative;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-image {
  position: absolute;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
  right: 100px;
}

.themeix_shortcode_blog-item:hover .themeix_shortcode_blog-image {
  transform: translateY(-10px);
  opacity: 1;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-link .arrow-icon {
  color: #333333;
  width: 20px;
  height: 20px;
  background: transparent;
  transition: all 0.3s ease;
  border: 1px solid #333;
  border-radius: 50%;
  padding: 12px;
  transform: rotate(0deg);
  box-sizing: content-box;
}

.themeix_shortcode_blog-item:hover .themeix_shortcode_blog-link .arrow-icon {
  transform: rotate(45deg);
}

.themeix_shortcode_blog-item .themeix_shortcode_blog-link:hover .arrow-icon {
  color: #ffffff;
  background: #007cba;
  border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
  .themeix_shortcode_blog-content {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 20px;
  }

  .themeix_shortcode_blog-right {
    justify-content: space-between;
    width: 100%;
  }

  .themeix_shortcode_blog-title h3 {
    font-size: 1.3rem;
  }

  .themeix_shortcode_blog-meta {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .themeix-blog-container {
    padding: 10px;
  }

  .themeix_shortcode_blog-item {
    padding: 15px;
  }

  .themeix_shortcode_blog-right {
    flex-direction: row;
    gap: 20px;
  }

  .themeix_shortcode_blog-image {
    width: 80px;
    max-width: 210px;
    opacity: 1 !important;
    transform: none !important;
  }

  .themeix_shortcode_blog-image img {
    width: 80px;
    height: 80px;
  }

  .themeix_shortcode_blog-link .arrow-icon {
    padding: 8px;
    width: 16px;
    height: 16px;
  }

  .themeix_shortcode_blog-content {
    gap: 15px;
  }

  .themeix_shortcode_blog-title h3 {
    font-size: 1.1rem;
  }
}
