/* Tip Calculator Specific Styles */

/* Skip to main content link - visible only on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  z-index: 1001;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Input with Currency Prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}

.input-with-prefix input {
  padding-left: 2rem;
  width: 100%;
}

/* Preset Tip Buttons */
.preset-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 60px;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background-color: #e5e7eb;
  border-color: #2563eb;
  color: #2563eb;
}

.preset-btn:active,
.preset-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}

@media (max-width: 600px) {
  .preset-buttons {
    gap: 0.5rem;
  }
  
  .preset-btn {
    min-width: 50px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.result-card {
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
}

.result-card.highlight {
  background: #eff6ff;
  border-color: #2563eb;
}

.result-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

/* Breakdown Section */
.breakdown-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.breakdown-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.1rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 1rem;
}

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

.breakdown-item.total {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid #e5e7eb;
}
