/* Social Username Checker - Styles */

/* Form styling */
.tool-form {
  margin-bottom: 40px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row .form-control {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-row .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* Results container */
.results-container {
  margin-top: 40px;
}

/* Loading state */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading p {
  color: #6c757d;
  font-size: 16px;
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Social card */
.social-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

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

.social-card.checking {
  border-color: #f0f0f0;
  background: #fafafa;
}

.social-card.available {
  border-color: #27ae60;
  background: #f0fdf4;
}

.social-card.taken {
  border-color: #e74c3c;
  background: #fef2f2;
}

.social-card.error {
  border-color: #f39c12;
  background: #fffbeb;
}

/* Social header */
.social-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social-header i {
  font-size: 28px;
  width: 32px;
  text-align: center;
}

/* Platform-specific icon colors */
.social-card[data-platform="instagram"] .social-header i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-card[data-platform="facebook"] .social-header i {
  color: #1877f2;
}

.social-card[data-platform="twitter"] .social-header i {
  color: #000000;
}

.social-card[data-platform="tiktok"] .social-header i {
  color: #000000;
}

.social-card[data-platform="youtube"] .social-header i {
  color: #ff0000;
}

.social-card[data-platform="reddit"] .social-header i {
  color: #ff4500;
}

.social-card[data-platform="pinterest"] .social-header i {
  color: #e60023;
}

.social-card[data-platform="linkedin"] .social-header i {
  color: #0a66c2;
}

.social-card[data-platform="twitch"] .social-header i {
  color: #9146ff;
}

.social-card[data-platform="github"] .social-header i {
  color: #181717;
}

.social-card[data-platform="snapchat"] .social-header i {
  color: #fffc00;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.social-card[data-platform="medium"] .social-header i {
  color: #000000;
}

.platform-name {
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
}

/* Social status */
.social-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.checking {
  background: #95a5a6;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-indicator.available {
  background: #27ae60;
}

.status-indicator.taken {
  background: #e74c3c;
}

.status-indicator.error {
  background: #f39c12;
}

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

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

/* Social link */
.social-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: #5568d3;
  transform: translateX(2px);
}

/* Summary section */
.summary-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  color: white;
}

.summary-section h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  text-align: center;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .summary-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Tips section */
.tips-section {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 40px;
}

.tips-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #2c3e50;
}

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

.tips-section li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #495057;
}

.tips-section li:last-child {
  margin-bottom: 0;
}

.tips-section strong {
  color: #2c3e50;
}

/* CTA section */
.cta-security {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
  margin-top: 60px;
}

.cta-security h2 {
  margin: 0 0 16px 0;
  font-size: 32px;
}

.cta-security p {
  font-size: 18px;
  margin: 0 0 28px 0;
  opacity: 0.95;
}

.btn-accent {
  background: white;
  color: #667eea;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .cta-security h2 {
    font-size: 24px;
  }

  .cta-security p {
    font-size: 16px;
  }
}
