
/* ==========================================
   PREMIUM ARTICLE SECTIONS CSS V2
   All fixes applied - compact layout
   ========================================== */

/* ==========================================
   PREMIUM RANDOM CAROUSEL SECTION
   ========================================== */

.premium-carousel-section {
  padding: 100px 20px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.premium-carousel-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  left: -200px;
  animation: float 20s ease-in-out infinite;
  filter: blur(60px);
}

.premium-carousel-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  animation: float 15s ease-in-out infinite reverse;
  filter: blur(60px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}

.premium-carousel-section .section-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.premium-carousel-section .section-badge {
  display: inline-block;
  background: rgba(142, 45, 226, 0.2);
  border: 2px solid var(--primary);
  padding: 8px 24px;
  border-radius: 30px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(142, 45, 226, 0.5); }
  50% { box-shadow: 0 0 40px rgba(142, 45, 226, 0.8), 0 0 60px rgba(142, 45, 226, 0.4); }
}

.premium-carousel-section h2 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  line-height: 1.2;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% auto;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.premium-carousel-section .subtitle {
  font-size: 1.2rem;
  color: rgba(248, 249, 250, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Carousel Container - Faster */
.premium-carousel-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.premium-carousel-track {
   display: flex;
  width: max-content;
  gap: 1.5rem;
}

.premium-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes premium-scroll {
0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

/* Smaller Carousel Cards */
.premium-article-card {
  min-width: 280px;
  height: 400px;
  background: rgba(26, 26, 46, 0.7);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(142, 45, 226, 0.3);
}

.premium-article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.premium-article-card:hover::before {
  opacity: 1;
}

.premium-article-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.premium-article-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(142, 45, 226, 0.35),
    0 0 60px rgba(20, 241, 149, 0.15);
}

.premium-article-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85);
}

.premium-article-card:hover .card-image {
  transform: scale(1.1);
  filter: brightness(1);
}

.premium-article-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 20px 20px;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.premium-article-card:hover .card-content {
  transform: translateY(-5px);
}

.premium-article-card .category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(142, 45, 226, 0.4);
}

.premium-article-card .category-tag::before {
  content: '◆';
  font-size: 0.6rem;
  animation: rotate 4s linear infinite;
  display: inline-block;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.premium-article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-article-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248, 249, 250, 0.85);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-article-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.premium-article-card .meta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
}

.premium-article-card .date-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  font-weight: 600;
}

.premium-article-card .time-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(248, 249, 250, 0.7);
  font-weight: 600;
}

.premium-article-card .read-arrow {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.premium-article-card:hover .read-arrow {
  transform: rotate(45deg) scale(1.15);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.6);
}

/* ==========================================
   COMPACT LATEST SECTION - 11 CARDS
   ========================================== */

.premium-latest-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--dark) 0%, rgba(26, 26, 46, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

.premium-latest-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(142, 45, 226, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 45, 226, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.premium-latest-section .section-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.premium-latest-section .flame-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: flame-flicker 2s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 0 20px var(--secondary));
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-5deg); opacity: 1; }
  50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

.premium-latest-section h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.premium-latest-section .subtitle {
  font-size: 1.1rem;
  color: rgba(248, 249, 250, 0.7);
}

/* Compact Grid - Perfect for 11 cards */
.premium-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Compact Modern Cards */
.premium-latest-card {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(142, 45, 226, 0.25);
}

.premium-latest-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.premium-latest-card:hover::before {
  opacity: 1;
}

.premium-latest-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 15px 35px rgba(142, 45, 226, 0.3),
    0 0 40px rgba(20, 241, 149, 0.12);
}

.premium-latest-card .image-container {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.premium-latest-card .image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 100%);
}

.premium-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.88) saturate(1.2);
}

.premium-latest-card:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.3);
}

/* NEW badge - green instead of yellow */
.premium-latest-card .new-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  z-index: 2;
  box-shadow: 0 3px 12px rgba(20, 241, 149, 0.5);
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(20, 241, 149, 0.5);
  }
  50% { 
    transform: scale(1.04);
    box-shadow: 0 5px 18px rgba(20, 241, 149, 0.7);
  }
}

.premium-latest-card .card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-latest-card .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-latest-card .category-pill {
  background: var(--primary-gradient);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(142, 45, 226, 0.3);
}

.premium-latest-card .date-text {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.premium-latest-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.premium-latest-card:hover h3 {
  color: var(--secondary);
}

.premium-latest-card .description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(248, 249, 250, 0.85);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.premium-latest-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(142, 45, 226, 0.2);
  margin-top: auto;
}

.premium-latest-card .read-time-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(248, 249, 250, 0.65);
  font-weight: 600;
  font-size: 0.8rem;
}

.premium-latest-card .cta-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.premium-latest-card:hover .cta-button {
  transform: translateX(3px);
  color: var(--primary);
}

.premium-latest-card .cta-button::after {
  content: '→';
  transition: transform 0.3s ease;
}

.premium-latest-card:hover .cta-button::after {
  transform: translateX(3px);
}

/* ==========================================
   LOADING STATES
   ========================================== */

.loading-state {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(142, 45, 226, 0.2);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
}

