/* ========== Variables ========== */
:root {
  --primary: #C41E3A;
  --primary-dark: #A01830;
  --primary-light: #E8354F;
  --secondary: #1B2A4A;
  --secondary-light: #2C3E6B;
  --bg: #F5F6FA;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

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

/* ========== Header ========== */
.header {
  background: var(--secondary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo i {
  font-size: 2rem;
  color: var(--primary);
}
.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.logo-text p {
  font-size: 0.75rem;
  opacity: 0.8;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav a:hover { color: var(--primary-light); }

/* Language Switcher */
.language-switcher { position: relative; }
.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
  margin-top: 4px;
}
.lang-dropdown.show { display: block; }
.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  transition: var(--transition);
  font-size: 0.9rem;
}
.lang-dropdown a:hover { background: var(--bg); color: var(--primary); }
.lang-dropdown a.active { background: var(--primary); color: var(--white); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ========== Sections ========== */
.section {
  padding: 50px 0;
}
.section-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--primary); }
.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 400;
}
.badge.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ========== Search Form ========== */
.search-section { background: var(--white); }
.search-form {
  background: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.1);
}
.form-group textarea { resize: vertical; }
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: #ccc; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-info { background: var(--info); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ========== Data Table ========== */
.results-table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.data-table th {
  background: var(--secondary);
  color: var(--white);
  padding: 12px;
  text-align: left;
  font-size: 0.85rem;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.data-table tr:hover { background: rgba(196,30,58,0.03); }
.data-table .status-dishonest {
  color: var(--danger);
  font-weight: 600;
}
.data-table .status-normal {
  color: var(--success);
  font-weight: 600;
}
.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 1rem;
}
.no-results i { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ========== Scroll List ========== */
.list-section { background: var(--bg); }

/* ========== Pagination Buttons ========== */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(196,30,58,0.05);
}
.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== Old Scroll List (kept for compat) ========== */
.scroll-list-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 400px;
  position: relative;
}
.scroll-list {
  height: 100%;
  overflow: hidden;
}
.scroll-item {
  display: grid;
  grid-template-columns: 50px 1fr 120px 100px 150px 100px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  align-items: center;
  transition: var(--transition);
}
.scroll-item:hover { background: rgba(196,30,58,0.03); }
.scroll-item .index {
  color: var(--primary);
  font-weight: 700;
}
.scroll-item .name { font-weight: 600; }
.scroll-item .country { color: var(--text-light); }
.scroll-item .amount { color: var(--primary); font-weight: 600; }
.scroll-item .reason {
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scroll-item .status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(220,53,69,0.1);
  color: var(--danger);
  font-weight: 600;
}

/* ========== Announcements ========== */
.announcements-section { background: var(--white); }
.announcements-list { display: grid; gap: 16px; }
.announcement-item {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.announcement-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.announcement-item h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 8px;
}
.announcement-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.announcement-item .date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ========== Partners ========== */
.partners-section { background: var(--bg); }
.partners-category { margin-bottom: 30px; }
.partners-category h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.partner-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.partner-card .partner-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}
.partner-card h5 {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 4px;
}
.partner-card p {
  font-size: 0.75rem;
  color: var(--text-light);
}
.partner-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--primary);
}
.partner-card a:hover { text-decoration: underline; }

/* ========== Feedback ========== */
.feedback-section { background: var(--white); }
.feedback-form {
  background: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.feedback-message {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 600;
}
.feedback-message.success {
  background: rgba(40,167,69,0.1);
  color: var(--success);
}
.feedback-message.error {
  background: rgba(220,53,69,0.1);
  color: var(--danger);
}

/* ========== Footer ========== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 40px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary-light);
}
.footer-col p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.8;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col p i { margin-right: 8px; color: var(--primary-light); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 20px;
    gap: 12px;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-btn { display: block; }
  .hero-content h2 { font-size: 1.4rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .scroll-item {
    grid-template-columns: 30px 1fr 80px;
    gap: 4px;
  }
  .scroll-item .reason,
  .scroll-item .country,
  .scroll-item .status-tag { display: none; }
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .language-switcher { width: 100%; }
  .lang-dropdown { left: 0; right: 0; }
  .section { padding: 30px 0; }
  .section-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .logo-text h1 { font-size: 0.9rem; }
  .logo-text p { display: none; }
  .hero { padding: 30px 0; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
