/* WordsToTime Custom Styles - SEO Optimized */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Header & Navigation */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Desktop Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
}

.mega-menu-trigger:hover .mega-menu,
.mega-menu:hover {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-width: 600px;
}

@media (max-width: 768px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
    min-width: auto;
    width: 280px;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: #f3f4f6;
}

/* Calculator Styles */
.calculator-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  padding: 2rem;
  color: white;
}

/* SEO Content */
.seo-content {
  line-height: 1.8;
}

.seo-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.seo-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  transition: text-decoration-color 0.2s;
}

.seo-content a:hover {
  text-decoration-color: #2563eb;
}

/* FAQ Styles */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: #4b5563;
  line-height: 1.7;
}

/* Practice Mode Styles */
.practice-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.practice-display {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .practice-display {
    font-size: 2rem;
    padding: 1.5rem;
    min-height: 120px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* AdSense Container */
.ad-container {
  margin: 2rem 0;
  min-height: 100px;
  text-align: center;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Print Styles */
@media print {
  header, footer, .ad-container, .practice-controls {
    display: none;
  }
}