[data-theme=dark] {
    --bs-secondary-bg: #151515;
    --bs-secondary-bg-rgb: 21, 21, 21;
}

body[data-theme=dark] {
    background-color: #292C31;
}
/* Başlangıçta hepsi açık */
.nav-item-btn {
  transition: all 0.4s ease;
}

/* Kapatıldığında gizlenecek */
.nav-item-btn.hidden {
  opacity: 0;
  transform: scale(0.8) translateX(-20px);
  pointer-events: none;
}

/* Navbar grubu içindeki tüm öğelere üst-alt padding */
.home-navbar-fix > .d-flex {
  padding-top: 5px;
  padding-bottom: 5px;
  gap: 1rem; /* yatay boşluk */
}

/* Butonlar hizalansın */
#header-buttons {
  align-items: center;
}

/* Sunucu durumu ortalansın */

/* Kullanıcı menüsüne dikey denge */
.navbar-nav {
  align-items: center;
}

#header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger butonu diğer butonlarla aynı boyda olsun */
.hamburger-btn {
    width: 42.5px!important;
    height: 42.5px!important;
    min-width: 42.5px!important;
    padding: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255,255,255,0.05);
}

/* Simgesi butona göre ortalı kalsın */
.hamburger-btn i {
    font-size: 18px;
	
}

/* Genel buton ayarları */
.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255,255,255,0.05);
}

/* Neon aura efekti */
.custom-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, currentColor 0%, transparent 50%);
    opacity: 0.15;
    animation: breathe 2.5s ease-in-out infinite;
    z-index: -1;
    filter: blur(8px);
}

/* Hover dalgalanma efekti */
.custom-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
    z-index: 0;
}

.custom-btn:hover::after {
    left: 100%;
}

/* Hover animasyon */
.custom-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
}
/* Buton gizlenme/çıkma animasyonu */
.custom-btn {
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: left center;
}

.custom-btn.hidden {
  transform: scale(0.5) translateX(-40px) rotate(-15deg);
  opacity: 0;
  pointer-events: none;
}

/* Discord */
.discord-btn {
    background-color: #5865F2;
    color: #fff;
	 max-height:42.5px;
}
/* Destek */
.destek-btn {
    background-color: #e53935;
    color: #fff;
	max-height:42.5px;
}

/* Ar-Ge */
.arge-btn {
    background-color: #FFC107;
    color: #000;
}

/* Parlama animasyonu */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

  .home-navbar-fix {
    width: 100%;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 999;
}

.top-navbar .server-status {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #198754 !important; /* Bootstrap 'success' rengi */
}

.valoris-status {
    padding: 10px 18px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid;
    border-radius: 8px;
    text-align: center;
    max-width: fit-content;
    text-transform: uppercase;
    color: white;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
    animation: pulseShadow 2.5s infinite ease-in-out;
}

.valoris-status.online {
    border-color: #00ff88;
    box-shadow: 0 0 12px #00ff88aa;
    animation: glowPulseGreen 2.5s infinite;
}

.valoris-status.offline {
    border-color: #e74c3c;
    box-shadow: 0 0 12px #e74c3c99;
    animation: glowPulseRed 2.5s infinite;
}

