/* === BFT Nevezési Űrlap – Frontend === */

.bft-form-container {
  max-width: 650px;
  margin: 30px auto;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Header */
.bft-form-header {
  text-align: center;
  margin-bottom: 18px;
}

.bft-form-header h2 {
  margin: 0 0 10px;
  font-size: 1.4em;
  color: #1f2937;
}

/* Info grid */
.bft-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9em;
}

.bft-info-item strong {
  display: block;
  font-size: 0.7em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Section title */
.bft-section-title {
  margin: 18px 0 8px;
  font-weight: 600;
  font-size: 0.95em;
  color: #111827;
  display: flex;
  align-items: center;
}

.bft-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
  margin-left: 10px;
}

/* Form fields */
.bft-form-group {
  margin-bottom: 10px;
}

.bft-form-group label {
  font-size: 0.85em;
  font-weight: 500;
  color: #374151;
  margin-bottom: 3px;
  display: block;
}

.bft-form-group input,
.bft-form-group textarea {
  width: 100%;
  padding: 7px 9px;
  font-size: 0.9em;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}

.bft-form-group input:focus,
.bft-form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
  outline: none;
}

/* Checkbox override to sit next to text */
.bft-form-group input[type="checkbox"] {
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 2px;
  /* Visual tweak */
}

/* Submit button */
.bft-submit-btn {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s;
}

.bft-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, .3);
}

/* Mobile responsiveness */
@media (max-width: 650px) {
  .bft-form-container {
    margin: 10px;
    padding: 15px;
  }
}

/* Ensure member data rows stack nicely on mobile */
@media (max-width: 600px) {
    .bft-row-split {
        flex-direction: column !important;
    }
    .bft-row-split div {
        width: 100% !important;
    }
}

/* ========================================
   COMPETITOR PROFILE STYLES
   ======================================== */

.bft-profile-container {
  max-width: 800px;
  margin: 20px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.bft-profile-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header - Compact with inline badges */
.bft-profile-header {
  background: #f3f4f6;
  padding: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.bft-profile-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.4em;
  color: #111827;
  font-weight: 600;
}

.bft-profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bft-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}

.bft-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.bft-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.bft-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.bft-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.bft-badge-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

/* Body - Reduced padding */
.bft-profile-body {
  padding: 16px;
}

/* Messages */
.bft-profile-message {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 0.9em;
}

.bft-profile-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.bft-profile-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.bft-deadline-notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.85em;
}

/* Sections - Reduced spacing */
.bft-profile-section {
  margin-bottom: 20px;
}

.bft-section-title {
  font-size: 1em;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
}

.bft-editable-hint {
  font-size: 0.75em;
  font-weight: 400;
  color: #6b7280;
  font-style: italic;
}

/* Fields - Compact */
.bft-profile-field {
  margin-bottom: 12px;
}

.bft-profile-field label {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.bft-field-value {
  padding: 8px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  font-size: 0.9em;
}

.bft-field-value.bft-readonly {
  background: #f3f4f6;
  color: #6b7280;
}

.bft-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bft-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Two-column layout for specific fields */
.bft-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* Members - Compact */
.bft-profile-member {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.bft-member-number {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 10px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Actions - Side by side on mobile */
.bft-profile-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bft-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.bft-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.bft-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bft-btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.bft-btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Cancellation Section */
.bft-cancellation-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #fee2e2;
}

.bft-cancel-info {
  color: #6b7280;
  font-size: 0.85em;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Mobile Responsiveness - Ultra compact */
@media (max-width: 768px) {
  .bft-profile-container {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .bft-profile-card {
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .bft-profile-header {
    padding: 12px;
  }

  .bft-profile-header h2 {
    font-size: 1.2em;
  }

  .bft-profile-body {
    padding: 12px;
  }

  .bft-profile-section {
    margin-bottom: 16px;
  }

  .bft-section-title {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

  .bft-profile-field {
    margin-bottom: 10px;
  }

  .bft-profile-member {
    padding: 10px;
    margin-bottom: 8px;
  }

  .bft-btn {
    font-size: 0.85em;
    padding: 9px 12px;
  }

  .bft-deadline-notice {
    font-size: 0.8em;
    padding: 8px 10px;
  }
}

/* Extra small screens - keep buttons side by side */
@media (max-width: 480px) {
  .bft-profile-header {
    padding: 10px;
  }

  .bft-profile-body {
    padding: 10px;
  }

  .bft-btn {
    min-width: 110px;
    font-size: 0.8em;
  }
}
/* ========================================
   POST REGISTRATION CTA
   ======================================== */
.bft-post-registration-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bft-post-registration-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #1a73e8, #1557b0);
}

.bft-post-registration-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.bft-cta-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
}

.bft-cta-icon svg {
    width: 30px;
    height: 30px;
}

.bft-cta-content {
    flex-grow: 1;
}

.bft-cta-content h4 {
    margin: 0 0 5px 0;
    color: #111827;
    font-size: 1.15em;
    font-weight: 700;
}

.bft-cta-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.5;
}

.bft-cta-action {
    flex-shrink: 0;
}

.bft-cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.bft-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
    color: #fff !important;
}

@media (max-width: 768px) {
    .bft-post-registration-cta {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    
    .bft-post-registration-cta::before {
        width: 100%;
        height: 6px;
    }
    
    .bft-cta-icon {
        margin: 0 auto;
    }
    
    .bft-cta-button {
        width: 100%;
    }
}


/* =============================================================
   WEATHER FORECAST
   ============================================================= */
.bft-weather-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bft-weather-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.bft-weather-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 700;
}

.bft-weather-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bft-weather-card {
    flex: 1;
    min-width: 140px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bft-weather-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fff;
}

.bft-weather-day {
    font-weight: 700;
    color: #1a73e8;
    text-transform: capitalize;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.bft-weather-icon-wrap {
    margin: 5px 0;
}

.bft-weather-img {
    width: 60px;
    height: 60px;
}

.bft-weather-temp {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin: 5px 0;
}

.bft-weather-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bft-weather-details {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.bft-weather-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
}

.bft-w-icon {
    margin-right: 5px;
}

.bft-w-val {
    font-weight: 600;
    color: #333;
}

@media (max-width: 600px) {
    .bft-weather-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .bft-weather-card {
        min-width: 0;
    }
}
