/**
 * AI Content Bot - Frontend Styles
 * Styles for generated opening hours content
 *
 * @package AIContentBot
 */

/* Working Hours Table */
.working-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.working-hours-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.working-hours-table th,
.working-hours-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.working-hours-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.working-hours-table tbody tr:hover {
  background-color: #f8f9ff;
}

.working-hours-table tbody tr:last-child td {
  border-bottom: none;
}

/* Weekend rows highlighted */
.working-hours-table tr.saturday,
.working-hours-table tr.sunday,
.working-hours-table tr:nth-child(6),
.working-hours-table tr:nth-child(7) {
  background-color: #fff8e6;
}

/* Closed indicator */
.working-hours-table td.closed {
  color: #d63638;
  font-weight: 600;
}

/* Open indicator */
.working-hours-table td.open {
  color: #00a32a;
  font-weight: 600;
}

/* Working Hours Intro Box */
.working-hours-intro {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
  border-left: 4px solid #667eea;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
}

.working-hours-intro p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Working Hours Note/Warning Box */
.working-hours-note {
  background: #fff8e6;
  border-left: 4px solid #dba617;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
}

.working-hours-note p {
  margin: 0;
  color: #5a4500;
  line-height: 1.6;
}

.working-hours-note strong {
  color: #b58900;
}

/* Quick Answer Box (Featured Snippet Style) */
.quick-answer {
  background: #f8fff8;
  border: 2px solid #00a32a;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 8px;
  font-size: 1.1em;
}

.quick-answer strong {
  color: #00a32a;
}

/* FAQ Section Styling */
.faq-section h2 {
  color: #1d2327;
  font-size: 1.5em;
  margin-top: 2em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #667eea;
}

.faq-section h3 {
  color: #2271b1;
  font-size: 1.1em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.faq-section h3::before {
  content: "❓ ";
}

/* Tips List */
.tips-list,
ul.tips {
  background: #f8f9ff;
  padding: 1em 1em 1em 2.5em;
  margin: 1.5em 0;
  border-radius: 8px;
  list-style: none;
}

.tips-list li,
ul.tips li {
  position: relative;
  padding: 0.5em 0;
  padding-left: 1.5em;
}

.tips-list li::before,
ul.tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00a32a;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .working-hours-table {
    font-size: 0.85em;
  }

  .working-hours-table th,
  .working-hours-table td {
    padding: 10px 8px;
  }

  .working-hours-table thead th:nth-child(n + 4) {
    display: none;
  }

  .working-hours-table tbody td:nth-child(n + 4) {
    display: none;
  }
}

/* Print Styles */
@media print {
  .working-hours-table {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .working-hours-intro,
  .working-hours-note {
    border: 1px solid #ccc;
    background: #fff !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .working-hours-table {
    background: #2c3338;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .working-hours-table td {
    color: #c3c4c7;
    border-bottom-color: #3c4349;
  }

  .working-hours-table tbody tr:hover {
    background-color: #3c4349;
  }

  .working-hours-intro {
    background: linear-gradient(135deg, #2c3338 0%, #1d2327 100%);
  }

  .working-hours-intro p {
    color: #c3c4c7;
  }

  .working-hours-note {
    background: #3c3620;
  }

  .working-hours-note p {
    color: #f0c33c;
  }
}

/* ================================================
   Gemini Working Hours Card (Premium Design)
   Professional, Mobile-First, User-Friendly
   ================================================ */
.gemini-working-hours-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 1.5em auto 2em auto;
  overflow: hidden;
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gemini-working-hours-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 300% 100%;
  animation: gradientSlide 4s ease infinite;
}

@keyframes gradientSlide {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gemini-working-hours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.06);
}

.gemini-hours-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.gemini-hours-header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.gemini-hours-title {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gemini-hours-title::before {
  content: "🕐";
  font-size: 1.3em;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.gemini-hours-content {
  padding: 8px 24px 20px 24px;
}

.gemini-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.08);
  transition: background 0.2s ease;
}

