/* Eski sitede jQuery eklentilerinin yaptığı işlerin CSS karşılıkları. */

/* jquery.sticky: menü sayfa kaydırılınca üstte sabit kalır */
.navbar.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* custom.js: yükleme göstergesi 1 sn sonra kaybolur */
.loader {
  transition: opacity 0.4s ease;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader.is-gone {
  display: none;
}

/* Fotoğraf büyütme katmanı (magnific-popup ve data-enlargable yerine) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.8);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: zoom-out;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.lightbox.enlargable {
  background-color: rgba(0, 0, 0, 0.5);
}

.cursor-pointer {
  cursor: pointer;
}

/* Ana sayfa: katılım geri sayımı (eski Home/Index.cshtml içindeki <style>) */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: Arial, sans-serif;
}

.countdown-item {
  text-align: center;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 10px;
  padding: 20px;
  width: 90px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.countdown-number {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.countdown-label {
  font-size: 16px;
  color: #666;
}

/* Ana sayfa: kullanıcının kendi fotoğrafları (eski Home/_UserPhotos.cshtml içindeki <style>) */
.my-photos-note {
  text-align: center;
  margin: -10px auto 30px;
  max-width: 720px;
  font-size: 1.05rem;
  color: #555;
}

.my-photos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.my-photo-card {
  width: 280px;
  border: 1px solid #d0d9e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.my-photo-frame {
  display: block;
  height: 220px;
  background: #f2f4f6;
  position: relative;
}

.my-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tarayıcının çözemediği biçimler (ör. iPhone .heic) için yedek kutu */
.my-photo-fallback {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 15px;
  color: #6b7b8a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.my-photo-fallback i {
  font-size: 34px;
  margin-bottom: 8px;
}

.my-photo-status {
  padding: 12px 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.my-photo-status i {
  margin-right: 6px;
}

.my-photo-status.is-live {
  background: #e8f5ec;
  color: #1e7a3c;
}

.my-photo-status.is-waiting {
  background: #fdf3e0;
  color: #96601a;
}

.my-photo-status.is-cancel {
  background: #fbeaea;
  color: #9a3232;
}

.my-photo-status.is-neutral {
  background: #eef1f4;
  color: #55636f;
}

.my-photo-status small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 4px;
}

.my-photos-actions {
  text-align: center;
  margin-top: 30px;
}

.my-photos-actions a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  color: #fff !important;
  background: #333;
  font-weight: 600;
  text-decoration: none;
}

.my-photos-empty {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  color: #555;
  font-size: 1.05rem;
}

/* Önceki yarışmalar: fotoğraf ızgarası (eski Competetion/Index.cshtml içindeki <style>) */
.old-contest-main {
  margin-top: 30px;
}

.old-contest-grid {
  text-align: center;
}

.old-contest-grid img {
  width: 250px;
  height: 250px;
  cursor: pointer;
  transition: opacity 0.5s ease-in-out;
  margin: 5px;
}

.old-contest-grid img:hover {
  opacity: 0.8;
}

/* İletişim sayfası (eski Page/Contact.cshtml içindeki <style>) */
.contact-page ol.breadcrumb li {
  text-transform: inherit;
}

/* ---------- Dar ekranlar ---------- */

/* Ana sayfa geri sayımı: dört kutu telefon genişliğine sığar (eski sitede 390px altında taşıyordu). */
@media (max-width: 479.98px) {
  .countdown-container {
    gap: 8px;
    padding: 0 10px;
  }

  .countdown-item {
    flex: 1 1 0;
    width: auto;
    max-width: 90px;
    padding: 14px 4px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .countdown-label {
    display: block;
    font-size: 14px;
  }
}

/* Çerez onay kutusu (Klaro) dar ekranda ekran dışına taşmasın. */
@media (max-width: 1023px) {
  .klaro .cookie-notice:not(.cookie-modal-notice),
  .klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    box-sizing: border-box;
    max-width: 100vw;
  }
}
