/* CSS Variables */
:root{
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --tag-bg: #000;
  --tag-bg-hover: #333;
  --reset-bg: #e8e8e8;
  --card-border: rgba(0,0,0,0.45);
  --bg: #f0f4f9;
  --text: #111;
  --card-bg: linear-gradient(160deg, rgba(120,170,220,0.96), rgba(210,233,247,0.96));
}

/* Dark Mode Variables */
body.dark {
  --bg: #1e1e2e;
  --text: #e0e0e0;
  --tag-bg: #2a2b3d;
  --tag-bg-hover: #3c3d4f;
  --reset-bg: #2a2b3d;
  --card-border: rgba(255,255,255,0.1);
  --card-bg: #2a2b3d;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body{
  margin:0;
  font-family: 'Poppins', Inter, Roboto, Arial, sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  background: var(--bg);
  color: var(--text);
  padding:28px 18px 60px;
  transition: all 0.3s ease;
}
.seo-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Warning Banner Styles */
.warning-banner {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  color: #333;
  padding: 12px 20px;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.warning-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 15px;
}

.warning-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  flex: 1;
}

.warning-text i {
  font-size: 16px;
  color: #ff6b6b;
}

.warning-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* Safety Modal Styles */
.safety-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.safety-modal .modal-content {
  background: var(--bg);
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin: 0;
}

.safety-modal .modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px 25px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.safety-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-modal .close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-modal .close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.safety-modal .modal-body {
  padding: 25px;
  line-height: 1.6;
  color: var(--text);
}

.safety-section {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(0,123,255,0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

body.dark .safety-section {
  background: rgba(0,123,255,0.1);
}

.safety-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-section ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.safety-section li {
  margin: 8px 0;
  font-size: 14px;
}

.safety-modal .modal-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  background: rgba(0,0,0,0.02);
  border-radius: 0 0 16px 16px;
}

body.dark .safety-modal .modal-footer {
  background: rgba(255,255,255,0.02);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Safety Notes in Cards */
.safety-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255,193,7,0.1);
  border-radius: 8px;
  border-left: 3px solid var(--warning);
}

.safety-note small {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.safety-note i {
  color: var(--warning);
  font-size: 12px;
}

body.dark .safety-note {
  background: rgba(255,193,7,0.15);
}

/* Basic Animations */
@keyframes blink { 
  0%,100% { opacity:1; } 
  50% { opacity:0.6; } 
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes bounce { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-3px); } 
}

/* Header Styles */
h1{ 
  margin:0 0 18px; 
  font-size:48px; 
  font-weight:800; 
  letter-spacing:-2px;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stats-bar {
  background: var(--card-bg);
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--card-border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-item i { 
  color: var(--primary); 
}

/* Controls Styles */
.controls{ 
  width:90%; 
  max-width:1200px; 
  display:flex; 
  align-items:center; 
  gap:14px; 
  flex-wrap:wrap; 
  justify-content:center; 
  margin-bottom:24px; 
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 18px;
  padding: 0 8px;
  box-sizing: border-box;
}

.search-bar {
  width: 100%;           
  padding: 14px 48px;  
  font-size: 16px;
  border: 2px solid var(--card-border);
  border-radius: 25px;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-wrapper i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
}

.search-wrapper .fa-search { 
  left: 25px; 
}

.search-wrapper .fa-microphone { 
  right: 25px; 
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s;
}

.search-wrapper .fa-microphone:hover { 
  color: var(--danger);
  transform: translateY(-50%) scale(1.2);
}

.advanced-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--reset-bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn.active { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}

/* Tags Styles */
.tags{ 
  display:flex; 
  gap:10px; 
  flex-wrap:wrap; 
  justify-content:center; 
}

.tag{ 
  background:var(--tag-bg); 
  color:#fff; 
  padding:10px 18px; 
  border-radius:25px; 
  font-size:14px; 
  cursor:pointer; 
  transition:all .3s ease; 
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

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

.tag:hover::before { 
  left: 100%; 
}

.tag:hover{ 
  background:var(--tag-bg-hover); 
  transform:translateY(-3px) scale(1.05); 
}

.tag.active{ 
  background:var(--primary); 
  box-shadow:0 8px 16px rgba(0,123,255,0.3); 
}

.view-toggle {
  display: flex;
  background: var(--reset-bg);
  border-radius: 25px;
  overflow: hidden;
}

.view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text);
}

.view-btn.active {
  background: var(--primary);
  color: white;
}

/* Cards Grid Layout */
.cards{ 
  width:90%; 
  max-width:1200px; 
  display:grid; 
  gap:24px; 
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr)); 
  transition: all 0.3s ease;
}

.cards.list-view {
  grid-template-columns: 1fr;
}

.cards.compact-view {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Card Styles - NO HOVER ANIMATIONS */
.card{
  position:relative;
  min-height:200px;
  padding:20px;
  padding-bottom:50px;
  border-radius:16px;
  border:1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before { 
  opacity: 0.1; 
}

body.dark .card { 
  background: var(--card-bg); 
}

.card.expanded {
  min-height: 350px;
}

.card.favorite::after {
  content: '⭐';
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 12px;
  animation: pulse 2s infinite;
}

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

.card .title{ 
  background:#1e1e2e; 
  color:#fff; 
  padding:8px 16px; 
  border-radius:25px; 
  font-size:14px; 
  font-weight:700; 
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--card-border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-online { 
  background: var(--success); 
}

.status-offline { 
  background: var(--danger); 
}

.status-checking { 
  background: var(--warning); 
  animation: blink 1s infinite; 
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  color: #333;
  transition: all 0.3s ease;
}

.card-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-btn.refresh:hover { 
  background: var(--info); 
  color: white; 
}

.card-btn.favorite:hover { 
  background: var(--warning); 
  color: white; 
}

.card-btn.favorite.active { 
  background: var(--warning); 
  color: white; 
}

.card-btn.expand:hover { 
  background: var(--secondary); 
  color: white; 
}

body.dark .card-btn {
  background: rgba(42, 43, 61, 0.9);
  color: #e0e0e0;
  border: 1px solid rgba(255,255,255,0.2);
}

.card ul{ 
  margin:10px 0 0; 
  padding-left:22px; 
  list-style-type: disc; 
}

.card ul li{ 
  margin:10px 0; 
  font-size:15px; 
  line-height:1.5; 
  display:list-item; 
}

/* EXPAND FUNCTIONALITY - NO ANIMATIONS */
.card .description {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0,0,0,0.8);
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.card .description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.05));
  pointer-events: none;
  opacity: 1;
}

