/* World Clock - Clean & Readable Design */

/* ========== Clock Controls ========== */
.clock-controls {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .clock-controls {
  background: #1e293b;
  border-color: #475569;
}

.control-group {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.control-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .control-label {
  color: #9ca3af;
}

.timezone-select {
  flex: 1;
  min-width: 280px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #111827;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
}

.timezone-select:hover {
  border-color: #FFC53A;
}

.timezone-select:focus {
  outline: none;
  border-color: #FFC53A;
  box-shadow: 0 0 0 3px rgba(255, 197, 58, 0.2);
}

[data-theme="dark"] .timezone-select {
  background: #334155;
  color: #f1f5f9;
  border-color: #64748b;
}

/* ========== Clock Grid ========== */
.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ========== Clock Card ========== */
.clock-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.clock-card:hover {
  border-color: #FFC53A;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .clock-card {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .clock-card:hover {
  border-color: #FAFF81;
}

/* ========== Clock Header ========== */
.clock-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.clock-card__city {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

[data-theme="dark"] .clock-card__city {
  color: #f1f5f9;
}

.clock-card__remove {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.clock-card__remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.clock-card__remove svg {
  width: 20px;
  height: 20px;
}

/* ========== Clock Time Display ========== */
.clock-card__time {
  font-size: 2.5rem;
  font-weight: 700;
  color: #161032;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
  line-height: 1;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

[data-theme="dark"] .clock-card__time {
  color: #FAFF81;
}

.clock-card__date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .clock-card__date {
  color: #9ca3af;
}

/* ========== Clock Metadata ========== */
.clock-card__meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

[data-theme="dark"] .clock-card__meta {
  border-top-color: #475569;
}

.clock-meta-item {
  flex: 1;
}

.clock-meta-item__label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.clock-meta-item__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

[data-theme="dark"] .clock-meta-item__value {
  color: #f1f5f9;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
}

[data-theme="dark"] .empty-state {
  background: #0f172a;
  border-color: #475569;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__text {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .empty-state__text {
  color: #9ca3af;
}

/* ========== Info Cards ========== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.info-card:hover {
  border-color: #FFC53A;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .info-card {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .info-card:hover {
  border-color: #FAFF81;
}

.info-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.info-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .info-card__title {
  color: #f1f5f9;
}

.info-card__text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .info-card__text {
  color: #9ca3af;
}

/* ========== Content Sections ========== */
.content-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.content-section--highlight {
  background: #fffbeb;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

[data-theme="dark"] .content-section--highlight {
  background: #1e293b;
}

.content-section--practical {
  background: #f9fafb;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

[data-theme="dark"] .content-section--practical {
  background: #0f172a;
}

.content-section--seo {
  border: 2px solid #FFC53A;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  background: #fffbeb;
}

[data-theme="dark"] .content-section--seo {
  background: #1e293b;
  border-color: #FAFF81;
}

.content-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1.5rem;
}

[data-theme="dark"] .content-section__title {
  color: #f1f5f9;
}

.content-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
  border-left: 4px solid #FFC53A;
  padding-left: 1.5rem;
  margin: 0 0 2rem;
  font-weight: 500;
}

[data-theme="dark"] .content-lead {
  color: #d1d5db;
}

.content-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem;
}

[data-theme="dark"] .content-subtitle {
  color: #f1f5f9;
}

.content-rich p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #374151;
}

[data-theme="dark"] .content-rich p {
  color: #d1d5db;
}

.content-rich strong {
  color: #111827;
  font-weight: 700;
}

[data-theme="dark"] .content-rich strong {
  color: #f1f5f9;
}

.content-list {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: #374151;
}

[data-theme="dark"] .content-list {
  color: #d1d5db;
}

.content-list li {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.content-list li::marker {
  color: #FFC53A;
}

.content-link {
  color: #161032;
  text-decoration: underline;
  text-decoration-color: #FFC53A;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.2s;
  font-weight: 600;
}

.content-link:hover {
  color: #E06D06;
  text-decoration-color: #E06D06;
}

[data-theme="dark"] .content-link {
  color: #FAFF81;
}

[data-theme="dark"] .content-link:hover {
  color: #FFC53A;
}

/* ========== Error Fix Grid ========== */
.error-fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.error-fix-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.error-fix-card:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .error-fix-card {
  background: #1e293b;
  border-color: #475569;
}

.error-fix-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

[data-theme="dark"] .error-fix-card__title {
  color: #f1f5f9;
}

.error-fix-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.error-fix-card__subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .error-fix-card__subtitle {
  color: #f1f5f9;
}

.error-fix-card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1rem;
}

[data-theme="dark"] .error-fix-card__text {
  color: #d1d5db;
}

/* ========== Example Grid ========== */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.example-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.example-card:hover {
  border-color: #FFC53A;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .example-card {
  background: #1e293b;
  border-color: #475569;
}

.example-card__header {
  padding: 1.5rem;
  background: #fffbeb;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .example-card__header {
  background: #0f172a;
  border-bottom-color: #475569;
}

.example-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

[data-theme="dark"] .example-card__title {
  color: #f1f5f9;
}

.example-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #FFC53A;
  color: #161032;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9999px;
}

.example-card__content {
  padding: 1.5rem;
}

.example-card__subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
}

[data-theme="dark"] .example-card__subtitle {
  color: #f1f5f9;
}

.example-card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1rem;
}

