/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  body {
    font-size: 18px;
  }
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Setup banner */
.setup-banner {
  background-color: #ff6b6b;
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 500;
}

/* Header */
header {
  padding: 40px 0 60px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  text-align: center;
}

.beta-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  header h1 {
    font-size: 36px;
  }
}

.subhead {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .subhead {
    font-size: 18px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  line-height: 1.2;
  text-align: center;
}

.btn:focus {
  outline: 2px solid #4c9eff;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #ffffff;
  color: #15803d;
}

.btn-primary:hover {
  background-color: #f0fdf4;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-tertiary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-buttons .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  
  .hero-buttons .btn {
    width: auto;
  }
}

/* Guarantee section */
.guarantee {
  padding: 40px 0;
  background-color: #f8f9ff;
}

.guarantee-box {
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.guarantee-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #15803d;
}

.guarantee-note {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* Metrics */
.metrics {
  padding: 40px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

@media (min-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-size: 24px;
  font-weight: 700;
  color: #15803d;
  display: block;
}

.metric-label {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Listings */
.listings {
  padding: 24px 0;
  background: white;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.listings h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: #065f46;
  position: relative;
}

.listings h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 2px;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
}

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

@media (min-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Listing cards */
.listing-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

.listing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #16a34a;
  border-radius: 6px 6px 0 0;
}

.listing-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border-color: #16a34a;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.listing-position {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.1;
}

.listing-deadline {
  font-size: 9px;
  font-weight: 500;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.listing-deadline.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.listing-details {
  margin-bottom: 8px;
}

.listing-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  font-size: 11px;
  padding: 2px 0;
}

.listing-detail-label {
  color: #6b7280;
  font-weight: 500;
  font-size: 10px;
}

.listing-detail-value {
  color: #1f2937;
  font-weight: 600;
  font-size: 11px;
}

.listing-lock {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 6px 8px;
  text-align: center;
  margin: 6px 0;
}

.listing-lock-text {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}

.listing-contacts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.listing-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.listing-contact-label {
  color: #666;
  min-width: 60px;
}

.listing-contact-value {
  color: #1a1a1a;
  font-weight: 500;
}

.listing-notes {
  margin: 6px 0;
  padding: 6px;
  background: #f8f9fa;
  border-left: 2px solid #16a34a;
  border-radius: 0 3px 3px 0;
  font-size: 10px;
  color: #374151;
  line-height: 1.3;
  font-style: italic;
}

.listing-card .card-actions {
  margin-top: 8px;
  text-align: center;
}

.listing-card .card-actions .btn {
  width: 100%;
  background: #16a34a;
  color: white;
  border: none;
  padding: 6px 12px;
  font-weight: 500;
  font-size: 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.listing-card .card-actions .btn:hover {
  background: #15803d;
}

/* Listings action */
.listings-action {
  text-align: center;
}

.listings-action .btn {
  width: 100%;
  max-width: 320px;
}

.secret-hint {
  font-size: 14px;
  color: #666;
  margin-top: 16px;
  font-style: italic;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px;
  border: 2px dashed #a7f3d0;
  margin: 40px 0;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #047857;
  font-weight: 700;
}

.empty-state p {
  color: #059669;
  font-size: 16px;
  margin-bottom: 24px;
}

.empty-state::before {
  content: '⚽';
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #f8f9ff;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: #15803d;
}

/* Success/Cancel pages */
.success-page,
.cancel-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
}

.success-content,
.cancel-content {
  text-align: center;
  max-width: 500px;
  padding: 40px 20px;
}

.success-content h1,
.cancel-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.success-buttons,
.cancel-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 32px 0;
}

.success-buttons .btn,
.cancel-buttons .btn {
  width: 100%;
  max-width: 280px;
}

.back-link {
  margin-top: 24px;
}

.back-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.back-link a:hover {
  color: white;
}

/* Policy pages */
.policy-page {
  padding: 40px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.policy-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.policy-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #1a1a1a;
}

.policy-page p {
  margin-bottom: 16px;
  color: #333;
}

.policy-page ul,
.policy-page ol {
  margin: 16px 0 16px 24px;
  color: #333;
}

.policy-page li {
  margin-bottom: 8px;
}

.policy-page strong {
  color: #1a1a1a;
}

.policy-page em {
  color: #666;
}

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 32px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #15803d;
}

/* Auth forms */
.auth-form h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  color: #1a1a1a;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form input {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  min-height: 44px;
}

.auth-form input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.1);
}

.auth-form p {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

.auth-form a {
  color: #15803d;
  text-decoration: none;
  font-weight: 500;
}

.auth-form a:hover {
  text-decoration: underline;
}

/* User navigation */
.user-nav {
  background-color: #f8f9ff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.nav-buttons .btn {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Form pages */
.form-page {
  padding: 40px 0 80px;
  max-width: 600px;
  margin: 0 auto;
}

.form-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
  text-align: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  min-height: 44px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.1);
}

.form-group .help-text {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .form-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Dashboard styles */
.dashboard {
  padding: 40px 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 8px;
}

.stat-card p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.dashboard-section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dashboard-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-accepted {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-rejected {
  background-color: #fecaca;
  color: #dc2626;
}

.card-details {
  margin-bottom: 16px;
}

.card-details p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #555;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}

/* Listing Detail styles */
.listing-detail {
  padding: 40px 0;
}

.listing-header {
  text-align: center;
  margin-bottom: 40px;
}

.listing-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.listing-meta {
  color: #666;
  font-size: 16px;
}

.listing-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .listing-details-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.listing-info {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.listing-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

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

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-item label {
  font-weight: 500;
  color: #666;
}

.detail-item span {
  color: #1a1a1a;
  font-weight: 600;
}

.full-notes {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.full-notes h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.full-notes p {
  color: #555;
  line-height: 1.6;
}

.pitch-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.pitch-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* Pitch cards */
.pitch-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pitch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.pitch-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.pitch-details {
  margin-bottom: 16px;
}

.pitch-details p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #555;
}

.pitch-summary,
.cooperation-terms {
  margin-bottom: 16px;
}

.pitch-summary h4,
.cooperation-terms h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.pitch-summary p,
.cooperation-terms p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.pitch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.pitch-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state h2 {
  font-size: 24px;
  color: #dc2626;
  margin-bottom: 16px;
}

.error-state p {
  color: #666;
  margin-bottom: 24px;
}

.empty-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.info-message {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px;
  color: #0369a1;
  font-size: 14px;
  text-align: center;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
