/* Common Content Grid Styles */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.content-subtitle {
  color: var(--text-secondary, #666);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.content-controls {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary, #00566b);
}

.search-btn {
  padding: 0.75rem 1rem;
  background: var(--primary, #00566b);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background: var(--secondary, #ff6f61);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary, #00566b);
  color: white;
  border-color: var(--primary, #00566b);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.content-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary, #00566b);
}

.content-header-section {
  margin-bottom: 1rem;
}

.content-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary, #00566b);
  margin-bottom: 0.25rem;
}

.content-subtitle-text {
  font-size: 1.1rem;
  color: var(--text-primary, #333);
  margin-bottom: 0.25rem;
}

.content-id {
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
  font-family: monospace;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.content-body {
  margin-bottom: 1.5rem;
}

.current-time {
  background: linear-gradient(
    135deg,
    var(--primary, #00566b),
    var(--secondary, #ff6f61)
  );
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.time-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.time-value {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: monospace;
}

.content-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  min-width: 60px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: bold;
  color: var(--primary, #00566b);
}

.content-info {
  margin-bottom: 1rem;
}

.info-preview {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--primary, #00566b);
}

.info-question {
  font-weight: bold;
  color: var(--text-primary, #333);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.info-answer {
  color: var(--text-secondary, #666);
  font-size: 0.85rem;
  line-height: 1.4;
}

.content-actions {
  display: flex;
  gap: 0.5rem;
}

.view-details-btn,
.copy-time-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.view-details-btn {
  background: var(--primary, #00566b);
  color: white;
}

.view-details-btn:hover {
  background: var(--secondary, #ff6f61);
  color: white;
}

.copy-time-btn {
  background: #f8f9fa;
  color: var(--primary, #00566b);
  border: 1px solid #e0e0e0;
}

.copy-time-btn:hover {
  background: #e9ecef;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary, #666);
}

.no-results-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary, #333);
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-container {
    padding: 1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-controls {
    flex-direction: column;
  }

  .filter-tabs {
    justify-content: center;
  }

  .content-actions {
    flex-direction: column;
  }
}

/* Special styles for different content types */
.timezone-card .current-time {
  background: linear-gradient(
    135deg,
    var(--primary, #00566b),
    var(--secondary, #ff6f61)
  );
}

.country-card .current-time {
  background: linear-gradient(135deg, var(--primary, #00566b), #4a90e2);
}

.state-card .current-time {
  background: linear-gradient(135deg, var(--primary, #00566b), #dc143c);
}

.offset-card .current-time {
  background: linear-gradient(
    135deg,
    var(--primary, #00566b),
    var(--secondary, #ff6f61)
  );
}

.converter-card {
  border-left: 4px solid var(--secondary, #ff6f61);
}

.converter-card:hover {
  border-left-color: var(--primary, #00566b);
}

.countdown-card {
  border-left: 4px solid var(--secondary, #ff6f61);
}

.countdown-card:hover {
  border-left-color: var(--primary, #00566b);
}

.military-card {
  border-left: 4px solid var(--text-secondary, #666);
}

.military-card:hover {
  border-left-color: var(--primary, #00566b);
}

.aws-card {
  border-left: 4px solid var(--secondary, #ff6f61);
}

.aws-card:hover {
  border-left-color: var(--primary, #00566b);
}
