/* Custom styles for Encora Trader */
 
/* Forest green accent color */
:root {
  --forest-green: #228B22;
  --forest-green-dark: #1e7e1e;
}
 
/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}
 
/* Links */
a {
  color: var(--forest-green);
}
 
a:hover {
  color: var(--forest-green-dark);
}

/* Tables */
.table-dark {
  --bs-table-bg: #212529;
  --bs-table-striped-bg: #2c3034;
  --bs-table-striped-color: #fff;
  --bs-table-active-bg: #373b3e;
  --bs-table-active-color: #fff;
  --bs-table-hover-bg: #323539;
  --bs-table-hover-color: #fff;
  color: #fff;
  border-color: #373b3e;
}

.table-dark a {
  color: var(--forest-green);
}

.table-dark a:hover {
  color: var(--forest-green-dark);
}

/* Form elements */
.form-control.bg-dark,
.form-select.bg-dark {
  border: 1px solid #444;
}

.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
  border-color: var(--forest-green);
  box-shadow: 0 0 0 0.25rem rgba(34, 139, 34, 0.25);
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
}

.message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.message.info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.message.hidden {
  display: none;
}
 
/* Trade Request Card */
.card.bg-secondary {
  background-color: #2c2c2c !important;
}

.card.bg-secondary .card-header {
  background-color: var(--forest-green) !important;
}
 
/* Admin button */
.btn-outline-light {
  border-color: #f8f9fa;
  color: #f8f9fa;
}

.btn-outline-light:hover {
  background-color: var(--forest-green);
  border-color: var(--forest-green);
}

/* Video table containers - responsive design */
.video-table-container {
  overflow-x: auto;
  width: 100%;
  margin: 1rem 0;
}

.video-table-container table {
  min-width: 700px; /* Ensure minimum readable width with venue column */
  width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0.5rem;
  }
  
  .card {
    margin: 0.5rem;
  }
  
  .video-table-container {
    font-size: 0.875rem; /* Smaller text on mobile */
    width: 100%;
    max-width: 100%;
  }
  
  .video-table-container table {
    min-width: 600px; /* Smaller minimum width on mobile */
  }
  
  /* Make table columns more compact on mobile */
  .video-table-container th,
  .video-table-container td {
    padding: 0.5rem 0.25rem;
  }
}

/* Request Type Section Styles */
.request-type-section {
  margin: 2rem 0;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  margin-bottom: 0;
}

.request-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.request-type-card {
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  background: #2c2c2c;
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.request-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.request-type-card.selected {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.trade-card {
  border-color: #28a745;
}

.trade-card:hover,
.trade-card.selected {
  border-color: #20c997;
  background: linear-gradient(135deg, #2c2c2c, rgba(40, 167, 69, 0.1));
}

.gift-card {
  border-color: #ffc107;
}

.gift-card:hover,
.gift-card.selected {
  border-color: #ffca2c;
  background: linear-gradient(135deg, #2c2c2c, rgba(255, 193, 7, 0.1));
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card-description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.trade-badge {
  background-color: rgba(40, 167, 69, 0.2);
  color: #20c997;
  border: 1px solid #20c997;
}

.gift-badge {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffca2c;
  border: 1px solid #ffca2c;
}

.card-details {
  margin-top: auto;
}

.card-details small {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* Selection indicator */
.request-type-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 15px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.gift-card.selected::after {
  background: #ffc107;
  color: #000;
}

/* Mobile responsiveness for request type cards */
@media (max-width: 768px) {
  .request-type-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .request-type-card {
    padding: 1.25rem;
    min-height: 180px;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .request-type-card {
    padding: 1rem;
    min-height: 160px;
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .section-header h3 {
    font-size: 1.25rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
}

/* Focus states for accessibility */
.request-type-card:focus {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}

.request-type-card:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 576px) {
  .video-table-container {
    font-size: 0.75rem; /* Even smaller text on very small screens */
    width: 100%;
  }
  
  .video-table-container table {
    min-width: 500px;
  }
  
  /* Even more compact on very small screens */
  .video-table-container th,
  .video-table-container td {
    padding: 0.375rem 0.125rem;
  }
}