/**
 * COMPARISON MODAL - Modern Glassmorphism Style
 * For Comet vs Other Browsers
 */

/* Modal Overlay */
.comparison-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.comparison-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.comparison-modal {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.comparison-modal-overlay.active .comparison-modal {
  transform: scale(1);
}

/* Modal Header */
.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.modal-header .browser-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-header .vs-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Browser Selector */
.browser-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.browser-option {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  background: white;
}

.browser-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.browser-option.active {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.browser-option-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.browser-option-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
}

/* Comparison Content */
.comparison-content {
  display: none;
}

.comparison-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Comparison Section */
.comparison-section {
  margin-bottom: 2rem;
}

.comparison-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Advantage List */
.advantage-list,
.weakness-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantage-list li,
.weakness-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.advantage-list li {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
  color: #065f46;
}

.weakness-list li {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.verdict-box h4 {
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.verdict-box p {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  background: #f7fafc;
  padding: 1rem;
  border-radius: 8px;
}

.info-label {
  font-size: 0.75rem;
  color: #718096;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 600;
}

/* Modal Footer */
.modal-footer {
  padding: 1.5rem 2rem;
  background: #f7fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-try-comet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-try-comet:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-modal {
    margin: 1rem;
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 1.5rem 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-header .browser-logos {
    font-size: 2rem;
  }
  
  .modal-body {
    padding: 1.5rem 1rem;
  }
  
  .browser-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}
