
:root {
  --primary: #fddb47;
  --primary-dark: #e6c642;
  --dark-bg: #0c0a09;
  --dark-bg-light: #1a1716;
  --light-bg: #ffffff;
  --card-bg: #1e1b1b;
  --text-light: #ffffff;
  --text-dark: #2d2d2d;
  --text-gray: #a1a1a1;
  --first-place: #4a9eff;
  --second-place: #ffc107;
  --third-place: #cd7f32;
  --first-place-bg: rgba(74, 158, 255, 0.1);
  --second-place-bg: rgba(255, 193, 7, 0.1);
  --third-place-bg: rgba(205, 127, 50, 0.1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  --box-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background-color: rgba(12, 10, 9, 0.95);
  z-index: 100;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(253, 219, 71, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 400;
  margin-top: 4px;
}

/* Header Nav ve Dropdown Stilleri */
.header-nav {
  position: relative;
  display: inline-block;
}

.nav-button {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 600;
}

.nav-button:hover {
  background-color: var(--primary);
  color: var(--dark-bg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  min-width: 200px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius-sm);
  z-index: 1;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background-color: var(--dark-bg-light);
  border-left-color: var(--primary);
  padding-left: 20px;
}

.dropdown-content i {
  margin-right: 8px;
  width: 18px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }
  
  .nav-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .dropdown-content {
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .header-nav {
    width: 100%;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .nav-button {
    width: 100%;
    padding: 8px;
  }
  
  .dropdown-content {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Main Content */
.main {
  padding: 40px 0 60px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  font-size: 1.2em;
}

.top-three-container {
  margin-bottom: 50px;
}

.top-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.other-servers-container {
  margin-top: 30px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Server Cards */
.server-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: visible;
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 30px;
}

.server-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(253, 219, 71, 0.3);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-content {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
  height: 100%;
}

.server-icon-container {
  position: relative;
  flex-shrink: 0;
}

.server-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.rank-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.first-place .rank-badge {
  background-color: var(--first-place);
  color: white;
}

.second-place .rank-badge {
  background-color: var(--second-place);
  color: var(--text-dark);
}

.third-place .rank-badge {
  background-color: var(--third-place);
  color: white;
}

.card-details {
  flex: 1;
  overflow: hidden;
}

.server-name {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-stats {
  display: flex;
  gap: 15px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.stat-icon {
  font-size: 0.9rem;
  color: var(--primary);
}

.stat-value {
  font-weight: 500;
  color: var(--text-light);
}

/* Ranked Cards */
.first-place {
  border-top: 4px solid var(--first-place);
}

.second-place {
  border-top: 4px solid var(--second-place);
}

.third-place {
  border-top: 4px solid var(--third-place);
}

/* Rank Numbers - ÜSTTE OLACAK ŞEKİLDE GÜNCELLENDİ */
.rank-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  color: white;
  z-index: 2;
  border: 3px solid var(--dark-bg);
}

.first-place .rank-number {
  background-color: var(--first-place);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.second-place .rank-number {
  background-color: var(--second-place);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  color: var(--text-dark);
}

.third-place .rank-number {
  background-color: var(--third-place);
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

.server-card .rank-number {
  background-color: var(--dark-bg-light);
  border: 3px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  top: -20px;
}

/* Top 3 Cards */
.top-card {
  position: relative;
  overflow: visible;
  padding-top: 20px;
}

.top-card.first-place {
  background: linear-gradient(135deg, var(--first-place-bg), var(--card-bg));
}

.top-card.second-place {
  background: linear-gradient(135deg, var(--second-place-bg), var(--card-bg));
}

.top-card.third-place {
  background: linear-gradient(135deg, var(--third-place-bg), var(--card-bg));
}

/* Footer */
.footer {
  background-color: var(--dark-bg-light);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 300px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-subtitle {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-link i {
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.copyright, .credits {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.credits {
  margin-top: 8px;
}

.credits strong {
  color: var(--primary);
}

.credits i {
  color: #ff4d4d;
}

/* Animations */
@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.top-card {
  animation: slideIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.top-card:nth-child(1) { animation-delay: 0.1s; }
.top-card:nth-child(2) { animation-delay: 0.3s; }
.top-card:nth-child(3) { animation-delay: 0.5s; }

.server-card {
  animation: slideIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
}

.server-card:nth-child(1) { animation-delay: 0.2s; }
.server-card:nth-child(2) { animation-delay: 0.3s; }
.server-card:nth-child(3) { animation-delay: 0.4s; }
.server-card:nth-child(4) { animation-delay: 0.5s; }
.server-card:nth-child(5) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1200px) {
  .server-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .top-three {
    grid-template-columns: 1fr;
  }
  
  .top-card {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .logo-main {
    font-size: 1.5rem;
  }
  
  .logo-sub {
    font-size: 0.7rem;
  }
  
  .server-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .card-content {
    padding: 15px;
    gap: 15px;
  }
  
  .server-icon {
    width: 60px;
    height: 60px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }
  
  .rank-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    top: -22px;
  }
  
  .server-card .rank-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: -17px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 50px;
    height: 50px;
  }
  
  .server-grid {
    grid-template-columns: 1fr;
  }
  
  .server-name {
    font-size: 1.1rem;
  }
  
  .stat {
    font-size: 0.8rem;
  }
  
  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    top: -20px;
  }
  
  .server-card .rank-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    top: -15px;
  }
  
  .top-card {
    margin-top: 35px;
  }
}
