/* Variation 1: Modern Card */
.v1-popular-post-item {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.v1-popular-post-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.v1-popular-post-image-web {
  height: 340px;
  transform: scale(1.02);
}

.v1-popular-post-content {
  padding: 32px;
}

.v1-popular-post-content h3 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v1-popular-post-category {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Variation 2: Minimal Clean */
.v2-popular-post-item {
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  border-bottom: 1px solid #eaeaea;
  padding: 40px 0;
  margin-bottom: 40px;
}

.v2-popular-post-image-web {
  height: 240px;
  opacity: 0.9;
  filter: grayscale(20%);
}

.v2-popular-post-content {
  padding: 24px 0 0 0;
}

.v2-popular-post-content h3 {
  font-family: "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.v2-popular-post-category {
  background: none;
  color: #666;
  font-weight: 400;
  padding: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.v2-popular-post-excerpt {
  font-family: "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* Variation 3: Bold & Dynamic */
.v3-popular-post-item {
  border-radius: 0;
  background: #000000;
  overflow: hidden;
  position: relative;
}

.v3-popular-post-image-web {
  height: 400px;
  opacity: 0.7;
  transition: all 0.5s ease;
}

.v3-popular-post-item:hover .v3-popular-post-image-web {
  opacity: 0.5;
  transform: scale(1.05);
}

.v3-popular-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: white;
}

.v3-popular-post-content h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.v3-popular-post-content h3 a {
  color: white !important;
}

.v3-popular-post-category {
  background: #ff3b3b;
  color: white;
  font-weight: 700;
  padding: 10px 30px;
  font-size: 16px;
  position: absolute;
  top: 40px;
  left: 40px;
}

.v3-popular-post-excerpt {
  color: rgba(255,255,255,0.8);
}

/* Variation 4: Dark Mode */
.v4-popular-post-item {
  border-radius: 16px;
  background: #111111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  overflow: hidden;
}

.v4-popular-post-image-web {
  height: 300px;
  filter: brightness(0.8) contrast(1.2);
}

.v4-popular-post-content {
  padding: 30px;
  background: #111111;
}

.v4-popular-post-content h3 a {
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 600;
}

.v4-popular-post-excerpt {
  color: #888;
}

.v4-popular-post-category {
  background: #222;
  color: #00ff9d;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #00ff9d;
}

.v4-popular-post-meta {
  color: #666;
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 20px;
}

/* Variation 5: Magazine Style */
.v5-popular-post-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  border: none;
  background: #ffffff;
  padding: 0;
  margin-bottom: 60px;
  position: relative;
}

.v5-popular-post-image-web {
  height: 100%;
  min-height: 400px;
  clip-path: polygon(0 0, 100% 0%, 92% 100%, 0% 100%);
}

.v5-popular-post-content {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v5-popular-post-content h3 {
  font-size: 36px;
  font-family: "Georgia", serif;
  line-height: 1.2;
  margin-bottom: 24px;
}

.v5-popular-post-category {
  background: none;
  color: #e63946;
  font-weight: 700;
  padding: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  border-left: 4px solid #e63946;
  padding-left: 15px;
}

.v5-popular-post-excerpt {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  font-family: "Georgia", serif;
}

/* Variation 6: Glass Morphism */
.v6-popular-post-wrapper {
  background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

.v6-popular-post-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
}

.v6-popular-post-image-web {
  height: 300px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.v6-popular-post-content {
  padding: 30px 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  margin-top: 20px;
}

.v6-popular-post-category {
  background: rgba(255, 255, 255, 0.4);
  color: #1a1a1a;
  padding: 10px 25px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Variation 7: Compact List */
.v7-popular-post-item {
  display: flex;
  flex-direction: row !important;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  gap: 25px;
  border: 1px solid #eee;
  margin-bottom: 15px;
}

.v7-popular-post-image-web {
  width: 180px !important;
  height: 180px !important;
  border-radius: 12px;
  flex: 0 0 auto;
  overflow: hidden;
}

.v7-popular-post-image-web img {
  transition: transform 0.3s ease;
}

.v7-popular-post-item:hover .v7-popular-post-image-web img {
  transform: scale(1.1);
}

.v7-popular-post-content {
  padding: 10px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v7-popular-post-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.v7-popular-post-category {
  display: inline-block;
  font-size: 12px;
  padding: 6px 15px;
  background: #f0f7ff;
  color: #3174cb;
  border-radius: 30px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Variation 8: Gradient Cards */
.v8-popular-post-item {
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 4px;
  position: relative;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.v8-popular-post-item:hover {
  transform: rotateX(5deg) rotateY(5deg);
}

.v8-popular-post-item > div {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
}

.v8-popular-post-image-web {
  height: 300px;
  position: relative;
}

.v8-popular-post-image-web::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.2) 100%);
}

.v8-popular-post-content {
  padding: 30px;
  position: relative;
}

.v8-popular-post-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(to right, transparent, #6366f1, transparent);
}

.v8-popular-post-category {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transform: translateY(-50%);
  margin-bottom: -10px;
}

@media (max-width: 768px) {
  .v5-popular-post-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
   @media (max-width: 768px) {
  .popular-post-image-mobile {
    height: auto;
    border-radius: 0px !important;}
    }

  .v5-popular-post-image-web {
    min-height: 300px;
    clip-path: none;
  }

  .v7-popular-post-item {
    flex-direction: column !important;
  }

  .v7-popular-post-image-web {
    width: 100% !important;
    height: 200px !important;
  }
}

/* Style Switcher Button */
.popular-post-wrapper {
  position: relative;
}

.style-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #3174cb;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.style-switcher:hover {
  background: #2661b1;
  transform: translateY(-2px);
}

/* Variation Popup */
.style-popup {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
}

.style-popup.active {
  display: block;
}

.style-option {
  display: block;
  padding: 10px 20px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.style-option:last-child {
  margin-bottom: 0;
}

.style-option:hover {
  background: #f0f7ff;
}

.style-option.active {
  background: #3174cb;
  color: white;
} 

.style-switcher,
.style-popup {
  display: none !important;
}

/* GOLDEN - popular-post-title behavior */
.v1-popular-post-content h3 a,
.v2-popular-post-content h3 a,
.v3-popular-post-content h3 a,
.v4-popular-post-content h3 a,
.v5-popular-post-content h3 a,
.v6-popular-post-content h3 a,
.v7-popular-post-content h3 a,
.v8-popular-post-content h3 a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.v1-popular-post-content h3 a:hover,
.v2-popular-post-content h3 a:hover,
.v3-popular-post-content h3 a:hover,
.v4-popular-post-content h3 a:hover,
.v5-popular-post-content h3 a:hover,
.v6-popular-post-content h3 a:hover,
.v7-popular-post-content h3 a:hover,
.v8-popular-post-content h3 a:hover {
    color: #3275cc;
    text-decoration: underline;
}

/* GOLDEN - image hover scale */
.v1-popular-post-image-web img,
.v2-popular-post-image-web img,
.v4-popular-post-image-web img,
.v5-popular-post-image-web img,
.v6-popular-post-image-web img,
.v8-popular-post-image-web img {
    transition: transform 0.3s ease;
}

.v1-popular-post-item:hover .v1-popular-post-image-web img,
.v2-popular-post-item:hover .v2-popular-post-image-web img,
.v4-popular-post-item:hover .v4-popular-post-image-web img,
.v5-popular-post-item:hover .v5-popular-post-image-web img,
.v6-popular-post-item:hover .v6-popular-post-image-web img,
.v8-popular-post-item:hover .v8-popular-post-image-web img {
    transform: scale(1.05);
}

/* GOLDEN - border-radius consistent (add only where not custom clipped) */
.v1-popular-post-item,
.v2-popular-post-item,
.v4-popular-post-item,
.v5-popular-post-item,
.v6-popular-post-item,
.v7-popular-post-item,
.v8-popular-post-item {
    border-radius: 15px;
    overflow: hidden;
}

/* GOLDEN - hover shadow universal */
.v1-popular-post-item:hover,
.v2-popular-post-item:hover,
.v4-popular-post-item:hover,
.v5-popular-post-item:hover,
.v6-popular-post-item:hover,
.v7-popular-post-item:hover,
.v8-popular-post-item:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
