/* Apple-style Info Lomba Page for HMD FK UM */

/* Hero Section */
.apple-lomba-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 24px 60px;
  overflow: hidden;
  text-align: center;
}

.apple-lomba-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(10, 132, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom left, rgba(191, 90, 242, 0.08), transparent 60%);
}

.apple-lomba-hero-container {
  max-width: 800px;
  width: 100%;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-lomba-hero-content {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(44, 44, 46, 0.4), rgba(70, 70, 74, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.apple-lomba-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 149, 0, 0.15);
  border-radius: var(--apple-radius-pill);
  color: var(--apple-orange);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.apple-lomba-hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FF9500, #FFCC02, #0A84FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-hero-line {
  height: 3px;
  background: linear-gradient(135deg, #FF9500, #0A84FF);
  margin: 0 auto 24px;
  border-radius: 3px;
  width: 80px;
}

.apple-lomba-hero-subtitle {
  font-size: 18px;
  color: var(--apple-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.apple-lomba-filter {
  padding: 30px 0;
  background: rgba(44, 44, 46, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.apple-lomba-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.apple-lomba-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.apple-filter-tab {
  background: rgba(60, 60, 67, 0.15);
  color: var(--apple-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--apple-radius-pill);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  min-height: 36px;
  flex: 1;
  justify-content: center;
  max-width: 100px;
}

.apple-filter-tab i {
  font-size: 12px;
  flex-shrink: 0;
}

.apple-filter-tab .tab-text {
  font-size: 12px;
  font-weight: 600;
}

.apple-filter-tab:hover {
  background: rgba(60, 60, 67, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.apple-filter-tab.active {
  background: linear-gradient(135deg, #0A84FF, #007AFF);
  color: white;
  border-color: var(--apple-blue);
  box-shadow: 0 3px 12px rgba(10, 132, 255, 0.3);
}

.apple-lomba-search {
  min-width: 240px;
}

.apple-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.apple-search-wrapper i {
  position: absolute;
  left: 12px;
  color: var(--apple-text-tertiary);
  font-size: 14px;
  z-index: 2;
}

.apple-search-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: rgba(60, 60, 67, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--apple-radius-pill);
  color: var(--apple-text);
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.apple-search-wrapper input:focus {
  outline: none;
  background: rgba(60, 60, 67, 0.25);
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.apple-search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.8), rgba(255, 45, 85, 0.6));
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.3);
}

.apple-search-clear:hover {
  background: linear-gradient(135deg, rgba(255, 69, 58, 1), rgba(255, 45, 85, 0.8));
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 69, 58, 0.4);
}

.apple-search-clear:active {
  transform: scale(0.95);
}

/* Lomba Section */
.apple-lomba-section {
  padding: 60px 0 100px;
}

.apple-lomba-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.apple-lomba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  padding: 20px 0;
}

/* Lomba Card */
.apple-lomba-card {
  background: linear-gradient(145deg, rgba(44, 44, 46, 0.8), rgba(30, 30, 32, 0.6));
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  cursor: pointer;
  animation: fadeInUp 0.8s ease forwards;
  animation-fill-mode: both;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.apple-lomba-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(10, 132, 255, 0.3);
  border-color: rgba(10, 132, 255, 0.4);
}

.apple-lomba-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apple-lomba-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.apple-lomba-card:hover .apple-lomba-card-image img {
  transform: scale(1.05);
}

.apple-lomba-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}

.apple-lomba-card:hover .apple-lomba-card-overlay {
  opacity: 1;
}

.apple-lomba-card-button {
  background: rgba(255, 255, 255, 0.95);
  color: #1c1c1e;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 120px;
  justify-content: center;
}

.apple-lomba-card-button:hover {
  background: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.apple-lomba-card-button i {
  font-size: 13px;
}

.apple-lomba-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  border-radius: var(--apple-radius-pill);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.apple-lomba-card-status.upcoming {
  background: rgba(10, 132, 255, 0.9);
  color: white;
  border-color: var(--apple-blue);
}

.apple-lomba-card-status.ongoing {
  background: rgba(50, 215, 75, 0.9);
  color: white;
  border-color: var(--apple-green);
}

.apple-lomba-card-status.ended {
  background: rgba(120, 120, 128, 0.9);
  color: white;
  border-color: var(--apple-gray);
}

.apple-lomba-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apple-lomba-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--apple-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: linear-gradient(135deg, var(--apple-text), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.apple-lomba-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--apple-text-secondary);
  background: rgba(60, 60, 67, 0.15);
  padding: 6px 12px;
  border-radius: var(--apple-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-lomba-meta-item i {
  color: var(--apple-blue);
  font-size: 16px;
}

.apple-lomba-card-desc {
  font-size: 15px;
  color: var(--apple-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

/* Modal Lomba */
.apple-lomba-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px;
}

.apple-lomba-modal.active {
  visibility: visible;
  opacity: 1;
}

.apple-lomba-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  cursor: pointer;
}

.apple-lomba-modal-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: linear-gradient(145deg, rgba(28, 28, 30, 0.95), rgba(44, 44, 46, 0.9));
  border-radius: 28px;
  box-shadow: 
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apple-lomba-modal.active .apple-lomba-modal-container {
  transform: scale(1) translateY(0);
}

.apple-lomba-modal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.apple-lomba-modal-close {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.apple-lomba-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.apple-lomba-modal-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.apple-lomba-modal-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apple-lomba-modal-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.apple-lomba-modal-image:hover::after {
  transform: translateX(100%);
}

.apple-lomba-modal-image::before {
  content: '\f00e'; /* Font Awesome zoom icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 10;
}

.apple-lomba-modal-image:hover::before {
  opacity: 1;
  transform: scale(1);
}

.apple-lomba-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-lomba-modal-image:hover img {
  transform: scale(1.05);
}

.apple-lomba-modal-status {
  position: absolute;
  top: 20px;
  left: 20px;
}

.apple-status-badge {
  padding: 8px 16px;
  border-radius: var(--apple-radius-pill);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.apple-status-badge.upcoming {
  background: rgba(10, 132, 255, 0.9);
  color: white;
  border-color: var(--apple-blue);
}

.apple-status-badge.ongoing {
  background: rgba(50, 215, 75, 0.9);
  color: white;
  border-color: var(--apple-green);
}

.apple-status-badge.ended {
  background: rgba(120, 120, 128, 0.9);
  color: white;
  border-color: var(--apple-gray);
}

.apple-lomba-modal-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.apple-lomba-modal-info {
  margin-bottom: 32px;
}

.apple-lomba-modal-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--apple-text);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--apple-text), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-modal-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.apple-lomba-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--apple-text-secondary);
  background: rgba(60, 60, 67, 0.15);
  padding: 10px 16px;
  border-radius: var(--apple-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-lomba-meta-item i {
  color: var(--apple-blue);
  font-size: 18px;
}

/* Timeline Section */
.apple-lomba-modal-timeline {
  margin-bottom: 24px;
}

.apple-lomba-modal-timeline h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--apple-text);
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-timeline {
  background: linear-gradient(145deg, rgba(44, 44, 46, 0.3), rgba(60, 60, 67, 0.2));
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apple-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apple-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(60, 60, 67, 0.15), rgba(70, 70, 74, 0.1));
  border-radius: 10px;
  border-left: 3px solid var(--apple-blue);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: both;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.apple-timeline-item:hover {
  background: linear-gradient(135deg, rgba(60, 60, 67, 0.25), rgba(70, 70, 74, 0.15));
  transform: translateX(4px);
  border-left-color: var(--apple-purple);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.apple-timeline-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(94, 92, 230, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 2px;
}

.apple-timeline-content {
  font-size: 14px;
  color: var(--apple-text-secondary);
  line-height: 1.5;
  flex: 1;
  font-weight: 500;
}

.apple-lomba-modal-details {
  margin-bottom: 24px;
}

.apple-lomba-modal-details h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--apple-text);
  background: linear-gradient(135deg, var(--apple-green), var(--apple-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-full-desc {
  font-size: 14px;
  color: var(--apple-text-secondary);
  line-height: 1.6;
  background: linear-gradient(145deg, rgba(44, 44, 46, 0.3), rgba(60, 60, 67, 0.2));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Formatted Description Styles */
.apple-lomba-desc-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--apple-text);
  margin: 12px 0 6px 0;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-lomba-desc-header:first-child {
  margin-top: 0;
}

.apple-lomba-desc-bold {
  font-weight: 600;
  color: var(--apple-text);
  background: rgba(10, 132, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  display: inline;
  margin: 1px 0;
}

.apple-lomba-desc-list {
  margin: 8px 0;
  padding-left: 0;
  list-style: none;
}

.apple-lomba-desc-list-item {
  position: relative;
  margin: 4px 0;
  background: rgba(60, 60, 67, 0.1);
  border-radius: 6px;
  padding: 8px 12px 8px 24px;
  border-left: 2px solid rgba(10, 132, 255, 0.4);
  font-size: 13px;
  line-height: 1.4;
  color: var(--apple-text-secondary);
  transition: all 0.2s ease;
}

.apple-lomba-desc-list-item:hover {
  background: rgba(60, 60, 67, 0.15);
  border-left-color: var(--apple-blue);
}

.apple-lomba-desc-list-item::before {
  content: '•';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--apple-blue);
  font-weight: bold;
  font-size: 12px;
}

.apple-lomba-desc-link {
  color: var(--apple-blue);
  text-decoration: none;
  background: rgba(10, 132, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(10, 132, 255, 0.2);
  transition: all 0.3s ease;
  word-break: break-all;
  display: inline;
  margin: 2px 0;
  font-size: 13px;
}

.apple-lomba-desc-link:hover {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--apple-blue);
  transform: translateY(-1px);
}

.apple-lomba-desc-hashtag {
  color: var(--apple-purple);
  font-weight: 600;
  background: rgba(191, 90, 242, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  margin: 0 1px;
  display: inline;
  font-size: 13px;
}

/* Modal Actions */
.apple-lomba-modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Loading, Error, and Empty States */
.apple-lomba-loading,
.apple-lomba-error,
.apple-lomba-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.apple-lomba-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 16px;
}

.apple-lomba-error i,
.apple-lomba-empty i {
  font-size: 48px;
  color: var(--apple-text-tertiary);
  margin-bottom: 16px;
}

.apple-lomba-error h3,
.apple-lomba-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--apple-text);
  margin-bottom: 8px;
}

.apple-lomba-error p,
.apple-lomba-empty p {
  font-size: 16px;
  color: var(--apple-text-secondary);
  margin-bottom: 20px;
}

/* Back to Top Button */
.apple-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 30, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--apple-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.apple-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.apple-back-to-top:hover {
  background: rgba(60, 60, 65, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Floating elements */
.apple-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 15s infinite ease-in-out;
  opacity: 0.4;
}

.apple-float-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.3), rgba(255, 204, 2, 0.1));
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.apple-float-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(94, 92, 230, 0.1));
  bottom: 15%;
  right: 10%;
  animation-delay: -5s;
}

.apple-float-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(191, 90, 242, 0.15), rgba(94, 92, 230, 0.05));
  top: 60%;
  right: 20%;
  animation-delay: -10s;
}

/* Animations */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -15px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Performance and Accessibility Enhancements */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .apple-lomba-card,
  .apple-lomba-modal-container,
  .apple-lomba-hero-content {
    border-width: 2px;
    border-color: currentColor;
  }
  
  .apple-lomba-card-button,
  .apple-filter-tab {
    border: 2px solid currentColor;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .apple-lomba-modal-container,
  .apple-image-zoom-container {
    animation: none !important;
  }
  
  .apple-lomba-card-image img,
  .apple-lomba-modal-image img {
    transition: none !important;
  }
  
  .apple-lomba-card-image::after,
  .apple-lomba-modal-image::after {
    display: none !important;
  }
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--apple-blue);
  color: white;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 10001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced focus indicators */
.apple-lomba-card:focus-within {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

/* Image loading states */
.apple-lomba-card-image img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

.apple-lomba-card-image img.loaded {
  animation: none;
  background: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Dark mode image loading */
@media (prefers-color-scheme: dark) {
  .apple-lomba-card-image img[loading="lazy"] {
    background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
  }
}

/* Final polish - smooth transitions */
* {
  box-sizing: border-box;
}

*:focus {
  outline-offset: 2px;
}

/* Improve button accessibility */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Toast notification styling for future use */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 44, 46, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .apple-lomba-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .apple-lomba-hero-title {
    font-size: 52px;
  }
  
  .apple-lomba-filter-container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .apple-lomba-search {
    min-width: auto;
  }
  
  .apple-filter-tab {
    padding: 8px 10px;
    font-size: 11px;
    max-width: 80px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .apple-lomba-hero {
    padding: 120px 20px 40px;
  }
  
  .apple-lomba-hero-title {
    font-size: 42px;
  }
  
  .apple-lomba-hero-content {
    padding: 30px 24px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .apple-lomba-filter {
    padding: 20px 0;
    position: static;
  }
  
  .apple-lomba-filter-tabs {
    justify-content: center;
    gap: 6px;
  }
  
  .apple-filter-tab {
    padding: 6px 8px;
    min-height: 32px;
    max-width: 70px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 10px;
  }
  
  .apple-search-clear {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .apple-lomba-hero-title {
    font-size: 36px;
  }
  
  .apple-lomba-hero-subtitle {
    font-size: 16px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .apple-lomba-filter-tabs {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  
  .apple-filter-tab {
    padding: 8px 4px;
    font-size: 10px;
    min-height: 36px;
    max-width: none;
    flex-direction: column;
    gap: 2px;
  }
  
  .apple-filter-tab i {
    font-size: 14px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 9px;
    line-height: 1;
  }
  
  .apple-lomba-card-content {
    padding: 16px;
  }
  
  .apple-lomba-modal-content {
    padding: 16px;
  }
  
  .apple-lomba-modal-info h2 {
    font-size: 20px;
  }
  
  .apple-lomba-modal-image {
    height: 160px;
  }
}

/* Additional Responsive Improvements for Better Mobile Experience */

/* Extra Small Devices (phones, < 576px) */
@media (max-width: 575px) {
  /* Hero Section - Ultra Small */
  .apple-lomba-hero {
    padding: 120px 16px 40px;
    min-height: 50vh;
  }
  
  .apple-lomba-hero-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .apple-lomba-hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .apple-lomba-hero-subtitle {
    font-size: 16px;
    margin-top: 12px;
  }
  
  /* Grid Ultra Responsive */
  .apple-lomba-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }
  
  .apple-lomba-card {
    min-height: 380px;
    border-radius: 16px;
  }
  
  .apple-lomba-card-image {
    height: 200px;
    border-radius: 16px 16px 0 0;
  }
  
  /* Filter Tabs Stack in Grid */
  .apple-lomba-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }
  
  .apple-filter-tab {
    width: 100%;
    padding: 10px 6px;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
  }
  
  .apple-filter-tab i {
    font-size: 16px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
  }
  
  /* Modal Ultra Small */
  .apple-lomba-modal-container {
    width: 95vw;
    max-height: 85vh;
    margin: 20px auto;
    border-radius: 16px;
  }
  
  .apple-lomba-modal-image {
    height: 140px;
  }
  
  .apple-lomba-modal-info h2 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .apple-lomba-modal-info p {
    font-size: 13px;
  }
  
  /* Timeline Ultra Compact */
  .apple-timeline-item {
    padding: 4px 6px;
    min-width: auto;
  }
  
  .apple-timeline-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  
  .apple-timeline-content {
    font-size: 11px;
    font-weight: 500;
  }
}

/* Improved Touch Interactions */
@media (pointer: coarse) {
  .apple-filter-tab,
  .apple-lomba-card-button,
  .apple-lomba-modal-close,
  .apple-search-clear {
    min-height: 44px; /* Apple's recommended touch target size */
  }
  
  .apple-filter-tab {
    padding: 10px 8px;
  }
  
  .apple-lomba-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .apple-lomba-card:active {
    transform: scale(0.98);
  }
  
  .apple-filter-tab:active {
    transform: scale(0.96);
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .apple-lomba-hero {
    min-height: 70vh;
    padding: 100px 20px 40px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .apple-lomba-card {
    min-height: 360px;
  }
  
  .apple-lomba-card-image {
    height: 180px;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .apple-lomba-card,
  .apple-lomba-modal-container,
  .apple-lomba-hero-content {
    border-width: 0.5px;
  }
  
  .apple-lomba-card-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .apple-lomba-card,
  .apple-lomba-hero-container,
  .apple-float,
  .apple-lomba-loading-spinner {
    animation: none !important;
    transition: none !important;
  }
  
  .apple-lomba-card:hover {
    transform: none;
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .apple-lomba-card {
    background: linear-gradient(135deg, 
      rgba(44, 44, 46, 0.9) 0%,
      rgba(28, 28, 30, 0.85) 100%);
    border-color: rgba(255, 255, 255, 0.08);
  }
  
  .apple-lomba-modal-container {
    background: linear-gradient(135deg,
      rgba(44, 44, 46, 0.95) 0%,
      rgba(28, 28, 30, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .apple-lomba-hero-content {
    background: linear-gradient(135deg, 
      rgba(44, 44, 46, 0.6), 
      rgba(28, 28, 30, 0.4));
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* Performance Optimizations */
.apple-lomba-card-image img,
.apple-lomba-modal-image img {
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.apple-lomba-card {
  contain: layout style paint;
}

.apple-lomba-modal-container {
  contain: layout style;
}

/* Loading State Improvements */
.apple-lomba-loading {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.apple-lomba-loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--apple-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Focus Improvements for Accessibility */
.apple-filter-tab:focus-visible,
.apple-lomba-card-button:focus-visible,
.apple-lomba-modal-close:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.apple-search-wrapper input:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: -2px;
}

/* Print Styles */
@media print {
  .apple-lomba-hero,
  .apple-lomba-filter,
  .apple-lomba-modal_container,
  .apple-image-zoom-modal {
    display: none !important;
  }
  
  .apple-lomba-grid {
    display: block !important;
  }
  
  .apple-lomba-card {
    break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Image Zoom Modal Styles */
.apple-image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-image-zoom-modal.active {
  opacity: 1;
  visibility: visible;
}

.apple-image-zoom-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-image-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.apple-image-zoom-close {
  position: absolute;
  top: -50px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  z-index: 10001;
}

.apple-image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.apple-image-zoom-close:active {
  transform: scale(0.95);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Image Zoom */
@media (max-width: 768px) {
  .apple-image-zoom-container {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .apple-image-zoom-close {
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .apple-image-zoom-container {
    max-width: 98vw;
    max-height: 80vh;
  }
  
  .apple-image-zoom-close {
    top: -35px;
    right: 5px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .apple-image-zoom-container img {
    border-radius: 8px;
  }
}

/* Image Zoom Loading State */
.apple-image-zoom-modal.loading .apple-image-zoom-container img {
  opacity: 0;
}

.zoom-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
}

.zoom-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.apple-image-zoom-modal:not(.loading) .zoom-loading {
  display: none;
}

/* Enhanced Image Zoom Interactions */
.apple-image-zoom-container img {
  cursor: grab;
  user-select: none;
}

.apple-image-zoom-container img:active {
  cursor: grabbing;
}

/* Prevent text selection during zoom */
.apple-image-zoom-modal.active {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Poster Button Styling */
.apple-poster-button {
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15), rgba(94, 92, 230, 0.1)) !important;
  border: 1px solid rgba(10, 132, 255, 0.3) !important;
}

.apple-poster-button:hover {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(94, 92, 230, 0.15)) !important;
  border-color: rgba(10, 132, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.2);
}

.apple-poster-button i {
  color: var(--apple-blue) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .apple-lomba-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .apple-lomba-hero-title {
    font-size: 52px;
  }
  
  .apple-lomba-filter-container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .apple-lomba-search {
    min-width: auto;
  }
  
  .apple-filter-tab {
    padding: 8px 10px;
    font-size: 11px;
    max-width: 80px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .apple-lomba-hero {
    padding: 120px 20px 40px;
  }
  
  .apple-lomba-hero-title {
    font-size: 42px;
  }
  
  .apple-lomba-hero-content {
    padding: 30px 24px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .apple-lomba-filter {
    padding: 20px 0;
    position: static;
  }
  
  .apple-lomba-filter-tabs {
    justify-content: center;
    gap: 6px;
  }
  
  .apple-filter-tab {
    padding: 6px 8px;
    min-height: 32px;
    max-width: 70px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 10px;
  }
  
  .apple-search-clear {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .apple-lomba-hero-title {
    font-size: 36px;
  }
  
  .apple-lomba-hero-subtitle {
    font-size: 16px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .apple-lomba-filter-tabs {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  
  .apple-filter-tab {
    padding: 8px 4px;
    font-size: 10px;
    min-height: 36px;
    max-width: none;
    flex-direction: column;
    gap: 2px;
  }
  
  .apple-filter-tab i {
    font-size: 14px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 9px;
    line-height: 1;
  }
  
  .apple-lomba-card-content {
    padding: 16px;
  }
  
  .apple-lomba-modal-content {
    padding: 16px;
  }
  
  .apple-lomba-modal-info h2 {
    font-size: 20px;
  }
  
  .apple-lomba-modal-image {
    height: 160px;
  }
}

@media (max-width: 575px) {
  /* Hero Section - Ultra Small */
  .apple-lomba-hero {
    padding: 120px 16px 40px;
    min-height: 50vh;
  }
  
  .apple-lomba-hero-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .apple-lomba-hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .apple-lomba-hero-subtitle {
    font-size: 16px;
    margin-top: 12px;
  }
  
  /* Grid Ultra Responsive */
  .apple-lomba-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }
  
  .apple-lomba-card {
    min-height: 380px;
    border-radius: 16px;
  }
  
  .apple-lomba-card-image {
    height: 200px;
    border-radius: 16px 16px 0 0;
  }
  
  /* Filter Tabs Stack in Grid */
  .apple-lomba-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }
  
  .apple-filter-tab {
    width: 100%;
    padding: 10px 6px;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
  }
  
  .apple-filter-tab i {
    font-size: 16px;
  }
  
  .apple-filter-tab .tab-text {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
  }
  
  /* Modal Ultra Small */
  .apple-lomba-modal-container {
    width: 95vw;
    max-height: 85vh;
    margin: 20px auto;
    border-radius: 16px;
  }
  
  .apple-lomba-modal-image {
    height: 140px;
  }
  
  .apple-lomba-modal-info h2 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .apple-lomba-modal-info p {
    font-size: 13px;
  }
  
  /* Timeline Ultra Compact */
  .apple-timeline-item {
    padding: 4px 6px;
    min-width: auto;
  }
  
  .apple-timeline-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  
  .apple-timeline-content {
    font-size: 11px;
    font-weight: 500;
  }
}

/* Improved Touch Interactions */
@media (pointer: coarse) {
  .apple-filter-tab,
  .apple-lomba-card-button,
  .apple-lomba-modal-close,
  .apple-search-clear {
    min-height: 44px; /* Apple's recommended touch target size */
  }
  
  .apple-filter-tab {
    padding: 10px 8px;
  }
  
  .apple-lomba-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .apple-lomba-card:active {
    transform: scale(0.98);
  }
  
  .apple-filter-tab:active {
    transform: scale(0.96);
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .apple-lomba-hero {
    min-height: 70vh;
    padding: 100px 20px 40px;
  }
  
  .apple-lomba-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .apple-lomba-card {
    min-height: 360px;
  }
  
  .apple-lomba-card-image {
    height: 180px;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .apple-lomba-card,
  .apple-lomba-modal-container,
  .apple-lomba-hero-content {
    border-width: 0.5px;
  }
  
  .apple-lomba-card-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .apple-lomba-card,
  .apple-lomba-hero-container,
  .apple-float,
  .apple-lomba-loading-spinner {
    animation: none !important;
    transition: none !important;
  }
  
  .apple-lomba-card:hover {
    transform: none;
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .apple-lomba-card {
    background: linear-gradient(135deg, 
      rgba(44, 44, 46, 0.9) 0%,
      rgba(28, 28, 30, 0.85) 100%);
    border-color: rgba(255, 255, 255, 0.08);
  }
  
  .apple-lomba-modal-container {
    background: linear-gradient(135deg,
      rgba(44, 44, 46, 0.95) 0%,
      rgba(28, 28, 30, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .apple-lomba-hero-content {
    background: linear-gradient(135deg, 
      rgba(44, 44, 46, 0.6), 
      rgba(28, 28, 30, 0.4));
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* Performance Optimizations */
.apple-lomba-card-image img,
.apple-lomba-modal-image img {
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.apple-lomba-card {
  contain: layout style paint;
}

.apple-lomba-modal-container {
  contain: layout style;
}

/* Loading State Improvements */
.apple-lomba-loading {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.apple-lomba-loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--apple-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Focus Improvements for Accessibility */
.apple-filter-tab:focus-visible,
.apple-lomba-card-button:focus-visible,
.apple-lomba-modal-close:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.apple-search-wrapper input:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: -2px;
}

/* Print Styles */
@media print {
  .apple-lomba-hero,
  .apple-lomba-filter,
  .apple-lomba-modal_container,
  .apple-image-zoom-modal {
    display: none !important;
  }
  
  .apple-lomba-grid {
    display: block !important;
  }
  
  .apple-lomba-card {
    break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Image Zoom Modal Styles */
.apple-image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-image-zoom-modal.active {
  opacity: 1;
  visibility: visible;
}

.apple-image-zoom-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-image-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.apple-image-zoom-close {
  position: absolute;
  top: -50px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  z-index: 10001;
}

.apple-image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.apple-image-zoom-close:active {
  transform: scale(0.95);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Image Zoom */
@media (max-width: 768px) {
  .apple-image-zoom-container {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .apple-image-zoom-close {
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .apple-image-zoom-container {
    max-width: 98vw;
    max-height: 80vh;
  }
  
  .apple-image-zoom-close {
    top: -35px;
    right: 5px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .apple-image-zoom-container img {
    border-radius: 8px;
  }
}

/* Image Zoom Loading State */
.apple-image-zoom-modal.loading .apple-image-zoom-container img {
  opacity: 0;
}

.zoom-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
}

.zoom-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.apple-image-zoom-modal:not(.loading) .zoom-loading {
  display: none;
}

/* Enhanced Image Zoom Interactions */
.apple-image-zoom-container img {
  cursor: grab;
  user-select: none;
}

.apple-image-zoom-container img:active {
  cursor: grabbing;
}

/* Prevent text selection during zoom */
.apple-image-zoom-modal.active {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}