@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@600;800;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-primary: #08090c;
  --bg-secondary: #101216;
  --bg-card: rgba(16, 18, 22, 0.75);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(230, 30, 42, 0.15);
  
  --color-red: #e61e2a;
  --color-red-hover: #ff3340;
  --color-red-glow: rgba(230, 30, 42, 0.4);
  --color-dark-red: #8f0f16;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-body: 'Inter', sans-serif;
  --font-header: 'Orbitron', sans-serif;
  --font-accent: 'Rajdhani', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(230, 30, 42, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(230, 30, 42, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-dark-red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Esports Angled Button Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: var(--color-red);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--color-red-glow);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  background: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 64, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* Glassmorphism Card Style */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-red);
  opacity: 0.7;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: rgba(230, 30, 42, 0.2);
  box-shadow: 0 12px 40px 0 rgba(230, 30, 42, 0.1);
  transform: translateY(-2px);
}

.card:hover::before {
  width: 6px;
  opacity: 1;
}

/* --- Layout Structure --- */

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(8, 9, 12, 0.98);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 30%, var(--color-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  margin-top: -2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition-fast);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--color-red-glow);
}

.social-icon.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-icon.dc:hover {
  background: #5865f2;
  border-color: #5865f2;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(to bottom, rgba(8, 9, 12, 0.5), var(--bg-primary) 98%),
    url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 110px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(230, 30, 42, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(230, 30, 42, 0.05);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px var(--color-red-glow);
}

.hero-title span {
  color: var(--color-red);
  background: linear-gradient(135deg, var(--color-red) 40%, #ff6b75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Main Layout Grid */
.main-layout {
  max-width: var(--max-width);
  margin: -50px auto 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

/* Section Titles */
.section-title {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  position: relative;
}

.section-title h2 {
  font-size: 1.6rem;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-red);
}

/* --- Content Column (News) --- */
.news-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  padding: 0;
  border-radius: 0px;
  min-height: 220px;
}

.news-card::before {
  z-index: 10;
}

.news-img-wrapper {
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  height: 100%;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-img {
  transform: scale(1.08);
}

.news-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(8,9,12,0) 50%, rgba(16,18,22,0.85) 100%);
}

.news-details {
  padding: 1.5rem 1.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-meta i {
  color: var(--color-red);
}

.news-card-title {
  font-size: 1.35rem;
  margin: 0.5rem 0;
  color: #fff;
  transition: var(--transition-fast);
}

.news-card:hover .news-card-title {
  color: var(--color-red-hover);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-category {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.1em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #fff;
}

.read-more i {
  transition: var(--transition-fast);
}

.news-card:hover .read-more {
  color: var(--color-red);
}

.news-card:hover .read-more i {
  transform: translateX(3px);
}

.admin-action {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-delete:hover {
  color: var(--color-red);
}

.btn-edit:hover {
  color: #ffc107;
}

/* Empty News State */
.news-empty {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
}

/* --- Sidebar Column --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  display: flex;
  flex-direction: column;
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: var(--color-red);
}

/* Discord Widget Styling */
.discord-widget-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discord-server-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discord-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-server-name {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
}

.discord-server-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.discord-online-dot {
  width: 8px;
  height: 8px;
  background: #23a55a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #23a55a;
  animation: pulse-green 2s infinite;
}

.discord-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.discord-stat-item {
  display: flex;
  flex-direction: column;
}

.discord-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
}

.discord-stat-value {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 700;
}

.discord-stat-value.online {
  color: #23a55a;
}

/* TeamSpeak Widget Styling */
.ts-widget-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ts-server-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ts-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #194680;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(25, 70, 128, 0.3);
}

.ts-server-name {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
}

.ts-status-tag {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ts-status-tag.offline {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.ts-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ts-details-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.ts-details-label {
  color: var(--text-muted);
}

.ts-details-value {
  font-family: var(--font-accent);
  font-weight: 600;
}

/* Servers Status Widget (Game Servers) */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.server-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.server-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.server-info {
  display: flex;
  flex-direction: column;
}

.server-name {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-icon {
  color: var(--color-red);
  font-size: 0.9rem;
}

.server-ip {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
  margin-top: 0.15rem;
}

.server-players-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.server-players-count {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.server-bar-bg {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.server-bar-fill {
  height: 100%;
  background: var(--color-red);
  border-radius: 2px;
}

.server-bar-fill.online {
  background: #23a55a;
  box-shadow: 0 0 5px rgba(35, 165, 90, 0.5);
}

/* Modální okna (Modal windows) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  padding: 2.5rem;
  border-top: 4px solid var(--color-red);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-red-hover);
  transform: rotate(90deg);
}

.modal-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-red);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(230, 30, 42, 0.15);
}

select.form-input {
  cursor: pointer;
}

select.form-input option {
  background: var(--bg-secondary);
  color: #fff;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-red);
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
  min-width: 250px;
  animation: toastFadeIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@keyframes toastFadeIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left-color: #23a55a;
}

.toast.error {
  border-left-color: #ef4444;
}

/* Footer Section */
footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-links-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--color-red);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links-col a:hover {
  color: var(--color-red-hover);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(35, 165, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0);
  }
}

/* Media Queries (Responsive Design) */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    display: none; /* In a full mobile implementation, this would toggle. For now, links are accessible in header and footer */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .news-card {
    grid-template-columns: 1fr;
  }
  
  .news-img-wrapper {
    clip-path: none;
    height: 200px;
  }
  
  .news-img-overlay {
    background: linear-gradient(0deg, rgba(16,18,22,0.9) 0%, rgba(8,9,12,0.2) 100%);
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Upper Bar & Facebook Widget Adjustments (Fáze 2+) --- */

.upper-bar {
  background: #040506;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  height: 32px;
  overflow: hidden;
}

.upper-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upper-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.upper-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upper-bar-right a {
  color: var(--text-secondary);
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.upper-bar-right a:hover {
  color: var(--color-red-hover);
}

.bar-separator {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

/* Scroll Hide Effect for Upper Bar */
header.scrolled .upper-bar {
  height: 0;
  border-bottom-color: transparent;
}

/* Facebook Feed Responsive fixes */
#facebook-widget iframe {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 4px;
}

/* Mobile Menu Responsiveness overrides (Fáze 2+) */
@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
  }
  
  nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 9, 12, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 999;
  }
  
  nav.active ul {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
  
  nav a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    display: block;
  }
}

@media (max-width: 480px) {
  .upper-bar {
    height: auto;
  }
  
  .upper-bar-container {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    text-align: center;
  }
  
  .upper-bar-left {
    display: none;
  }
  
  header.scrolled .upper-bar {
    height: 0;
    padding: 0;
    overflow: hidden;
  }
}

/* News Detail Modal styling enhancements */
#modal-news-detail .modal-content {
  border-top: 4px solid var(--color-red);
}
.news-detail-header img {
  filter: brightness(0.85);
}
#detail-news-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
