﻿.birlik-container {
  width: min(1200px, 94vw);
  margin: 40px auto;
  padding: 20px;
}

.birlik-header {
  text-align: center;
  margin-bottom: 50px;
}

.birlik-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  margin: 0 0 10px 0;
  text-shadow: none;
}

.birlik-subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 0;
  font-weight: 400;
}

.birlik-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.birlik-card {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sol sÃ¼tunlar (1. ve 2. sÃ¼tun) - Soldan gelir */
.birlik-card:nth-child(4n+1),
.birlik-card:nth-child(4n+2) {
  animation-name: slideInFromLeft;
}

/* SaÄŸ sÃ¼tunlar (3. ve 4. sÃ¼tun) - SaÄŸdan gelir */
.birlik-card:nth-child(4n+3),
.birlik-card:nth-child(4n) {
  animation-name: slideInFromRight;
}

/* Her kartÄ±n gecikme sÃ¼resi */
.birlik-card:nth-child(1) { animation-delay: 0.1s; }
.birlik-card:nth-child(2) { animation-delay: 0.2s; }
.birlik-card:nth-child(3) { animation-delay: 0.2s; }
.birlik-card:nth-child(4) { animation-delay: 0.1s; }
.birlik-card:nth-child(5) { animation-delay: 0.3s; }
.birlik-card:nth-child(6) { animation-delay: 0.4s; }
.birlik-card:nth-child(7) { animation-delay: 0.4s; }
.birlik-card:nth-child(8) { animation-delay: 0.3s; }

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.birlik-card:hover {
  transform: translateY(-5px);
  border-color: var(--mint);
  box-shadow: 0 6px 16px rgba(42, 245, 152, 0.09);
}

.birlik-card-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.birlik-card-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: none;
  text-align: center;
}

.birlik-card-image {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.birlik-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.birlik-card:hover .birlik-card-image img {
  transform: scale(1.05);
}

.birlik-card-reputation {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reputation-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.reputation-bar {
  position: relative;
  width: 100%;
  height: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.reputation-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--text-sec), var(--mint));
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(42, 245, 152, 0.5);
}

.reputation-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.birlik-card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  flex-grow: 1;
}

.birlik-detail-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid rgba(42, 245, 152, 0.42);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.birlik-detail-btn:hover {
  background: transparent;
  border-color: rgba(42, 245, 152, 0.72);
  color: #fff;
  box-shadow: 0 0 6px rgba(42, 245, 152, 0.12);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 2px solid var(--mint);
  border-radius: 6px;
  width: min(600px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 50px rgba(42, 245, 152, 0.2);
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--mint);
  cursor: pointer;
  padding: 10px 20px;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 1;
  background: var(--bg-1);
  border-radius: 6px;
}

.modal-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.modal-header h2 {
  font-family: var(--font-main);
  font-size: 2.2rem;
  color: var(--mint);
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(42, 245, 152, 0.3);
}

.modal-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-section {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(42, 245, 152, 0.1);
}

.modal-section:last-child {
  border-bottom: none;
  padding-bottom: 30px;
}

.modal-section h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--text-sec);
  margin: 0 0 12px 0;
  letter-spacing: 1px;
}

.modal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

.modal-section .reputation-bar {
  margin-top: 10px;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-sec);
}

/* Responsive */
@media (max-width: 1200px) {
  .birlik-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .birlik-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .birlik-title {
    font-size: 3rem;
  }

  .modal-content {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-header,
  .modal-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 600px) {
  .birlik-grid {
    grid-template-columns: 1fr;
  }
}

