:root {
    --main-font: 'Cinzel', serif;
    --active-color: #5178b5;
}


body {
    margin: 0;
    font-family: var(--main-font);
    background-color: #111;
    color: #f2f2f2;
}

.whatsapp-desktop {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: none;
}

.whatsapp-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.whatsapp-icon {
    width: 42px;
    height: 42px;
    filter: grayscale(0.2) brightness(1.2);
}

@media (min-width: 768px) {
    .whatsapp-desktop {
        display: block;
    }
}

@media (max-width: 767px) {
    .whatsapp-mobile {
        display: block;
    }
}

.content {
    padding: 30px 20px 200px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.separator {
    width: 1px;
    height: 32px;
    background-color: #444;
    margin: 0 10px;
}

.mobile-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
    width: 80%;
}

.mobile-filters select {
    padding: 10px;
    font-size: 18px;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    font-family: var(--main-font);
}

@media (max-width: 768px) {
    .filters-wrapper {
        display: none;
    }

    .mobile-filters {
        display: flex;
    }

    .separator {
        display: none;
    }
}

.category-buttons button {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.category-buttons button:hover {
    filter: brightness(1.2);
}

.category-buttons button.active {
    color: #fff;
    box-shadow: 0 0 10px var(--active-color);
    background-color: var(--active-color);
    border-color: var(--active-color);
}

.class-buttons button.all.active,
.class-buttons button.all:hover {
    background-color: #3a5c91;
    border-color: #3a5c91;
    box-shadow: 0 0 10px #3a5c91aa;
}

.item-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.item-group {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 240px;
    box-shadow: 0 0 10px #00000044;
}

.item-group h3 {
    font-size: 15px;
    font-weight: normal;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.item-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-group li {
    margin: 8px 0;
    font-size: 16px;
    text-align: center;
    padding: 6px 12px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .loading-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
  }

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #333;
    border-top: 5px solid #3a5c91;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.glowing {
    background-color: #3b2e00;
    color: #ffcc66;
    border: 1px solid #ffaa00;
    box-shadow: 0 0 8px #ffaa00aa, 0 0 16px #ffaa00aa;
    animation: glow-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 6px #ffaa00aa, 0 0 12px #ffaa00aa;
        background-color: #3b2e00;
    }

    100% {
        box-shadow: 0 0 12px #ffcc33cc, 0 0 24px #ffcc33cc;
        background-color: #4a3800;
    }
}

#welcome-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.popup-content {
    background-color: #1c1c1c;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 12px #000000aa;
}

@media (max-width: 600px) {
    .popup-content {
        width: 90%;
        margin: 0 20px;
        padding: 24px;
        font-size: 16px;
    }
}

.popup-content .popup-logo {
    max-width: 120px;
    margin: 0 auto 15px auto;
    display: block;
}

.popup-content h2 {
    font-size: 20px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.popup-content a {
    color: #00bfff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.popup-content a:hover {
    color: #66ccff;
}

.popup-content .dont-show {
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
}

.popup-content button {
    padding: 8px 20px;
    font-size: 16px;
    border: none;
    background-color: #3a5c91;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #2c456b;
}

#welcome-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

#welcome-popup.hidden {
    opacity: 0;
    pointer-events: none;
}


.popup-content {
    background-color: #1c1c1c;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 12px #000000aa;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-logo {
    max-width: 120px;
    margin: 0 auto 15px auto;
    display: block;
}

.popup-content h2 {
    font-size: 20px;
    color: #00bfff;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.popup-content a {
    color: #00bfff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.popup-content a:hover {
    color: #66ccff;
}

.popup-content .dont-show {
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
}

.popup-content button {
    padding: 8px 20px;
    font-size: 16px;
    font-family: 'Cinzel', serif;
    border: none;
    background-color: #3a5c91;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #2c456b;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

.dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.dont-show input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dont-show input[type="checkbox"]::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dont-show input[type="checkbox"]:checked {
    background-color: #3a5c91;
    border-color: #3a5c91;
}

.dont-show input[type="checkbox"]:checked::after {
    opacity: 1;
}

.bottom-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001; /* loading-screen'den yüksek olmalı */
    padding: 0;
    background-color: transparent;
  }
  
  .banner-image {
    max-height: 150px;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0; /* üst köşeleri yumuşat */
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4); /* dış gölge */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Hover efekti */
  .bottom-banner a:hover .banner-image {
    transform: scale(1.015);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  }

  @media (max-width: 767px) {
    .bottom-banner {
      display: none;
    }
  }

/* === DESKTOP === */
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px 10px;
    background-color: #1b1b1b;
    gap: 20px;
    position: relative;
  }

  :root {
    --main-logo-size: 160px;
    --sponsor-logo-size: calc(var(--main-logo-size) * 0.30); 
  }
  
  .logo-container {
    width: var(--main-logo-size);
    height: var(--main-logo-size);
    perspective: 1000px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }

  .logo-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: flipBackAndForth 6s infinite linear;
  }
  
  
  .logo {
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .logo.back {
    transform: rotateY(180deg);
  }

  .sponsorship-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: end;
  }
  
  .sponsorship-section .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
  }
  
  .sponsor-slider {
    width: calc(var(--main-logo-size) *1.25); /* aynı genişlik */
    height: var(--sponsor-logo-size); /* otomatik yükseklik */
    overflow: hidden;
    position: relative;
  }
  
  .slider-track img {
    width: var(--sponsor-logo-size); /* 4 logo sığacak şekilde */
    height: var(--sponsor-logo-size);
    object-fit: contain;
    flex-shrink: 0;
    padding: 0px 3px;
  }

  .sponsor-slider a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
  
  .slider-track {
    display: flex;
    animation: slidePingPong 5s infinite linear alternate;
  }
  
  @keyframes slidePingPong {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  
  /* === MOBILE === */
  @media (max-width: 768px) {
    .header-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      justify-items: center;
      align-items: center;
    }
  
    .left-space,
    .sponsorship-section {
      display: none !important;
    }
  
    .logo-container {
      width: 160px;
      height: 160px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
      text-align: center;
    }
  
    .logo-flip {
      width: 100%;
      height: 100%;
      position: relative;
    }
  
    .logo {
      max-width: 160px;
      height: auto;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  
  .left-space {
    height: var(--main-logo-size);
    display: flex;
    align-items: center;
    padding-left: 16px;
    box-sizing: border-box;
    color: white;
    justify-self: start;
    gap: 10px;
  }
  
  .left-icon {
    height: calc(var(--main-logo-size) * 0.65);
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .left-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }
  