/* ============================================================================
   MLA Rating Widget - OneIndia Tamil Theme - FROZEN v4.4
   ============================================================================
   Status: FROZEN - DO NOT MODIFY
   Release Date: October 16, 2025
   Production URL: https://tntopmla.com/widget/mla-rating-widget.css
   Partner: OneIndia Tamil (tamil.oneindia.com)
   ============================================================================ */

.mla-widget {
  font-family: 'Noto Sans Tamil', 'Noto Sans', Arial, sans-serif;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 100%;
  /* max-width: 328px; */
  transition: all 0.3s ease;
}

.mla-widget:hover {
  border-color: #4b5563;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.mla-widget-compact {
  min-height: 400px;
}

.mla-widget-medium {
  min-height: 550px;
}

.mla-widget-full {
  min-height: 700px;
}

/* Header - Enhanced Dark Theme */
.mla-widget-header {
  background: #1f2937;
  color: #ffffff;
  padding: 18px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #374151;
}

.mla-widget-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.mla-widget-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Body */
.mla-widget-body {
  padding: 8px 16px 16px 16px;
  min-height: 300px;
}

/* District Selector */
.mla-widget-district-selector {
  margin-bottom: 16px;
}

.mla-widget-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #ffffff;
}

.mla-widget-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #28313A;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.mla-widget-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* MLA Card - Enhanced Modern Design */
.mla-widget-mla-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mla-widget-mla-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #374151;
  border-radius: 12px;
  border: 1px solid #4b5563;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mla-widget-mla-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3b82f6;
}

.mla-widget-mla-info:hover {
  border-color: #6b7280;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.mla-widget-photo-container {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.mla-widget-mla-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mla-widget-photo-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 3px solid #dbeafe;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mla-widget-mla-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.mla-widget-mla-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.3px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.mla-widget-mla-party {
  margin: 0;
  font-size: 14px;
  color: #60a5fa;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.mla-widget-mla-constituency {
  margin: 0;
  font-size: 13px;
  color: #d1d5db;
  font-weight: 500;
  text-align: center;
}

.mla-widget-mla-votes {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.mla-widget-mla-votes::before {
  content: '•';
  color: #60a5fa;
  font-weight: bold;
  line-height: 1;
}

/* Vote Section - Enhanced Button */
.mla-widget-vote-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mla-widget-vote-now-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

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

.mla-widget-vote-now-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.mla-widget-vote-now-btn:hover::before {
  left: 100%;
}

.mla-widget-vote-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* Change Selection Button */
.mla-widget-change-selection-btn {
  width: 100%;
  padding: 12px 20px;
  background: #28313A;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px #28313A;
  border: 1px solid #4b5563;
}

.mla-widget-change-selection-btn:hover {
  background: #28313A;
  border: 1px solid #4b5563;
}

.mla-widget-change-selection-btn:active {
  transform: translateY(0);
}

/* Rating Section */
.mla-widget-rating-section {
  padding: 0;
}

.mla-widget-rating-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
  text-align: center;
}

.mla-widget-rating-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mla-widget-rating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.mla-widget-rating-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mla-widget-rating-emoji {
  font-size: 22px;
  line-height: 1;
}

.mla-widget-rating-text {
  flex: 1;
}

.mla-widget-rating-very-good {
  border-color: #4caf50;
  color: #2e7d32;
}

.mla-widget-rating-very-good:hover {
  background: #e8f5e9;
  border-color: #388e3c;
}

.mla-widget-rating-good {
  border-color: #8bc34a;
  color: #558b2f;
}

.mla-widget-rating-good:hover {
  background: #f1f8e9;
  border-color: #689f38;
}

.mla-widget-rating-neutral {
  border-color: #fbbf24;
  color: #f59e0b;
}

.mla-widget-rating-neutral:hover {
  background: #fff8e1;
  border-color: #ffa000;
}

.mla-widget-rating-bad {
  border-color: #f97316;
  color: #ea580c;
}

.mla-widget-rating-bad:hover {
  background: #4b5563;
  border-color: #f97316;
}

.mla-widget-rating-very-bad {
  border-color: #6b7280;
  color: #9ca3af;
}

.mla-widget-rating-very-bad:hover {
  background: #4b5563;
  border-color: #6b7280;
}

/* Thank You Screen */
.mla-widget-thank-you {
  text-align: center;
  padding: 32px 16px;
}

.mla-widget-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #4caf50;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
}

.mla-widget-thank-you h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #212529;
}

.mla-widget-thank-you p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #666;
}

.mla-widget-view-link {
  display: inline-block;
  padding: 10px 24px;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.mla-widget-view-link:hover {
  background: #2563eb;
}

/* Footer */
.mla-widget-footer {
  padding: 10px 16px;
  background: #1f2937;
  border-top: 1px solid #374151;
  text-align: center;
}

.mla-widget-brand {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.mla-widget-brand:hover {
  color: #60a5fa;
}

/* Loading State */
.mla-widget-loading {
  text-align: center;
  padding: 40px 20px;
  color: #d1d5db;
  font-size: 14px;
}

/* Error State */
.mla-widget-error {
  text-align: center;
  padding: 20px;
  color: #fca5a5;
  font-size: 14px;
  background: #7f1d1d;
  border-radius: 6px;
  margin: 16px;
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .mla-widget {
    width: 100%;
  }
  
  .mla-widget-title {
    font-size: 14px;
  }
  
  .mla-widget-rating-text {
    font-size: 12px;
  }
}

/* Combined Selector - Desktop and Mobile Responsive */
.mla-widget-combined-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mla-widget-step-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.mla-widget-step-indicator {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mla-widget-selector-group {
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.mla-widget-selector-group.selected {
  border-color: #3b82f6;
  background: #374151;
  box-shadow: 0 0 0 2px #3b82f6;
}

.mla-widget-selector-group.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #374151;
}

.mla-widget-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mla-widget-step-number {
  margin-right: 6px;
  font-size: 16px;
}

.mla-widget-change-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px #3b82f6;
}

.mla-widget-change-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.mla-widget-change-btn:active {
  transform: translateY(0);
}

.mla-widget-navigation {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.mla-widget-back-btn {
  background: #28313A;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px #28313A;
  border: 1px solid #4b5563;
}

.mla-widget-back-btn:hover {
  background: #28313A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #28313A;
}

.mla-widget-back-btn:active {
  transform: translateY(0);
}

/* Desktop Responsive - Wider on desktop, 328px max on mobile */
@media (min-width: 600px) {
  .mla-widget {
    max-width: 500px;
  }
  
  .mla-widget-combined-selector {
    gap: 20px;
  }
  
  .mla-widget-selector-group {
    padding: 20px;
  }
  
  .mla-widget-select {
    font-size: 15px;
    padding: 12px 14px;
  }
  
  .mla-widget-label {
    font-size: 15px;
  }
  
  .mla-widget-change-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .mla-widget-back-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* OneIndia Tamil Specific Theme Overrides */
.mla-widget-oneindia .mla-widget-header {
  background: #1f2937;
  border-bottom: 1px solid #374151;
}

.mla-widget-oneindia .mla-widget-view-link {
  background: #3b82f6;
}

.mla-widget-oneindia .mla-widget-view-link:hover {
  background: #2563eb;
}
