@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-bg: #0a0a0f;
  --dark-card: rgba(20, 20, 30, 0.8);
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dark: #b89600;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --border-color: rgba(212, 175, 55, 0.3);
  --hover-bg: rgba(212, 175, 55, 0.1);
}

body {
  font-family: 'Noto Serif SC', serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glass-card {
  background: var(--dark-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.gold-text {
  color: var(--gold);
}

.gold-border {
  border-color: var(--gold) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--hover-bg);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #a02530 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.btn-edit {
  background: linear-gradient(135deg, #17a2b8 0%, #107a8a 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(23, 162, 184, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--gold), 0 0 10px var(--gold);
  }
  50% {
    box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold), 0 0 30px var(--gold);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.warning-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.warning-card {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.warning-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: glow 2s ease-in-out infinite;
}

.warning-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #dc3545;
}

.warning-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: justify;
}

.warning-btn {
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

nav {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .active {
  color: var(--gold);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.page-title::before,
.page-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 1px;
  background: var(--gold);
}

.page-title::before {
  left: -120px;
}

.page-title::after {
  right: -120px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.post-card {
  padding: 24px;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.post-category {
  display: inline-block;
  background: var(--hover-bg);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.post-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.history-section {
  margin-bottom: 40px;
}

.history-section h2 {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.history-section h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 16px 0 12px;
}

.history-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.history-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.history-section li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table th,
.members-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.members-table th {
  background: var(--hover-bg);
  color: var(--gold);
  font-weight: 600;
}

.members-table tr:hover {
  background: var(--hover-bg);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  max-width: 400px;
  width: 100%;
  padding: 40px;
}

.login-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  transition: all 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  text-align: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.admin-nav a {
  padding: 10px 20px;
  background: var(--dark-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-nav a.active {
  background: var(--hover-bg);
  border-color: var(--gold);
  color: var(--gold);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    font-size: 12px;
  }
  
  .page-title::before,
  .page-title::after {
    display: none;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .warning-card {
    padding: 24px;
  }
  
  .login-card {
    padding: 24px;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .members-table {
    font-size: 12px;
  }
  
  .members-table th,
  .members-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
