/* Promotions Page Styles */

/* Hero Section - Video/Tanıtım Teması */
.tanitim-hero {
  width: 100%;
  height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(220, 20, 60, 0.18) 0%,
    rgba(199, 21, 133, 0.15) 20%,
    rgba(138, 43, 226, 0.12) 40%,
    rgba(255, 69, 0, 0.1) 60%,
    rgba(255, 20, 147, 0.13) 80%,
    rgba(220, 20, 60, 0.16) 100%
  );
  border-radius: 12px;
  text-align: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  animation: videoHeroFlow 14s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(220, 20, 60, 0.15);
}

@keyframes videoHeroFlow {
  0%,
  100% {
    background: linear-gradient(
      135deg,
      rgba(220, 20, 60, 0.18) 0%,
      rgba(199, 21, 133, 0.15) 20%,
      rgba(138, 43, 226, 0.12) 40%,
      rgba(255, 69, 0, 0.1) 60%,
      rgba(255, 20, 147, 0.13) 80%,
      rgba(220, 20, 60, 0.16) 100%
    );
    filter: brightness(1) saturate(1);
  }
  25% {
    background: linear-gradient(
      225deg,
      rgba(138, 43, 226, 0.2) 0%,
      rgba(255, 69, 0, 0.17) 20%,
      rgba(255, 20, 147, 0.14) 40%,
      rgba(220, 20, 60, 0.11) 60%,
      rgba(199, 21, 133, 0.13) 80%,
      rgba(138, 43, 226, 0.18) 100%
    );
    filter: brightness(1.1) saturate(1.2);
  }
  50% {
    background: linear-gradient(
      315deg,
      rgba(255, 20, 147, 0.19) 0%,
      rgba(220, 20, 60, 0.16) 20%,
      rgba(199, 21, 133, 0.13) 40%,
      rgba(138, 43, 226, 0.1) 60%,
      rgba(255, 69, 0, 0.14) 80%,
      rgba(255, 20, 147, 0.17) 100%
    );
    filter: brightness(0.95) saturate(1.1);
  }
  75% {
    background: linear-gradient(
      45deg,
      rgba(255, 69, 0, 0.18) 0%,
      rgba(255, 20, 147, 0.15) 20%,
      rgba(220, 20, 60, 0.12) 40%,
      rgba(199, 21, 133, 0.11) 60%,
      rgba(138, 43, 226, 0.14) 80%,
      rgba(255, 69, 0, 0.16) 100%
    );
    filter: brightness(1.05) saturate(1.3);
  }
}

.tanitim-hero::before {
  content: "🎬";
  position: absolute;
  font-size: 18rem;
  opacity: 0.1;
  animation: videoRotate 20s ease-in-out infinite;
  top: -5%;
  left: 5%;
  transform-origin: center;
  filter: blur(1px);
}

.tanitim-hero::after {
  content: "📹";
  position: absolute;
  font-size: 14rem;
  opacity: 0.12;
  animation: cameraFloat 10s ease-in-out infinite;
  bottom: -3%;
  right: 8%;
  filter: blur(1px);
}

@keyframes videoRotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1) translateX(0);
    opacity: 0.1;
  }
  25% {
    transform: rotate(15deg) scale(1.25) translateX(-20px);
    opacity: 0.15;
  }
  50% {
    transform: rotate(-10deg) scale(0.9) translateX(10px);
    opacity: 0.08;
  }
  75% {
    transform: rotate(20deg) scale(1.15) translateX(-15px);
    opacity: 0.13;
  }
}

@keyframes cameraFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.12;
  }
  33% {
    transform: translateY(-40px) rotate(15deg) scale(1.3);
    opacity: 0.16;
  }
  66% {
    transform: translateY(-70px) rotate(-10deg) scale(0.85);
    opacity: 0.09;
  }
}

.tanitim-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-shadow: 0 6px 20px rgba(220, 20, 60, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: videoTitle 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(-100px) scale(0.3) rotateX(90deg);
  text-transform: uppercase;
}

@keyframes videoTitle {
  0% {
    opacity: 0;
    transform: translateY(-100px) scale(0.3) rotateX(90deg);
  }
  60% {
    opacity: 0.8;
    transform: translateY(10px) scale(1.1) rotateX(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

.tanitim-hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.98);
  max-width: 750px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  animation: videoDesc 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes videoDesc {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.8);
  }
  60% {
    opacity: 0.7;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promotions-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Category Filter */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.2rem;
}

.video-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* Video Info */
.video-info {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Meta */
.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.video-meta i {
  font-size: 0.9rem;
}

.featured-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
}

.view-count {
  color: var(--primary);
  font-weight: 500;
}

.video-date {
  color: #999;
}

/* No Videos State */
.no-videos {
  text-align: center;
  padding: 6rem 2rem;
  color: #999;
}

.no-videos i {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-videos h3 {
  font-size: 1.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.no-videos p {
  font-size: 1.1rem;
  color: #999;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide filtered items */
.video-card.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .promotions-container {
    padding: 3rem 1.5rem;
  }

  .promotions-header h1 {
    font-size: 2.2rem;
  }

  .promotions-header p {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-filter {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .video-info {
    padding: 1.25rem;
  }

  .video-title {
    font-size: 1.15rem;
  }

  .video-description {
    font-size: 0.9rem;
  }

  .video-meta {
    gap: 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .promotions-container {
    padding: 2rem 1rem;
  }

  .promotions-header h1 {
    font-size: 1.8rem;
  }

  .promotions-header p {
    font-size: 0.95rem;
  }

  .category-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .video-info {
    padding: 1rem;
  }

  .video-title {
    font-size: 1.05rem;
  }

  .video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .no-videos {
    padding: 4rem 1rem;
  }

  .no-videos i {
    font-size: 3.5rem;
  }

  .no-videos h3 {
    font-size: 1.4rem;
  }

  .no-videos p {
    font-size: 1rem;
  }
}

/* Loading Animation */
.video-card.loading {
  pointer-events: none;
}

.video-card.loading .video-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
