/* ============================================
   Elementor Collections Cards - Frontend CSS
   ============================================ */

:root {
  --col-black: #0a0a0a;
  --col-dark: #111111;
  --col-card: #131313;
  --col-orange: #ff6b00;
  --col-orange-glow: rgba(255, 107, 0, 0.4);
  --col-white: #ffffff;
  --col-gray: #888888;
  --col-light: #aaaaaa;
}

.col-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.col-section {
  background: var(--col-black);
  padding: 70px 5%;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

/* Animated background lines */
.col-bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.03;
}

.col-bg-lines span {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--col-white), transparent);
  animation: col-line-move 20s linear infinite;
}

.col-bg-lines span:nth-child(1) { left: 10%; animation-delay: 0s; }
.col-bg-lines span:nth-child(2) { left: 30%; animation-delay: -5s; }
.col-bg-lines span:nth-child(3) { left: 50%; animation-delay: -10s; }
.col-bg-lines span:nth-child(4) { left: 70%; animation-delay: -15s; }
.col-bg-lines span:nth-child(5) { left: 90%; animation-delay: -3s; }

@keyframes col-line-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Header */
.col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.col-title-wrap {
  position: relative;
}

.col-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--col-orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.col-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--col-orange);
  border-radius: 50%;
  animation: col-pulse 2s ease infinite;
}

@keyframes col-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.col-title {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(50px, 10vw, 100px);
  font-weight: 400;
  color: var(--col-white);
  line-height: 0.9;
  letter-spacing: -1px;
}

.col-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--col-orange);
  display: inline-block;
  transition: all 0.4s ease;
}

.col-title:hover span {
  color: var(--col-orange);
  -webkit-text-stroke: 1.5px transparent;
}

.col-view-all {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--col-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  padding-bottom: 15px;
}

.col-view-all:hover {
  color: var(--col-orange);
}

.col-view-all svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.col-view-all:hover svg {
  transform: translateX(5px);
}

/* Grid */
.col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Standalone single card (Custom Collection Card widget) */
.col-card-standalone * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.col-card-standalone {
  position: relative;
}

.col-card-standalone .col-card {
  display: block;
  max-width: 100%;
}

/* Keep text clear of the circular button (shown on hover) */
.col-card-standalone .col-card-content {
  padding-right: 86px;
}

@media (max-width: 600px) {
  .col-card-standalone .col-card-content {
    padding-right: 56px;
  }
}

/* Card */
.col-card {
  position: relative;
  background: var(--col-card);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

/* Card Image */
.col-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.col-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.9) saturate(0.9);
}

.col-card:hover .col-card-img img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.1);
}

/* Gradient Overlay */
.col-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.95) 100%
  );
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.col-card:hover .col-card-gradient {
  opacity: 1;
}

/* Orange line accent */
.col-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--col-orange);
  z-index: 10;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.col-card:hover::before {
  width: 100%;
}

/* Corner decoration */
.col-corner {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  transition: all 0.4s ease;
}

.col-card:hover .col-corner {
  border-color: var(--col-orange);
  width: 45px;
  height: 45px;
}

/* Count badge */
.col-count {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: var(--col-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.col-card:hover .col-count {
  background: var(--col-orange);
  border-color: var(--col-orange);
  color: var(--col-black);
}

/* Card Content */
.col-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  z-index: 5;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.col-card:hover .col-card-content {
  transform: translateY(0);
}

.col-category {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--col-orange);
  margin-bottom: 8px;
}

.col-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--col-white);
  margin-bottom: 8px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.col-card:hover .col-name {
  color: var(--col-orange);
}

.col-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--col-gray);
  line-height: 1.5;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.col-card:hover .col-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Explore button */
.col-btn {
  width: 46px;
  height: 46px;
  background: var(--col-orange);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0) rotate(-90deg);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.col-card:hover .col-btn {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.col-btn:hover {
  background: var(--col-white);
  transform: scale(1.1) rotate(0deg) !important;
}

.col-btn svg {
  width: 18px;
  height: 18px;
  color: var(--col-black);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .col-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .col-name { font-size: 22px; }
  .col-card-content { padding: 20px; }
}

@media (max-width: 992px) {
  .col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .col-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
  }
  .col-view-all { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .col-section { padding: 50px 4%; }
  .col-title { font-size: 60px; }
  .col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .col-card-img { aspect-ratio: 3/4; }
  .col-card-content {
    padding: 15px;
    transform: translateY(0);
  }
  .col-count {
    padding: 5px 10px;
    font-size: 8px;
    top: 10px;
    left: 10px;
  }
  .col-corner {
    width: 25px;
    height: 25px;
    top: 10px;
    right: 10px;
    border-width: 1.5px;
  }
  .col-category { font-size: 8px; margin-bottom: 5px; }
  .col-name { font-size: 16px; margin-bottom: 5px; }
  .col-desc { display: none; }
  .col-btn {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  .col-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 380px) {
  .col-grid { gap: 10px; }
  .col-name { font-size: 14px; }
  .col-card-content { padding: 12px; }
  .col-btn {
    width: 32px;
    height: 32px;
    bottom: 12px;
    right: 12px;
  }
}