.gemini-hours-row:hover {
  background: rgba(102, 126, 234, 0.03);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.gemini-hours-row:last-child {
  border-bottom: none;
}

.gemini-hours-label {
  color: #4a5568;
  font-size: 0.95em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gemini-hours-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  flex-shrink: 0;
}

.gemini-hours-value {
  font-weight: 600;
  font-size: 0.95em;
  transition: transform 0.2s ease;
}

.gemini-hours-row:hover .gemini-hours-value {
  transform: scale(1.02);
}

.gemini-hours-time {
  color: #5a67d8;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.gemini-hours-status {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.gemini-status-open {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.gemini-status-open::before {
  content: "✓";
  font-weight: bold;
}

.gemini-status-closed {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.15);
}

.gemini-status-closed::before {
  content: "✕";
  font-weight: bold;
}

/* Gemini Card Dark Mode */
@media (prefers-color-scheme: dark) {
  .gemini-working-hours-card {
    background: linear-gradient(145deg, #1e2328 0%, #151a1e 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .gemini-hours-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .gemini-hours-row:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .gemini-hours-label {
    color: #a0aec0;
  }

  .gemini-hours-time {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #90cdf4;
    border-color: rgba(144, 205, 244, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .gemini-status-open {
    background: linear-gradient(135deg, #1e4620 0%, #163318 100%);
    color: #7ee787;
    border-color: rgba(126, 231, 135, 0.2);
  }

  .gemini-status-closed {
    background: linear-gradient(135deg, #4a1c1c 0%, #3b1515 100%);
    color: #f97583;
    border-color: rgba(249, 117, 131, 0.2);
  }
}

/* Gemini Card Responsive - Tablet */
@media (max-width: 768px) {
  .gemini-working-hours-card {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
  }

  .gemini-hours-header {
    padding: 18px 20px;
  }

  .gemini-hours-content {
    padding: 6px 20px 16px 20px;
  }

  .gemini-hours-row:hover {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Gemini Card Responsive - Mobile */
@media (max-width: 480px) {
  .gemini-working-hours-card {
    border-radius: 14px;
    margin: 1em 0 1.5em 0;
  }

  .gemini-hours-header {
    padding: 16px 18px;
  }

  .gemini-hours-title {
    font-size: 1.1em;
  }

  .gemini-hours-content {
    padding: 4px 18px 14px 18px;
  }

  .gemini-hours-row {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 8px;
  }

  .gemini-hours-row:hover {
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .gemini-hours-label {
    font-size: 0.9em;
    flex: 1;
    min-width: 0;
  }

  .gemini-hours-value {
    font-size: 0.9em;
  }

  .gemini-hours-time,
  .gemini-hours-status {
    padding: 6px 12px;
    font-size: 0.85em;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .gemini-hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gemini-hours-label {
    width: 100%;
  }

  .gemini-hours-value {
    align-self: flex-end;
  }
}

/* ================================================
   Summary/Quick Info Box (Özet Bilgi)
   ================================================ */
.ozet-bilgi,
.hizli-bilgi,
.summary-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
}

.ozet-bilgi p,
.hizli-bilgi p,
.summary-box p {
  margin: 0.5em 0;
  color: #2e7d32;
  line-height: 1.6;
}

.ozet-bilgi strong,
.hizli-bilgi strong,
.summary-box strong {
  color: #1b5e20;
}

/* Summary Box Dark Mode */
@media (prefers-color-scheme: dark) {
  .ozet-bilgi,
  .hizli-bilgi,
  .summary-box {
    background: linear-gradient(135deg, #1b3d1f 0%, #1a2f1c 100%);
    border-color: #388e3c;
  }

  .ozet-bilgi p,
  .hizli-bilgi p,
  .summary-box p {
    color: #81c784;
  }

  .ozet-bilgi strong,
  .hizli-bilgi strong,
  .summary-box strong {
    color: #a5d6a7;
  }
}
