/* Genel stil ayarları */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #B2D8F7; /* Bebek mavisi */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Giriş ekranı container */
.login-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
  margin: auto;
  margin-top: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profil fotoğrafı - Giriş ekranı ve profil küçük */
.profile-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.profile-img-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Inputlar */
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 16px;
}

/* Butonlar */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Güncellenmiş Mavi Butonlar */
.btn-pink {
  background-color: #1877F2; /* Facebook Mavisi */
  color: white;
  font-weight: 600;
}

.btn-pink:hover {
  background-color: #0f5dc8;
}

/* Misafir ve Kayıt Butonlarının kapsayıcıları */
.guest-register {
  width: 100%;
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.guest-btn {
  flex: 1; /* Eşit genişlik için */
  padding: 12px;
  font-size: 16px;
}


.register-link {
  color: #ff69b4;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Üst bar - Home sayfası */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #b2ebf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Hoş geldin yazısı */
.welcome-text {
  font-size: 22px;
  font-weight: bold;
  color: #004d40;
}

/* Profil butonu */
.profile-button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profil kutusu */
#profile-box {
  position: absolute;
  top: 70px;
  right: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: none;
  width: 220px;
}

#profile-box input,
#profile-box textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Ana içerik */
.main-content {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Menü butonları */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 250px;
}

.menu-button {
  padding: 15px 25px;
  font-size: 18px;
  background-color: white;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: #000;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: #e1f5fe;
}

.menu-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.nav-button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #005792;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #003f66;
}

/* Logout butonu */
.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #c82333;
}

/* Top bar sağ taraf düzenlemesi */
.profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Panel Stilleri */
.admin-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.admin-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.admin-section h3 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 5px;
}

/* PDF Upload Form */
.upload-form {
  display: grid;
  gap: 15px;
  max-width: 500px;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  border-color: #667eea;
  outline: none;
}

.upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* PDF Listesi */
.pdf-list {
  display: grid;
  gap: 15px;
}

.pdf-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-info h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.pdf-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.pdf-actions {
  display: flex;
  gap: 10px;
}

.btn-edit {
  background-color: #28a745;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-edit:hover {
  background-color: #218838;
}

.btn-delete:hover {
  background-color: #c82333;
}

/* İstatistikler */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  color: #666;
  margin-top: 5px;
}

/* Content Box (eksik olan) */
.content-box {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-box h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.content-box ul {
  list-style: none;
  padding: 0;
}

.content-box ul li {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.content-box ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.content-box ul li a:hover {
  color: #667eea;
}

/* Loading Spinner */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ders Notları Sayfası İçin Ek CSS */

.filter-section {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.filter-section h3 {
  color: #333;
  margin-bottom: 15px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pdf-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #667eea;
  transition: all 0.3s ease;
}

.pdf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.pdf-header h4 {
  color: #333;
  font-size: 1.3em;
  margin: 0;
  flex: 1;
}

.pdf-category {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 15px;
}

.pdf-description {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.5;
}

.pdf-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #888;
}

.pdf-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-view,
.btn-download {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-view {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
}

.btn-download {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}

.btn-view:hover,
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-section {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.loading-message {
  text-align: center;
  padding: 50px;
  color: #666;
}

/* Loading screen için */
#loading-screen .loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
  
  .pdf-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .pdf-category {
    align-self: flex-start;
    margin-left: 0;
  }
  
  .pdf-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .pdf-actions {
    flex-direction: column;
  }
  
  .btn-view,
  .btn-download {
    width: 100%;
  }
}

/* Şifre container stilleri - bu kısmı style.css'e ekle */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 45px; /* Sağda buton için yer bırak */
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  width: auto;
  height: auto;
}

.password-toggle:hover {
  background-color: rgba(0,0,0,0.1);
  border-radius: 50%;
}

/* Profil fotoğrafı yükleme stilleri - bu kısmı style.css'e ekle */

.photo-upload-section {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px;
  border: 2px dashed #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.current-photo {
  margin-bottom: 10px;
}

.profile-photo-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-upload-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
}

.photo-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Profile box genişletme */
#profile-box {
  width: 280px; /* Biraz daha geniş yap */
}

