/**
 * Carousel CSS - Featured Dogs Section Styles
 * 
 * This file contains styles for:
 * - Fractions section
 * - Featured dogs grid
 * - Dog boxes with background images
 * - Dog name and traits display
 * 
 * Updated to use boxes instead of carousel
 */

/* ============================================
   Fractions Section
   ============================================ */
.fractions-section {
  text-align: center;
  margin-top: clamp(60px, 8vw, 100px);
  margin-bottom: 0;
  min-height: fit-content;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ============================================
   Fractions Live Container
   ============================================ */
.fractions-live-container {
  background: rgba(19,26,34,0.92);
  border-radius: clamp(20px, 2.5vw, 28px);
  padding: clamp(40px, 5vw, 60px) clamp(30px, 4vw, 48px);
  box-shadow: 0 2px 16px #000;
  max-width: 100%; /* Changed from 1400px to prevent overflow */
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ============================================
   Fractions Live Header
   ============================================ */
.fractions-live-header {
  text-align: center;
  margin-bottom: clamp(25px, 4vw, 40px);
}

.fractions-live-header h2 {
  color: var(--accent);
  font-size: clamp(3em, 8vw, 5em);
  margin-bottom: clamp(15px, 2.5vw, 25px);
  text-shadow: 
    0 2px 8px rgba(0,0,0,0.8),
    0 0 20px rgba(63,224,249,0.5),
    0 0 40px rgba(63,224,249,0.3);
  font-weight: bold;
  line-height: 1.1;
}

.fractions-live-header p {
  color: #ececec;
  font-size: clamp(1.2em, 3vw, 1.6em);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   Featured Dogs Grid (All Devices)
   ============================================ */
.featured-dogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 3vw, 30px);
  margin: 0 auto;
  padding: 0;
}

/* ============================================
   Featured Dog Box
   ============================================ */
.featured-dog-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: clamp(12px, 1.5vw, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  /* Ensure proper touch target size */
  min-height: 200px;
}

.featured-dog-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(63,224,249,0.3);
}

.featured-dog-box:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(63,224,249,0.4);
}

/* Dark overlay for text readability */
.dog-box-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.5) 30%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.6) 100%
  );
  transition: opacity 0.3s ease;
}

.featured-dog-box:hover .dog-box-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.6) 30%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.7) 100%
  );
}

/* Content positioned in top left */
.dog-box-content {
  position: absolute;
  top: clamp(15px, 2.5vw, 20px);
  left: clamp(15px, 2.5vw, 20px);
  z-index: 2;
  text-align: left;
}

.dog-name {
  color: var(--accent);
  font-size: clamp(1.2em, 3vw, 1.5em);
  font-weight: bold;
  margin: 0 0 clamp(12px, 2.5vw, 18px) 0;
  text-shadow: 
    0 0 10px rgba(63,224,249,0.8),
    0 2px 4px rgba(0,0,0,0.9),
    0 0 20px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.dog-traits {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
}

.trait-badge {
  display: inline-block;
  background: rgba(19,26,34,0.85);
  color: var(--text);
  font-size: clamp(0.85em, 2vw, 0.95em);
  padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 12px);
  border-radius: clamp(6px, 1vw, 8px);
  border: 1px solid rgba(63,224,249,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  width: fit-content;
}

.trait-badge.rarity {
  background: rgba(255,225,84,0.2);
  border-color: rgba(255,225,84,0.6);
  color: #ffe154;
  font-weight: bold;
}

.featured-dog-box:hover .trait-badge {
  background: rgba(19,26,34,0.95);
  border-color: rgba(63,224,249,0.6);
  box-shadow: 0 2px 12px rgba(63,224,249,0.3);
}

.featured-dog-box:hover .trait-badge.rarity {
  background: rgba(255,225,84,0.3);
  border-color: rgba(255,225,84,0.8);
  box-shadow: 0 2px 12px rgba(255,225,84,0.4);
}

/* ============================================
   Fractions CTA Button
   ============================================ */
.fractions-cta {
  margin-top: clamp(30px, 4vw, 50px);
  text-align: center;
}

.acquire-fractions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 16px) clamp(30px, 5vw, 40px);
  background: linear-gradient(135deg, rgba(63, 224, 249, 0.9) 0%, rgba(67, 223, 235, 0.9) 100%);
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: clamp(12px, 2vw, 16px);
  font-size: clamp(1em, 2.2vw, 1.2em);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-height: 48px;
  text-decoration: none;
}

.acquire-fractions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 224, 249, 0.4);
  background: linear-gradient(135deg, rgba(63, 224, 249, 1) 0%, rgba(67, 223, 235, 1) 100%);
}

.acquire-fractions-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
  .fractions-live-container {
    padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
  }
  
  .fractions-live-header h2 {
    font-size: clamp(2.5em, 7vw, 4em);
  }
  
  .fractions-live-header p {
    font-size: clamp(1.1em, 2.8vw, 1.4em);
  }
  
  /* Keep grid layout on mobile - adjust columns for smaller screens */
  .featured-dogs-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(15px, 2.5vw, 25px);
  }
  
  .acquire-fractions-btn {
    font-size: clamp(0.9em, 2vw, 1.1em);
    padding: clamp(10px, 1.8vw, 14px) clamp(25px, 4vw, 35px);
  }
}

@media (max-width: 480px) {
  .dog-box-content {
    top: 12px;
    left: 12px;
  }
  
  .dog-name {
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  
  .trait-badge {
    font-size: 0.8em;
    padding: 5px 10px;
  }
}

