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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  position: relative;
}

/* Background */
.background {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(120, 119, 198, 0.1), transparent 50%);
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.logo-text {
  font-size: 1.875rem;
  font-weight: bold;
  background: linear-gradient(45deg, #06b6d4, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #06b6d4;
  font-size: 0.875rem;
}

.status-icon {
  width: 1rem;
  height: 1rem;
}

.subtitle {
  color: rgba(103, 232, 249, 0.7);
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
  margin-top: 0.5rem;
}

/* Main content */
.main {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #06b6d4;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6);
}

/* News grid */
.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* News cards */
.news-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category-badge {
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.card-meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(6, 182, 212, 0.7);
}

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

.meta-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  line-height: 1.4;
  color: #fff;
  transition: color 0.3s ease;
}

.news-card:hover .card-title {
  color: #67e8f9;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-description {
  color: #d1d5db;
  line-height: 1.6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.read-more-btn {
  background: none;
  border: none;
  color: #06b6d4;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #67e8f9;
}

.read-more-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #06b6d4;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.read-more-btn:hover .read-more-dot {
  animation: none;
}

/* Footer */
.footer-info {
  margin-top: 3rem;
  text-align: center;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(6, 182, 212, 0.5);
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 56rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-header-info {
  flex: 1;
}

.modal-category {
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(6, 182, 212, 0.7);
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #06b6d4;
}

.modal-title {
  padding: 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #67e8f9;
  margin-bottom: 1rem;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0 1.5rem 1.5rem;
}

.modal-content-scroll {
  height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.modal-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-content-scroll::-webkit-scrollbar-track {
  background: rgba(55, 65, 81, 0.3);
  border-radius: 3px;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.5);
  border-radius: 3px;
}

.modal-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.7);
}

.modal-paragraph {
  color: #d1d5db;
  line-height: 1.6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.modal-paragraph:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .modal-content {
    margin: 1rem;
    max-height: 90vh;
  }

  .modal-content-scroll {
    height: 50vh;
  }
}
