/* ── RUFC Visual Polish ── */

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.skeleton-card__img {
  height: 180px;
  background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e4 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-card__body { padding: 1.25rem; }
.skeleton-card__line {
  height: 14px;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-card__line--short { width: 40%; }
.skeleton-card__line--medium { width: 70%; }
.skeleton-card__line--long { width: 90%; }
.skeleton-card__line--title { height: 18px; width: 60%; margin-bottom: 1rem; }

/* Skeleton for fixture cards */
.skeleton-fixture {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 0.75rem;
}
.skeleton-fixture__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skeleton-fixture__lines { flex: 1; }
.skeleton-fixture__line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.skeleton-fixture__line:last-child { margin-bottom: 0; width: 50%; }

/* ── Smoother Card Hover Effects ── */
.news-card {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(18, 59, 115, 0.12);
}
.news-card .news-image {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-card:hover .news-image {
  transform: scale(1.06);
}

/* Feature cards */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 50px rgba(18, 59, 115, 0.15) !important;
}
.feature-card__icon {
  transition: transform 0.3s ease !important;
}
.feature-card:hover .feature-card__icon {
  transform: scale(1.1) !important;
}

/* ── Button Polish ── */
.btn {
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 59, 115, 0.2);
}
.btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(18, 59, 115, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(30, 120, 255, 0.35);
}

/* ── Link Hover Underlines ── */
.read-more {
  position: relative;
  text-decoration: none !important;
}
.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue, #1e78ff);
  transition: width 0.3s ease;
}
.read-more:hover::after {
  width: 100%;
}

/* ── Section Titles ── */
.section-title {
  position: relative;
}

/* ── Gallery Strip Touch Improvement ── */
.gallery-strip__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-strip__item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── Footer Polish ── */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.footer-links a {
  transition: color 0.2s ease, padding-left 0.2s ease !important;
}
.footer-links a:hover {
  padding-left: 4px;
}

/* ── Scroll Reveal Enhancement ── */
.reveal {
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ── Focus Ring for Accessibility ── */
*:focus-visible {
  outline: 3px solid rgba(30, 120, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Loading Message Improvement ── */
.loading-message {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}
.loading-message i {
  margin-right: 0.5rem;
  color: var(--primary-blue, #1e78ff);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-card__img,
  .skeleton-card__line,
  .skeleton-fixture__badge,
  .skeleton-fixture__line {
    animation: none;
  }
  .news-card,
  .feature-card,
  .gallery-strip__item,
  .btn,
  .reveal {
    transition-duration: 0.01s !important;
  }
}
