@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("../styles/variables.css");
@import url("./components/navbar.css");
@import url("./components/footer.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-size: 18px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-2), var(--light-primary-1));
  border-radius: 5px;
  border: 2px solid var(--dark);
}

html,
body {
  background: radial-gradient(circle at top, #1e293b 0%, var(--dark) 100%);
  background-attachment: fixed;
  color: var(--light);
  height: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: transparent;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  padding: 0 1rem;
  animation: fadeUp 1.2s ease-out;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.6));
  animation: pulseGlow 3s infinite alternate;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: #cbd5e1;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(90deg, var(--primary-2), var(--light-primary-1));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.6);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.6);
}

.card {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.3) 0%,
    rgba(15, 23, 42, 0.4) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.card:hover {
  border-color: var(--primary-2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--light);
}

.card p {
  color: #94a3b8;
  font-size: 1rem;
}

.card a i {
  font-size: 16px;
  color: var(--primary-2);
}

.card-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.status-open {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
.status-live {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}
.status-closed {
  color: #64748b;
}

.rank-1 {
  border-color: #fbbf24;
  z-index: 2;
}
.rank-1 h3 {
  color: #fbbf24;
}
.rank-2 {
  border-color: #e2e8f0;
}
.rank-3 {
  border-color: #b45309;
}

.memory-card {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  font-weight: bold;
  letter-spacing: 1px;
}

.section-footer {
  text-align: center;
  margin-top: 2rem;
}

.btn-visit {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-visit:hover {
  background: var(--primary-2);
  color: white;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary-2), var(--light-primary-1));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-padding {
    padding: 3rem 0;
  }

  .rank-1 {
    order: -1;
  }

  .card:hover,
  .rank-1:hover {
    transform: none;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  }
}

.admin-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-card h2 {
  color: var(--primary-2);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border-light);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border-dark);
}

.admin-table th {
  color: var(--primary-2);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  transition:
    transform 0.2s,
    color 0.2s;
}

.btn-icon.edit {
  color: var(--light-primary-2);
}
.btn-icon.delete {
  color: #ef4444;
}
.btn-icon.save {
  color: #22c55e;
}

.input-sm {
  padding: 0.4rem !important;
  font-size: 0.9rem !important;
  width: 100px !important;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.8));
  }
}

:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333;
  --bg-light: #f4f7f6;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header nav a {
  text-decoration: none;
  color: var(--text-color);
  margin-left: 20px;
  font-weight: 500;
}

.main-header nav a.active {
  color: var(--accent-color);
}

.team-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.img-wrapper {
  height: 250px;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .img-wrapper img {
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.role {
  display: block;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 8px;
  color: #aaa;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.input-group {
  position: relative;
}
.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-2);
  pointer-events: none;
  z-index: 1;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding-left: 3rem !important;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border-light);
  transition: all 0.3s ease;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-2);
}

.admin-table {
  border-collapse: separate;
  border-spacing: 0 0.8rem;
}
.admin-table thead th {
  border: none;
  padding-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.85rem;
}
.admin-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.admin-table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.admin-table td {
  border: none;
  padding: 1.2rem;
  vertical-align: middle;
}
.admin-table td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.admin-table td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
}
.btn-icon:hover {
  background: var(--primary-2);
  color: white;
  transform: none;
}
.btn-icon.delete:hover {
  background: #ef4444;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state i {
  font-size: 4rem;
  color: var(--glass-border-light);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  color: var(--light);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #94a3b8;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--primary-2);
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.profile-info-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-info-main img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary-2);
  object-fit: cover;
}

.role-badge {
  background: var(--primary-2);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.stat-box {
  text-align: center;
}

.stat-box h3 {
  font-size: 2rem;
  color: var(--primary-2);
  margin-bottom: 0.2rem;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-info-main {
    flex-direction: column;
  }
  .section-header-flex {
    flex-direction: column;
    gap: 1rem;
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-light);
  color: var(--light);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  font-size: 1.2rem;
}
.toast.success {
  border-left: 4px solid #22c55e;
}
.toast.success i {
  color: #22c55e;
}
.toast.error {
  border-left: 4px solid #ef4444;
}
.toast.error i {
  color: #ef4444;
}
.toast.info {
  border-left: 4px solid #3b82f6;
}
.toast.info i {
  color: #3b82f6;
}

@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    align-items: center;
  }
  .toast {
    width: 100%;
    min-width: 0;
    transform: translateY(-150%);
    justify-content: flex-start;
  }
  .toast.show {
    transform: translateY(0);
  }
}