.status-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Animasyonlar */
@keyframes glowPulseGreen {
    0%   { box-shadow: 0 0 12px #00ff88aa; }
    50%  { box-shadow: 0 0 24px #00ff88; }
    100% { box-shadow: 0 0 12px #00ff88aa; }
}

@keyframes glowPulseRed {
    0%   { box-shadow: 0 0 12px #e74c3c99; }
    50%  { box-shadow: 0 0 24px #ff2d2d; }
    100% { box-shadow: 0 0 12px #e74c3c99; }
}

.content {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

a {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.home-header {
     position: relative;
    height: 97vh;
    min-height: 450px;
    overflow: hidden;
	
}

.home-header::after {
    background-color:#10141aa6;
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    content: "";
    border-bottom: 3px solid var(--bs-primary);
	
}
.logoo {
  max-width: 425px;
  margin-bottom: 0; /* prevent layout overlap */
  margin-right: 25px;
  position: relative;
  z-index: 999;
  -webkit-animation-name: logo;
  animation-name: logo;
  -webkit-animation-duration: 5s;
  animation-duration: 5s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  will-change: transform;
}

@-webkit-keyframes logo {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 0;
    padding: 10px 0;
    overflow: visible;
    z-index: 99;
    height: auto;
    margin-right: 8px;
	
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    height: 240px; /* Set to desired fixed height based on button size */
    position: relative;
    z-index: 15;
    perspective: 1000px;
}
#copy-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1e1e1e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: opacity 0.4s ease;
  z-index: 1000;
}

#copy-toast.show {
  opacity: 1;
}
.carousel-track {
    display: flex;
    /* Smooth slide with subtle fade */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease-out;
    will-change: transform, opacity;
    height: 100%; /* Make sure it doesn't expand unexpectedly */
    position: relative;
    z-index: 15;
    transform-style: preserve-3d;
    overflow: visible;
    opacity: 1;
}

/* Individual button styling */
.transparent-button {
    flex: 0 0 auto;
    margin-top: 10px;
    width: 170px;
    margin-right: 50px;
    text-align: center;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    /* Subtle lift on hover */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    transform-style: preserve-3d;
}
.transparent-button span {
    font-weight: bold;
    font-size: 17px;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Image inside button */
.transparent-button img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 190px;
}

/* Hover effect */
.transparent-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.transparent-button.active {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.transparent-button img[alt="announcement"] {
    margin-left:30px;
}
.transparent-button img[alt="wiki"] {
    margin-top:30px;
}

/* Arrow buttons */
.arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.0);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
         z-index: 9999;
}
.arrow img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.arrow:hover img {
    transform: scale(1.15) rotate(5deg);
}

.arrow:active img {
    transform: scale(0.95);
}

.arrow.left {
    left: -80px;
	
}

.arrow.right {
    right: -50px;
}

/* Optional: Remove unused or problematic styles */

.navbar-brand img {
    max-height: 75px;
    max-width: 150px;
}

.navbar .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.navbar .nav-item .nav-link {
    --bs-nav-link-color: var(--bs-body-color);
    text-transform: uppercase;
    font-weight: bold;
}

.navbar .nav-item .nav-link.active,
.navbar-socials .nav-link {
    color: var(--bs-primary);
}

.navbar .nav-item .dropdown-toggle::after {
    border-top: 0.3em solid var(--bs-primary);
}

.user-nav-link {
    display: flex;
    align-items: center;
}

.user-nav-link img {
    height: 24px;
}

/* IP kopyalama bildirimi */
.copy-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.copy-popup.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.copy-popup .card {
  max-width: 19.8rem;
  width: 80%;
  background: radial-gradient(
    ellipse at right top,
    #ff0000 0%,
    #151419 47%,
    #151419 100%
  );
  border-radius: 0.825rem;
  padding: 1.375rem;
  text-align: center;
  color: #fff;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
}

.copy-popup.show .card {
  animation: popup-bounce 0.6s ease forwards;
}

@keyframes popup-bounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.copy-popup .close {
  position: absolute;
  top: 0.825rem;
  right: 0.825rem;
  width: 1.375rem;
  cursor: pointer;
  color: #d9d9d9;
  opacity: 0;
  transform: rotate(-180deg);
}


.copy-popup .icon {
  width: 2.75rem;
  opacity: 0;
  transform: scale(0.8);
  color: #ff0000;
}

.copy-popup.show .close {
  animation: close-rotate 0.6s ease forwards 0.4s;
}

.copy-popup.show .icon {
  animation: icon-pop 0.6s ease forwards 0.3s, icon-pulse 1.6s ease-in-out infinite 1s;
}

@keyframes icon-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes close-rotate {
  from {
    transform: rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: rotate(0deg);
    opacity: 1;
  }
}

.copy-popup h3 {
  margin-top: 0.55rem;
  margin-bottom: 0.44rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.copy-popup p {
  color: #cccccc;
  font-size: 0.96rem;
}

.copy-popup .btn-second {
  background: #222127;
  color: #fff;
  border-radius: 0.275rem;
  padding: 0.44rem 1.375rem;
  display: inline-block;
  margin-top: 1.1rem;
  transition: background 0.3s ease;
}

.copy-popup .btn-second:hover {
  background: #ff0000;
  color: #111;
}

/* News posts */
.news-post {
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
    transition-delay: var(--delay, 0s);
    background-color: var(--bs-body-bg);
    color: #fff;
}

.news-post.animate {
    opacity: 0;
    transform: translateY(30px);
}

.news-post.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.news-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.news-post .bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.news-post:hover .bg-image {
    transform: scale(1.05) rotate(.5deg);
    filter: brightness(1.1);
}

.news-post .overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 1rem;
    transform: translateY(65%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-post.show .overlay,
.news-post:hover .overlay {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

.news-post .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.news-post .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-post .title a:hover {
    text-decoration: underline;
}

.news-post .excerpt {
    font-size: .9rem;
    margin-bottom: .5rem;
}

.news-post .date {
    font-size: .8rem;
    opacity: 0.85;
}

#news-section {
    animation: fadeIn 1s ease both;
    padding: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

#news-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
   
}

/* Hero cover for news page */
.news-cover {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.news-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.news-cover h1 {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

/* Snap scrolling between sections */
.segment-scroll {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth;
}

.segment-scroll > .snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* Snap scrolling between sections */
.segment-scroll {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
}

.segment-scroll > .snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
}

footer.footer {
    position: relative;
    margin-top: 2rem;
    clear: both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideOutReverse {
  0% {
    transform: translateX(0);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 123, 0.4);
  }
  20% {
    transform: translateX(-10px) scale(0.98);
  }
  60% {
    transform: translateX(25px) scale(1.03);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-200%) scale(0.95);
    opacity: 0;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

/* Generic animation for elements revealed on scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
	.custom-btn {
     display: none !important;
		}
.server-status {
  display: none !important;
}

       .navbar-nav.me-auto span {
        display: none !important;
    }
 .content {
        margin-bottom: 0 !important;
    }
	
    /* Tema butonunu tamamen gizle */
    .theme-selector,
    .navbar-nav li .theme-selector,
    .navbar-nav li button[title*="tema"],
    .navbar-nav li button[aria-label*="tema"] {
        display: none !important;
    }

    /* Giriş ve kayıt butonlarını yan yana hizala */
      #navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background-color: #1a1a1a; /* isteğe göre değiştir */
        z-index: 9999;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav {
      
        align-items: flex-start !important;
        gap: 0.5rem;
    }

   

  
	.navbar-nav {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0;
        flex: 1;
        text-align: center;
		
    }

    .navbar-nav .nav-link {
        padding: 0.2rem 0.2rem;
        font-size: 15px;
    }
	html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .home-header {
        min-height: 91vh !important;
		margin-right:-25px;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }
	.logoo {
        max-width: 250px;
         margin-left: 3px;
		margin-top: 50px;
        position: relative;
        z-index: 10;
    }

    .carousel-container {
        margin-top: 50px;
		margin-right:1vh;
        padding: 0 15px;
        max-width: 45%;
        height: auto;
    }

    .carousel-viewport {
        height: 200px;
    }

    .transparent-button {
        width: 165px;
        margin-right: 10px;
    }

    .transparent-button img {
        max-height: 500px;
    }

    .transparent-button span {
        font-size: 12px;
        letter-spacing: 0.3px;
    }
	.transparent-button img[alt="forum"] {
    margin-left:5px;
}
   .arrow {
        width: 40px;
        height: 60px;
        padding: 0;
        background: transparent;
        top: 50%;
        transform: translateY(-50%);
    }
    .arrow img {
         max-height: 50px;
         max-width: 30px;
         transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    }
.arrow.left {
    left: -50px;
	
}

.arrow.right {
    right: -40px;
}
   
	    footer,
    .footer,
    #footer {
        display: none !important;
    }
}
@media (orientation: landscape) and (max-width: 1260px) {
.server-status {
 display: none !important;
}

	.custom-btn {
     display: none !important;
		}
    .home-header .row {
        display: block !important; /* Flex'i tamamen iptal eder */
    }
.arrow{
	
	top: 40%;
	
	
	}
    .logoo {
        display: block !important;
        width: 100% !important;
        max-width: 180px;
       margin-top: 50px;
margin-bottom: 10px;
margin-left: 48vh;
        text-align: center;
    }

    .carousel-container {
        display: block !important;
        width: 80% !important;
        max-width: 100%;
        margin: 0 auto 100px auto !important;
    }

    /* Diğer ilgili stiller */
    #navbar {
        all: unset !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-nav {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: auto !important;
    }

    .navbar-nav .nav-item {
        flex: none !important;
        text-align: left !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 16px !important;
    }

    .navbar-toggler {
        display: none !important;
    }
 .transparent-button {
        width: 120px;
        margin-right: 10px;
    }
    footer,
    .footer,
    #footer {
        display: block !important;
    }
	   body footer,
    body .footer,
    body #footer,
    html body footer,
    html body .footer,
    html body #footer {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