body.dark .card .description {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

body.dark .card .description::after {
  background: linear-gradient(transparent, rgba(255,255,255,0.05));
}

.card.expanded .description {
  max-height: none;
  overflow: visible;
  margin-bottom: 10px;
}

.card.expanded .description::after {
  opacity: 0;
}

.card-footer {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
}

body.dark .card-footer { 
  color: rgba(255,255,255,0.6); 
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  max-width: 1000px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-main {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

body.dark .footer-main {
  color: rgba(255,255,255,0.7);
}

body.dark .footer-disclaimer {
  color: rgba(255,255,255,0.4);
}

/* Links */
.card a { 
  color: #06327a; 
  text-decoration: none; 
  font-weight: 500;
  transition: all 0.2s;
}

.card a:hover { 
  color: var(--primary);
  text-decoration: underline;
}

body.dark .card a { 
  color: #4fc3f7; 
}

body.dark .card a:hover { 
  color: #80d8ff; 
  text-decoration: underline; 
}

/* Utility Elements */
.spinner { 
  border: 4px solid #f3f3f3; 
  border-top: 4px solid var(--primary); 
  border-radius: 50%; 
  width: 40px; 
  height: 40px; 
  animation: spin 1s linear infinite; 
  margin: 30px auto; 
}

.empty-state{ 
  text-align:center; 
  padding:40px; 
  color:rgba(0,0,0,0.6); 
  font-weight:600; 
  font-size: 16px;
}

body.dark .empty-state { 
  color: rgba(255,255,255,0.6); 
}

.new-badge { 
  display:inline-block; 
  background: linear-gradient(135deg, #FFD54F, #FFA726); 
  color:#000; 
  font-weight:700; 
  font-size:11px; 
  padding:4px 10px; 
  border-radius:20px; 
  margin-left:8px; 
  box-shadow:0 2px 8px rgba(255,193,7,0.4); 
  animation: bounce 2s infinite; 
}

.toast {
  position: fixed; 
  bottom: 20px; 
  right: 20px;
  background: linear-gradient(135deg, #333, #555); 
  color: #fff; 
  padding: 16px 20px;
  border-radius: 12px; 
  font-size: 14px; 
  opacity: 0;
  pointer-events: none; 
  transition: all 0.5s ease;
  display:flex; 
  align-items:center; 
  gap:10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-width: 300px;
  z-index: 1000;
}

.toast.show { 
  opacity: 1; 
  transform: translateY(-10px);
}

/* Notification Center */
.notification-center {
  position: fixed;
  top: 80px; right: 20px;
  width: 320px;
  max-height: 400px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.notification-center.show {
  transform: translateX(0);
}

.notification-header {
  padding: 16px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.notification-badge {
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: 5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 12px 40px;
  }
  
  h1 { 
    font-size: 36px; 
    margin-bottom: 16px;
  }
  
  .search-wrapper {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    margin-bottom: 16px;
  }
  
  .stats-bar {
    padding: 10px 16px;
    gap: 16px;
    font-size: 13px;
  }
  
  .controls { 
    flex-direction: column;
    gap: 12px;
  }
  
  .tags {
    gap: 8px;
  }
  
  .tag {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .advanced-controls { 
    justify-content: center;
    gap: 8px;
  }
  
  .btn {
    font-size: 13px;
    padding: 7px 14px;
  }
  
  .cards { 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 16px;
    padding-bottom: 45px;
    min-height: 180px;
  }
  
  .card .title {
    font-size: 14px;
    padding: 6px 14px;
  }
  
  .card-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .notification-center { 
    width: calc(100% - 40px); 
    right: 20px;
    top: 70px;
  }
  
  .toast {
    max-width: calc(100% - 40px);
    right: 20px;
    bottom: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  body {
    padding: 16px 8px 30px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .search-bar {
    font-size: 14px;
    padding: 12px 40px;
  }
  
  .cards {
    gap: 16px;
  }
  
  .card {
    padding: 14px;
    padding-bottom: 40px;
  }
  
  .safety-note {
    margin-top: 8px;
    padding: 8px 10px;
  }
  
  .safety-note small {
    font-size: 11px;
  }
}

/* Disclaimer Section Styles*/
.disclaimer-section {
  width: 90%;
  max-width: 1200px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(220, 53, 69, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.disclaimer-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.disclaimer-text i {
  color: #ffc107;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.disclaimer-text p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

body.dark .disclaimer-section {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(220, 53, 69, 0.15));
  border-color: rgba(255, 193, 7, 0.4);
}

/* Mobile Responsive  */
@media (max-width: 768px) {
  .disclaimer-section {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .disclaimer-text {
    gap: 10px;
  }
  
  .disclaimer-text i {
    font-size: 18px;
  }
  
  .disclaimer-text p {
    font-size: 13px;
  }
}