/* TikTok Content Page Enhanced Styles */

/* Content Section Enhanced */
.content-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23ff0050" opacity="0.1"/><circle cx="90" cy="20" r="1.5" fill="%2325f4ee" opacity="0.1"/><circle cx="30" cy="80" r="1" fill="%23ff0050" opacity="0.1"/><circle cx="80" cy="70" r="1.5" fill="%2325f4ee" opacity="0.1"/></svg>') repeat;
  pointer-events: none;
}

/* Content Section Header */
.content-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.content-intro {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Content Stats */
.content-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 40px 0 60px;
}

.stat-card {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 0, 80, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 80, 0.05), transparent);
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 0, 80, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff0050, #fe2c55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(255, 0, 80, 0.3);
}

.stat-info h3 {
  margin: 0 0 5px 0;
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.stat-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  color: #ff0050;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ff0050, #25f4ee);
  border-radius: 2px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff0050, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
  line-height: 1.2;
}

/* Content Filters Enhanced */
.content-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: white;
  color: #666;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff0050, #25f4ee);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: #ff0050;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.3);
}

/* Content Grid Enhanced */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Content Cards Enhanced */
.content-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 0, 80, 0.1);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0050, #25f4ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 0, 80, 0.2);
}

/* Content Header Enhanced */
.content-header {
  padding: 25px 25px 20px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.content-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.content-card:hover .content-title {
  color: #ff0050;
}

.content-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 0, 80, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.content-meta span:hover {
  background: rgba(255, 0, 80, 0.2);
  transform: scale(1.05);
}

.content-meta ion-icon {
  font-size: 14px;
  color: #ff0050;
}

/* Media Container Enhanced */
.content-media {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-container,
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumbnail,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-media:hover .video-thumbnail,
.content-media:hover img {
  transform: scale(1.1);
}

/* Play Button Enhanced */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff0050, #fe2c55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.4);
  border: 3px solid white;
}

.play-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0050, #fe2c55);
  animation: pulse 2s infinite;
  z-index: -1;
}

.content-media:hover .play-button {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 15px 40px rgba(255, 0, 80, 0.6);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Video Overlay Enhanced */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-media:hover .video-overlay {
  opacity: 1;
}

.video-duration {
  font-weight: 600;
  font-size: 14px;
}

/* TikTok Badge */
.content-media::after {
  content: 'TikTok';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff0050, #fe2c55);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.content-card:hover .content-media::after {
  opacity: 1;
  transform: translateY(0);
}

/* Content Body Enhanced */
.content-body {
  padding: 25px;
}

.description-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.see-more-btn {
  color: #ff0050;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.see-more-btn:hover {
  color: #fe2c55;
  text-decoration: underline;
}

/* Action Buttons Enhanced */
.content-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ff0050, #fe2c55);
  color: white;
  border-color: #ff0050;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fe2c55, #ff0050);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

.btn-secondary {
  background: white;
  color: #666;
  border-color: #e0e0e0;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #ff0050;
  color: #ff0050;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modal Enhanced */
.content-modal {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
}

.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 0, 80, 0.2);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(40px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f8f9fa;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #ff0050;
  color: white;
  transform: scale(1.1);
}

.modal-body {
  padding: 30px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TikTok Embed Styling */
.tiktok-video-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.tiktok-embed {
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 40px rgba(255, 0, 80, 0.2) !important;
}

/* Loading Spinner Enhanced */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #666;
}

.loading-spinner ion-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
  color: #ff0050;
}

.loading-spinner p {
  font-size: 16px;
  font-weight: 600;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fallback Content Enhanced */
.fallback-content {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 15px;
  border: 2px solid #f0f0f0;
}

.fallback-content ion-icon {
  font-size: 80px;
  color: #ff0050;
  margin-bottom: 25px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.fallback-content h4 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.fallback-content p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* No Content State Enhanced */
.no-content {
  text-align: center;
  padding: 80px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.no-content-icon {
  margin-bottom: 30px;
}

.no-content-icon ion-icon {
  font-size: 80px;
  color: #ddd;
}

.no-content h3 {
  margin: 0 0 15px 0;
  font-size: 28px;
  font-weight: 700;
  color: #666;
}

.no-content p {
  margin: 0;
  color: #999;
  font-size: 16px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .content-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .content-actions {
    flex-direction: column;
  }
  
  .modal-container {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }
  
  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 60px 0;
  }
  
  .content-card {
    border-radius: 15px;
  }
  
  .content-header,
  .content-body {
    padding: 20px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Enhanced Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Custom scrollbar for the page */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff0050, #25f4ee);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #fe2c55, #ff0050);
}

/* Loading states */
.loading-state {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
