/* =============================================
   SHARED / GLOBAL STYLES
   Tüm sayfalarda kullanılan ortak stiller
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* CSS Değişkenleri (Tema Renkleri) */
:root {
  --primary: #ff0000;
  --primary-dark: #cc0000;
  --secondary: #ff3333;
  --accent: #ff4d4d;
  --bg-dark: #000000;
  --bg-card: #0a0a0a;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(255, 0, 0, 0.2);
  --success: #00e676;
  --danger: #ff5252;
  --warning: #ffab00;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* =====================
   NAVBAR - Stiller nav.js tarafından yönetiliyor
   ===================== */

.nav-container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  padding: 0.5rem 0.25rem;
  color: #999;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* Nav Dropdown Logic */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  margin-top: 15px;
}

.drop-arrow {
  font-size: 0.5rem;
  margin-left: 4px;
  color: var(--primary);
  transition: transform 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}

.nav-dropdown-wrapper:hover .drop-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .dropdown-item {
  font-size: 0.75rem;
  padding: 10px 14px;
  border-radius: 8px;
  color: #bbb;
  display: block;
  text-decoration: none;
  font-weight: 600;
}

.nav-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-discord-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-discord-btn:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.discord-mini-icon {
  width: 14px;
  height: 14px;
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* User Profile & Dropdown */
.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-trigger:hover,
.profile-trigger.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.avatar-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 0, 0.3);
}

.nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.username-display {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chevron-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg) translateY(-2px);
  margin-left: 10px;
  transition: var(--transition);
}

.profile-trigger.active .chevron-icon {
  transform: rotate(-135deg) translateY(0);
}

/* Dropdown Menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 260px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.1);
  z-index: 1002;
}

.profile-dropdown.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #eee !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
  transform: translateX(3px);
}

/* Notification Area */
.notif-area {
  max-height: 180px;
  overflow-y: auto;
  border-radius: 10px;
  margin: 5px 0;
}

.notif-item {
  padding: 12px 16px;
  background: rgba(255, 68, 68, 0.05);
  border-left: 3px solid #ff4444;
  margin-bottom: 2px;
}

.notif-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff4444;
  text-transform: uppercase;
}

.notif-body {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin: 2px 0;
}

.notif-reason {
  display: block;
  font-size: 0.7rem;
  color: #aaa;
  font-style: italic;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.logout-red {
  color: #ff4444 !important;
}

.logout-red:hover {
  background: rgba(255, 68, 68, 0.1);
}

/* Icon Placeholders (SVG or Emoji) */
.icon-ticket::before {
  content: "🎫";
}

.icon-chat::before {
  content: "💬";
}

.icon-user::before {
  content: "👤";
}

.icon-logout::before {
  content: "🚪";
}

.icon-admin::before {
  content: "🛠️";
}

/* User Profile Container & Bell */
.user-profile-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-bell-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-bell-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid #000;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Notif Modal */
.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.notif-modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.notif-modal-body {
  width: 90%;
  max-width: 500px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.notif-modal-overlay.active .notif-modal-body {
  transform: translateY(0);
}

.notif-header {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 1px;
}

.close-notif {
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.close-notif:hover {
  opacity: 1;
}

.notif-list-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

/* Notif Card */
.notif-card {
  display: flex;
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.notif-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.notif-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-info {
  flex: 1;
}

.notif-header-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff4444;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.notif-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.notif-msg {
  font-size: 0.85rem;
  color: #aaa;
  margin: 6px 0;
  line-height: 1.4;
}

.notif-date {
  font-size: 0.7rem;
  color: #555;
  font-weight: 600;
}

.hamburger {
  display: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 40px 40px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 100px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 450px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.footer-credits {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* =====================
   UTILITY CLASSES
   ===================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border-radius: 50px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #eeeeee;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--primary);
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(108, 99, 255, 0.2);
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.1);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary {
  color: var(--text-secondary);
}

/* Page wrapper */
.page-wrapper {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 20px;
    margin-top: 10px;
  }

  .nav-actions-group {
    order: 2;
  }

  /* .tg-trigger span:not(.chevron-icon) {
    display: none;
  }

  .tg-trigger {
    padding: 8px;
  } */

  .nav-links.open {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--shadow);
  }

  50% {
    box-shadow:
      0 0 40px var(--shadow),
      0 0 80px rgba(108, 99, 255, 0.2);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* =====================
   TOAST SYSTEM
   ===================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transform: translateX(120%);
  animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
}

.toast.removing {
  animation: toast-out 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast.success {
  border-left-color: #00e676;
}

.toast.error {
  border-left-color: #ff3333;
}

.toast.warning {
  border-left-color: #ffab00;
}

.toast.info {
  border-left-color: #6c63ff;
}

.toast-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes toast-in {
  to {
    transform: translateX(0);
  }
}

@keyframes toast-out {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* =====================
   ADVERTISEMENT SYSTEM (Global)
   ===================== */
.skyscraper {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  z-index: 1000;
  overflow: hidden;
  pointer-events: auto;
  display: none;
}

.ls-left {
  left: 20px;
  border-left: 2px solid var(--warning);
}

.ls-right {
  right: 20px;
  border-right: 2px solid #6c63ff;
}

.skyscraper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.skyscraper img.active {
  opacity: 1;
}

@media (max-width: 1700px) {
  .skyscraper {
    display: none;
  }
}

.sticky-ad-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 1000px;
  max-width: 95vw;
  transition: all 0.5s ease;
}

.sticky-ad-inner {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-ad-inner a {
  display: block;
  width: 100%;
  height: 90px;
}

.sticky-ad-inner img,
.sticky-ad-inner video {
  width: 1000px;
  height: 90px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 768px) {

  .sticky-ad-inner a,
  .sticky-ad-inner img,
  .sticky-ad-inner video {
    height: 60px;
  }
}

.close-sticky {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}