/* Şifre container stilleri */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  width: auto;
  height: auto;
}

.password-toggle:hover {
  background-color: rgba(0,0,0,0.1);
  border-radius: 50%;
}

/* --- UNO Oyunu Stilleri --- */

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.game-board {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.card-placeholder {
    width: 80px;
    height: 120px;
    border: 2px dashed #999;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background-color: #eee;
}

.deck-container {
    position: relative;
}

.discard-pile {
    border-color: #667eea;
}

.player-hands {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hand {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
}

.hand p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Kartların kendisi için genel stil */
.card {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

.card-group {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Kart renkleri */
.card.red { background-color: #e74c3c; }
.card.blue { background-color: #3498db; }
.card.green { background-color: #2ecc71; }
.card.yellow { background-color: #f1c40f; }
.card.black { background-color: #34495e; }

/* Kartın arka yüzü (rakip için) */
.card-back {
    background-color: #c0392b;
    border: 1px solid #a03025;
}

/* =========================================
   KARANLIK MOD (DARK MODE) STİLLERİ
   ========================================= */

/* Karanlık Mod Butonu */
.theme-toggle-btn {
    background: none;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px;
    background-color: white;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

/* --- Dark Mode Aktifken Geçerli Kurallar --- */
body.dark-mode {
    background-color: #1a1a2e; /* Koyu Gece Mavisi */
    color: #e0e0e0;
}

body.dark-mode .login-container,
body.dark-mode .admin-container,
body.dark-mode .content-box,
body.dark-mode .pdf-card,
body.dark-mode .stat-card,
body.dark-mode .pdf-viewer-wrapper,
body.dark-mode .pdf-viewer-controls,
body.dark-mode .filter-section,
body.dark-mode .exam-section,
body.dark-mode .admin-section,
body.dark-mode .modal-content,
body.dark-mode .edit-modal-content,
body.dark-mode .results-content,
body.dark-mode .pdf-modal-content,
body.dark-mode .student-info-modal,
body.dark-mode .exam-completed,
body.dark-mode .exam-questions-section,
body.dark-mode .forgot-container,
body.dark-mode .reset-container {
    background-color: #16213e; /* Daha açık lacivert kutular */
    color: #e0e0e0;
    border-color: #0f3460;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Başlıklar ve Metinler */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .welcome-text,
body.dark-mode .question-title,
body.dark-mode .stat-number {
    color: #fff !important;
}

body.dark-mode p, 
body.dark-mode label,
body.dark-mode .stat-label,
body.dark-mode .pdf-description,
body.dark-mode .link-text a {
    color: #b0b0b0 !important;
}

/* Inputlar ve Selectler */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background-color: #0f3460;
    color: white;
    border: 1px solid #533483;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #a0a0a0;
}

/* Top Bar ve Headerlar */
body.dark-mode .top-bar,
body.dark-mode .admin-header,
body.dark-mode .pdf-header {
    background-color: #0f3460;
    border-bottom: 1px solid #1a1a2e;
}

body.dark-mode .pdf-modal-header {
    background-color: #0f3460;
    color: white;
    border-bottom: 1px solid #1a1a2e;
}

/* Menü Butonları */
body.dark-mode .menu-button {
    background-color: #16213e;
    color: white;
    border-color: #533483;
}

body.dark-mode .menu-button:hover {
    background-color: #0f3460;
}

/* Listeler ve Küçük Alanlar */
body.dark-mode .content-box ul li {
    background-color: #0f3460;
    border-left-color: #e94560;
}

body.dark-mode .content-box ul li a {
    color: #e0e0e0;
}

body.dark-mode .pdf-item,
body.dark-mode .message-item {
    background-color: #0f3460 !important;
    border-color: #1a1a2e;
}

body.dark-mode .storage-selection,
body.dark-mode .storage-option,
body.dark-mode .upload-detail-item {
    background-color: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

/* Buton İkonu */
body.dark-mode .theme-toggle-btn {
    background-color: #0f3460;
    color: #ffd700; /* Güneş sarısı */
    border-color: #e94560;
}

/* Linkler */
body.dark-mode a {
    color: #4da8da;
}

/* Scrollbar (Chrome/Safari) */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a2e;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #533483;
    border-radius: 5px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #e94560;
}

/* =========================================
   YORUM SİSTEMİ STİLLERİ
   ========================================= */
.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.comments-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.comment-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comment-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.comment-name-input {
    width: 30%;
}

.comment-text-input {
    width: 100%;
    resize: vertical;
    min-height: 60px;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    float: right;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    background: white;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.comment-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.comment-author {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.comment-email {
    color: #999;
    font-style: italic;
    margin-left: 5px;
}

.comment-body {
    color: #444;
    line-height: 1.5;
    word-break: break-word;
}

/* --- Dark Mode Uyumluluğu --- */
body.dark-mode .comments-section { border-top-color: #0f3460; }
body.dark-mode .comments-header { color: white; }
body.dark-mode .comment-form { background-color: #16213e; }
body.dark-mode .comment-input { background-color: #0f3460; border-color: #533483; color: white; }
body.dark-mode .comment-item { background-color: #16213e; border-color: #0f3460; }
body.dark-mode .comment-author { color: #e0e0e0; }
body.dark-mode .comment-email { color: #888; }
body.dark-mode .comment-body { color: #ccc; }

}

/* =========================================
   GÜNCEL YILBAŞI TEMASI (Parabolik Işıklar & Görünür Kar)
   ========================================= */

/* =========================================
   DÜZELTİLMİŞ KAR EFEKTİ (Absolute Pozisyon)
   ========================================= */

.snowflake {
    /* BURASI DEĞİŞTİ: fixed yerine absolute yapıyoruz */
    position: absolute; 
    top: -20px;
    z-index: 9997; 
    color: #fff;
    font-size: 1.5em; 
    user-select: none;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    
    /* Karın görünmesi için gölge */
    text-shadow: 0 0 5px rgba(255,255,255, 0.8), 1px 1px 2px rgba(0,0,0, 0.3);
}

@keyframes fall {
    to { transform: translateY(110vh); } /* Biraz daha aşağı insin */
}

/* 2. "Hoş geldin 2026" Yazısı (Barın Altına İndirildi) */
.welcome-year-text {
    text-align: center;
    font-size: 24px; /* Daha büyük ve okunaklı */
    font-weight: 800; /* Daha kalın */
    color: #d42e2e; /* Yılbaşı Kırmızısı */
    
    /* Kritik Düzeltme: Üst barın (60-70px) altında kalmasın diye boşluk */
    margin-top: 90px; 
    margin-bottom: 20px;
    
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 0px rgba(255,255,255, 0.8); /* Beyaz kontür */
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px rgba(255,255,255,0.8); }
    to { text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 5px #d42e2e; }
}

/* 3. Parabolik Işık Konteynerı */
.christmas-lights-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Işıkların sarkma payı */
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

/* Işık Ampulleri */
.light-bulb {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    animation: flash 1.5s infinite alternate;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Kablo (SVG ile çizilecek) */
.lights-wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Işık Renkleri */
.light-bulb.red { background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation-delay: 0s; }
.light-bulb.green { background: #4cd964; box-shadow: 0 0 10px #4cd964; animation-delay: 0.5s; }
.light-bulb.gold { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; animation-delay: 1s; }
.light-bulb.blue { background: #007aff; box-shadow: 0 0 10px #007aff; animation-delay: 1.5s; }

@keyframes flash {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); filter: brightness(1.3); }
}

/* Mobil Düzeltmeleri */
@media (max-width: 768px) {
    .welcome-year-text {
        font-size: 20px;
        margin-top: 85px; /* Mobilde bar daha ince olabilir */
    }
    .christmas-lights-container {
        height: 80px; /* Mobilde çok aşağı sarkmasın */
    }
}

/* Dark Mode Uyumluluğu */
body.dark-mode .welcome-year-text {
    color: #ff4d4d;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}