[data-theme="dark"] .example-card__text {
  color: #d1d5db;
}

/* ========== Comparison Table ========== */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: white;
}

[data-theme="dark"] .comparison-table-wrapper {
  background: #1e293b;
  border-color: #475569;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table thead {
  background: #f9fafb;
}

[data-theme="dark"] .comparison-table thead {
  background: #0f172a;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
  text-transform: uppercase;
  font-size: 0.75rem;
}

[data-theme="dark"] .comparison-table th {
  color: #f1f5f9;
  border-bottom-color: #475569;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  line-height: 1.6;
}

[data-theme="dark"] .comparison-table td {
  color: #d1d5db;
  border-bottom-color: #475569;
}

.comparison-table strong {
  color: #111827;
  font-weight: 700;
}

[data-theme="dark"] .comparison-table strong {
  color: #f1f5f9;
}

/* ========== Table of Contents ========== */
.table-of-contents {
  background: #fffbeb;
  border: 2px solid #FFC53A;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

[data-theme="dark"] .table-of-contents {
  background: #1e293b;
  border-color: #FAFF81;
}

.toc-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1.5rem;
}

[data-theme="dark"] .toc-title {
  color: #f1f5f9;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.toc-item {
  margin: 0;
}

.toc-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: white;
  color: #161032;
  border-left-color: #FFC53A;
  padding-left: 1.25rem;
}

[data-theme="dark"] .toc-link {
  color: #d1d5db;
}

[data-theme="dark"] .toc-link:hover {
  background: #0f172a;
  color: #FAFF81;
  border-left-color: #FAFF81;
}

/* ========== FAQ Section ========== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: #FFC53A;
}

[data-theme="dark"] .faq-item {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .faq-item:hover {
  border-color: #FAFF81;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}

.faq-question:hover {
  background: #f9fafb;
}

[data-theme="dark"] .faq-question:hover {
  background: #0f172a;
}

.faq-question[aria-expanded="true"] {
  background: #fffbeb;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .faq-question[aria-expanded="true"] {
  background: #0f172a;
  border-bottom-color: #475569;
}

.faq-question-text {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}

[data-theme="dark"] .faq-question-text {
  color: #f1f5f9;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: #FFC53A;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

[data-theme="dark"] .faq-icon {
  color: #FAFF81;
}

.faq-answer {
  display: none;
  overflow: hidden;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #374151;
  line-height: 1.75;
  font-size: 0.875rem;
}

[data-theme="dark"] .faq-answer-content {
  color: #d1d5db;
}

.faq-answer-content p {
  margin: 0 0 1rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-answer-content li {
  margin: 0.5rem 0;
}

.faq-answer-content li::marker {
  color: #FFC53A;
}

.faq-answer-content strong {
  color: #111827;
  font-weight: 700;
}

[data-theme="dark"] .faq-answer-content strong {
  color: #f1f5f9;
}

.faq-answer-content a {
  color: #161032;
  text-decoration: underline;
  text-decoration-color: #FFC53A;
  text-underline-offset: 2px;
  font-weight: 600;
}

.faq-answer-content a:hover {
  color: #E06D06;
}

[data-theme="dark"] .faq-answer-content a {
  color: #FAFF81;
}

[data-theme="dark"] .faq-answer-content a:hover {
  color: #FFC53A;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .clock-grid {
    grid-template-columns: 1fr;
  }

  .control-group {
    flex-direction: column;
    align-items: stretch;
  }

  .timezone-select {
    min-width: 100%;
  }

  .clock-card__time {
    font-size: 2rem;
  }

  .info-cards,
  .error-fix-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .content-section--highlight,
  .content-section--practical,
  .content-section--seo {
    margin-left: 0;
    margin-right: 0;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .clock-card__time {
    font-size: 1.75rem;
  }

  .clock-card__meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .content-section__title {
    font-size: 1.5rem;
  }
}

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

.clock-card {
  animation: slideIn 0.3s ease-out;
}
