/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
  --bg-color: #fff0f5; /* LavenderBlush */
  --text-main: #4a4a4a;
  --text-muted: #8c8c8c;
  --primary-color: #ffb6c1; /* LightPink */
  --primary-hover: #ff9fb0;
  --secondary-color: #dda0dd; /* Plum */
  --accent-color: #ffd700;
  --white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
  --red-error: #ff6b6b;
  --border-radius: 20px;
  
  --bg-grad-1: #ffe4e1;
  --bg-grad-2: #e6e6fa;
  --hero-overlay: rgba(255, 240, 245, 0.85);
}

[data-theme="dark"] {
  --bg-color: #1a1525;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --primary-color: #ff85a1;
  --primary-hover: #ffb6c1;
  --secondary-color: #d18fd1;
  --white: #2d2438;
  --card-bg: rgba(45, 36, 56, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --bg-grad-1: #381d3a;
  --bg-grad-2: #272346;
  --hero-overlay: rgba(26, 21, 37, 0.85);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top left, var(--bg-grad-1) 0%, transparent 50%),
                    radial-gradient(circle at bottom right, var(--bg-grad-2) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary-color);
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  margin-left: 2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 2rem;
  color: var(--text-main);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221, 160, 221, 0.4);
}

/* Main Content */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem 2rem;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../img/hero_bg.png') center/cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.server-status {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
  border: 2px solid #ffe4e1;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background-color: var(--red-error);
  border-radius: 50%;
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-color: var(--red-error);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.status-text {
  text-align: left;
}

.status-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text-main);
}
.status-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cards / Sections */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--secondary-color);
}

/* Cabinet Forms */
.cabinet-container {
  max-width: 450px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.cabinet-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--bg-color);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--text-muted);
  transition: 0.3s;
}

.tab.active {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.form-container {
  display: none;
}

.form-container.active {
  display: block;
}

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

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

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--bg-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.form-error {
  color: var(--red-error);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
  min-height: 20px;
  font-weight: 600;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Rules Page */
.rules-list {
  list-style: none;
  padding: 0;
}
.rules-list li {
  background: var(--white);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}
.rules-list li h4 {
  margin: 0 0 0.5rem 0;
  color: var(--secondary-color);
}
.rules-list li p {
  margin: 0;
}

/* Gallery */
.gallery-section {
  margin-top: 4rem;
}

.gallery-section h2, .news-section h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* News */
.news-section {
  margin-top: 4rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color);
}

.news-date {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.news-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
}

.news-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--bg-color);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.team-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--secondary-color);
}

.team-role {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Map */
.map-container {
  width: 100%;
  height: 600px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
}
