@font-face {
  font-family: 'JejuMyeongjoLocal';
  src: url('fonts/JejuMyeongjo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #f43f5e;
  --accent-color: #10b981;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --card-bg: rgba(30, 41, 59, 0.8);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
  /* scroll-behavior: smooth; */
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Анимированный фон */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("background.png") no-repeat center top;
  background-size: cover;
  z-index: -2;
}

/* Адаптивные фоновые изображения для современных экранов */
@media (max-width: 768px) {
  .bg-animation {
    background-image: url("background-mobile.jpg");
  }
}

@media (min-width: 769px) and (max-width: 1366px) {
  .bg-animation {
    background-image: url("background-1080.jpg");
  }
}

@media (min-width: 1367px) and (max-width: 2560px) {
  .bg-animation {
    background-image: url("background-2k.jpg");
  }
}

@media (min-width: 2561px) {
  .bg-animation {
    background-image: url("background-4k.jpg");
  }
}

/* Для Retina и высокой плотности пикселей */
@media (min-width: 1367px) and (-webkit-min-device-pixel-ratio: 2),
       (min-width: 1367px) and (min-resolution: 192dpi) {
  .bg-animation {
    background-image: url("background-4k.jpg");
  }
}

/* Floating particles */
.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Header Section */
.header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  position: relative;
  z-index: 1;
}

.header h1 {
  font-family: 'Italiana', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1.5rem 0 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.social-link {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.social-link:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

.social-link img {
  width: 20vw;
  max-width: 400px;
  min-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 4rem;
  position: relative;
  z-index: 1;
  align-items: start;
}

.news-section {
  flex: 1;
}

.about-section {
  flex: 1;
}

/* News Section */
.news-section {
  animation: fadeInLeft 1s ease-out 0.6s both;
}

.news-title {
  font-family: 'Italiana', serif;
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 400;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-align: center;
  margin-top: 0;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.news-container {
  /* height: 600px; */
  /* overflow-y: scroll; */
  padding-right: 1rem;
  /* scrollbar-width: thin; */
  /* scrollbar-color: rgba(99, 102, 241, 0.3) rgba(255, 255, 255, 0.05); */
}

/* Убраны стили скроллбара - теперь используется обычный скролл страницы */

.news-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.news-card::after {
  content: '🔗';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover::after {
  opacity: 0.7;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.news-card h3 {
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

/* Специальный стиль для вертикальных изображений */
.news-card.vertical-image img {
  height: 300px;
  object-fit: contain;
  background: rgba(30, 41, 59, 0.3);
}

.news-card:hover img {
  transform: scale(1.05);
}

/* News Meta Information */
.news-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
  font-style: italic;
}

/* About Section */
.about-section {
  animation: fadeInRight 1s ease-out 0.9s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.about-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  margin-top: 7rem;
  position: relative;
  overflow: hidden;
}

.about-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-3);
  opacity: 0.05;
  pointer-events: none;
}

.about-text {
  font-family: 'JejuMyeongjoLocal', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Discord Button */
.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--gradient-1);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.discord-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Единый Discord элемент */
.discord-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.discord-section:hover {
  transform: translateY(-5px);
  border-color: rgba(114, 137, 218, 0.5);
  box-shadow: 0 15px 30px rgba(114, 137, 218, 0.2);
}

.discord-icon {
  width: 180px;
  height: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.discord-section:hover .discord-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 24px rgba(114, 137, 218, 0.4));
}

.discord-section:hover .discord-button {
  transform: translateX(5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

/* Scroll Progress Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.6), rgba(244, 63, 94, 0.6));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

/* Age Verification Modal */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.5s ease-out;
}

.age-verification.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.age-modal {
  background: var(--card-bg);
  border-radius: 25px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.8) translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

.age-modal h2 {
  font-family: 'Italiana', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.age-modal .warning-icon {
  font-size: 4rem;
  color: #f43f5e;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.age-modal p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.age-modal .highlight-text {
  color: var(--primary-color);
  font-weight: 600;
}

.age-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.age-btn.confirm {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.age-btn.confirm:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.age-btn.deny {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 2px solid #f43f5e;
}

.age-btn.deny:hover {
  background: #f43f5e;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(244, 63, 94, 0.3);
}

.age-modal .small-text {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
  margin-top: 1.5rem;
  font-style: italic;
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease-out 2s forwards;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .social-links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 2rem 1rem;
  }
  
  .social-link img {
    width: 120px;
  }
  
  .about-content {
    padding: 2rem;
  }
  
  .news-container {
    max-height: 50vh;
  }
  
  .discord-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .discord-icon {
    width: 120px;
  }
  
  /* Адаптивная высота изображений новостей */
  .news-card img {
    height: 150px;
  }
  
  /* Адаптивная высота для вертикальных изображений на мобильных */
  .news-card.vertical-image img {
    height: 200px;
  }
  
  /* Age verification modal responsiveness */
  .age-modal {
    padding: 2rem;
    margin: 1rem;
  }
  
  .age-modal h2 {
    font-size: 2rem;
  }
  
  .age-modal .warning-icon {
    font-size: 3rem;
  }
  
  .age-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .age-btn {
    width: 100%;
    min-width: unset;
  }
  
  /* Mobile news meta */
  .news-meta {
    justify-content: flex-start;
  }
}

/* Адаптивная высота изображений новостей для больших экранов */
@media (min-width: 2561px) {
  .news-card img {
    height: 300px;
  }
  
  .news-card.vertical-image img {
    height: 400px;
  }
}

@media (min-width: 1367px) and (max-width: 2560px) {
  .news-card img {
    height: 250px;
  }
  
  .news-card.vertical-image img {
    height: 350px;
  }
} 