/* Forms, Buttons, Messages, Image Uploads, My Listings Page Styles */

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

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

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="password"],
    .form-group input[type="url"],
    .form-group input[type="search"],
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid #e0e0e0 !important;
      border-radius: 12px !important;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.3s;
      background: #fafafa !important;
      line-height: 1.5;
      min-height: 51px;
      box-sizing: border-box;
    }

    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="tel"]:focus,
    .form-group input[type="number"]:focus,
    .form-group input[type="password"]:focus,
    .form-group input[type="url"]:focus,
    .form-group input[type="search"]:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
      background: #ffffff;
    }

    /* Checkbox ve radio inputlarını genel stillerden hariç tut */
    .form-group input[type="checkbox"],
    .form-group input[type="radio"] {
      width: auto !important;
      height: auto !important;
      min-height: auto !important;
      padding: 0 !important;
      border: none !important;
      background: transparent !important;
      border-radius: 0 !important;
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }
    
    /* Telefon input grubu */
    .phone-input-wrapper {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    
    .phone-input-wrapper .country-code-select {
      flex: 0 0 140px;
      min-width: 140px;
      max-width: 140px;
      padding: 14px 12px;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.3s;
      background-color: #fafafa;
      cursor: pointer;
    }
    
    .phone-input-wrapper .country-code-select:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
      background: #ffffff;
    }
    
    .phone-input-wrapper input[type="tel"] {
      flex: 1;
    }
    
    .phone-hint {
      display: block;
      margin-top: 6px;
      font-size: 13px;
      color: #666;
      font-style: italic;
    }
    
    @media (max-width: 768px) {
      .phone-input-wrapper {
        flex-direction: column;
      }
      
      .phone-input-wrapper .country-code-select {
        flex: none;
        width: 100%;
        max-width: 100%;
      }
    }

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 32px;
      padding-top: 24px;
      border-top: 2px solid #f0f0f0;
    }

    .btn-submit {
      flex: 1;
      padding: 16px;
      background: linear-gradient(135deg, #00349b 0%, #0051d5 100%);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 4px 16px rgba(0, 52, 155, 0.3);
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, #002b7f 0%, #0044b8 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 52, 155, 0.4);
    }

    .btn-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .btn-cancel {
      flex: 1;
      padding: 16px;
      background: white;
      color: #666;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-cancel:hover {
      background: #f8f9fa;
      border-color: #ccc;
    }

    .success-message {
      background: #d4edda;
      color: #155724;
      padding: 16px 20px;
      border-radius: 12px;
      margin-bottom: 24px;
      border: 2px solid #c3e6cb;
      font-weight: 500;
      animation: slideDown 0.3s ease;
    }

    .warning-message {
      background: #fff3cd;
      color: #856404;
      padding: 16px 20px;
      border-radius: 12px;
      margin-bottom: 24px;
      border: 2px solid #ffeaa7;
      font-weight: 500;
      animation: slideDown 0.3s ease;
    }

    .error-message {
      background: #f8d7da;
      color: #721c24;
      padding: 16px 20px;
      border-radius: 12px;
      margin-bottom: 24px;
      border: 2px solid #f5c6cb;
      font-weight: 500;
      animation: slideDown 0.3s ease;
    }

    .image-preview-item {
      position: relative;
      aspect-ratio: 1;
      border-radius: 12px;
      overflow: hidden;
      border: 3px solid #e0e0e0;
      background: #f8f9fa;
    }

    .image-preview-item.featured {
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }

    .image-preview-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .image-preview-actions {
      position: absolute;
      top: 8px;
      right: 8px;
      display: flex;
      gap: 6px;
      flex-direction: column;
    }

    .image-action-btn {
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      width: 34px;
      height: 34px;
      padding: 0;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      line-height: 1;
      transition: all 0.3s;
    }

    .image-action-btn:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: scale(1.1);
    }

    .featured-badge {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: #667eea;
      color: white;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
    }

    .file-upload-wrapper {
      position: relative;
      width: 100%;
    }

    .file-input {
      position: absolute;
      width: 0.1px;
      height: 0.1px;
      opacity: 0;
      overflow: hidden;
      z-index: -1;
    }

    .file-upload-label {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
      border: 3px dashed #d0d0d0;
      border-radius: 16px;
      background: #fafafa;
      cursor: pointer;
      transition: all 0.3s ease;
      gap: 12px;
    }

    .file-upload-label:hover {
      border-color: #667eea;
      background: #f5f7ff;
      transform: translateY(-2px);
    }

    .file-upload-label svg {
      color: #667eea;
      margin-bottom: 8px;
    }

    .file-upload-text {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .file-upload-hint {
      font-size: 13px;
      color: #999;
    }

    .file-input:focus + .file-upload-label {
      outline: 2px solid #667eea;
      outline-offset: 2px;
    }

    .form-section {
      min-width: 0;
    }

    /* Terms and Conditions Checkbox Styles */
    .terms-group {
      margin-top: 32px;
      margin-bottom: 24px;
      padding: 20px;
      background: #f8f9fa;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
    }

    .terms-checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      user-select: none;
    }

    .terms-checkbox-label input[type="checkbox"] {
      width: 20px;
      height: 20px;
      min-width: 20px;
      min-height: 20px;
      margin-top: 2px;
      cursor: pointer;
      flex-shrink: 0;
      accent-color: #667eea;
    }

    .terms-text {
      font-size: 15px;
      line-height: 1.6;
      color: #1a1a1a;
      flex: 1;
      word-wrap: break-word;
    }

    .terms-link {
      color: #667eea;
      font-weight: 700;
      text-decoration: underline;
      transition: all 0.3s;
      display: inline;
      cursor: pointer;
    }

    .terms-link:hover {
      color: #5568d3;
      text-decoration: none;
    }

    /* Terms Modal Styles */
    #termsModal.modal-overlay {
      z-index: 99999999 !important;
      position: fixed !important;
    }

    .terms-modal-content {
      max-width: 900px !important;
      max-height: 85vh !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .terms-modal-body {
      flex: 1 !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      padding: 0 !important;
      /* Modal genelindeki .modal-body grid düzenini iptal etmek için */
      display: block !important;
      /* Herhangi bir önceki gap değerini etkisiz kıl */
      gap: 0 !important;
    }

    .terms-content {
      font-size: 15px;
      line-height: 1.8;
      color: #2d3748;
      max-width: 100%;
      overflow-x: hidden;
      padding: 32px 40px;
    }

    .terms-content h3 {
      font-size: 18px;
      font-weight: 700;
      color: #1a1a1a;
      margin: 32px 0 16px 0;
      padding-bottom: 8px;
      border-bottom: 2px solid #e0e0e0;
    }

    .terms-content h3:first-child {
      margin-top: 0;
    }

    .terms-content p {
      margin: 12px 0;
      text-align: left;
      line-height: 1.8;
    }

    .terms-content strong {
      color: #1a1a1a;
      font-weight: 600;
    }

    .terms-footer {
      margin-top: 40px;
      margin-bottom: 0;
      padding: 24px;
      border-top: 3px solid #667eea;
      background: #f8f9fa;
      border-radius: 12px;
    }

    .terms-footer p {
      margin: 8px 0;
      font-size: 14px;
    }

    .terms-footer em {
      color: #e53e3e;
      font-weight: 600;
    }

    .modal-footer {
      display: flex;
      gap: 12px;
      padding: 20px 32px;
      border-top: 2px solid #f0f0f0;
      background: #f8f9fa;
      flex-shrink: 0;
    }

    .modal-footer button {
      flex: 1;
    }

    @media (max-width: 768px) {
      .terms-modal-content {
        max-width: 95% !important;
        max-height: 90vh !important;
      }

      .terms-modal-body {
        padding: 0 !important;
      }

      .terms-content {
        padding: 20px 24px;
      }

      .modal-footer {
        flex-direction: column;
        padding: 16px 20px;
      }

      .terms-content {
        font-size: 14px;
      }
    }

    @media (max-width: 768px) {
      .form-actions {
        flex-direction: column-reverse;
      }

      .form-actions button {
        width: 100%;
      }
    }

/* Note: slideDown keyframe is defined in base.css */

/* Benim İlanlarım Sayfa - Liste View */
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-row {
  display: grid;
  grid-template-columns: 100px 1fr 120px 200px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.listing-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.listing-row-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-row-image-fallback {
  font-size: 48px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-row-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-row-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.listing-row-category {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.listing-row-details {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.listing-row-date {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

.listing-row-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.price-amount {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.listing-row-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
  z-index: 3; /* ensure action buttons stay above accordion */
}

.listing-row-actions .action-btn {
  width: 100%;
  height: auto;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.listing-row-actions .action-btn:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.listing-row-actions .action-btn.delete-btn {
  background: #ef4444;
}

.listing-row-actions .action-btn.delete-btn:hover {
  background: #dc2626;
}

@media (max-width: 1200px) {
  .listing-row {
    grid-template-columns: 80px 1fr 100px 160px;
  }

  .listing-row-image {
    width: 80px;
    height: 80px;
  }

  .listing-row-image-fallback {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .listing-row {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .listing-row-info {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .listing-row-price {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    padding: 12px;
    width: 100%;
    margin-top: 8px;
  }

  .listing-row-actions {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    flex-direction: row;
    margin-top: 8px;
    gap: 12px;
  }

  .listing-row-actions .action-btn {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .listing-row-image {
    width: 80px;
    height: 80px;
    grid-row: 1 / 2;
  }

  .listing-row-image-fallback {
    font-size: 36px;
  }

  .listing-row-title {
    font-size: 15px;
  }

  .listing-row-category,
  .listing-row-details {
    font-size: 12px;
  }

  .price-amount {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .listing-row {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .listing-row-info {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .listing-row-price {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    padding: 10px;
    margin-top: 8px;
  }

  .listing-row-actions {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    margin-top: 8px;
  }

  .listing-row-image {
    width: 70px;
    height: 70px;
    grid-row: 1 / 2;
  }

  .listing-row-image-fallback {
    font-size: 32px;
  }

  .listing-row-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .listing-row-category,
  .listing-row-details,
  .listing-row-date {
    font-size: 11px;
  }

  .price-amount {
    font-size: 16px;
  }

  .listing-row-actions .action-btn {
    height: 42px;
    font-size: 13px;
  }
}

/* Accordion Styles */
.listing-row-wrapper {
  display: contents;
}

.listing-row-details-expanded {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 16px;
  margin: 0 0 16px 0;
  visibility: hidden;
  grid-column: 1 / -1;
  width: 100%;
  pointer-events: none; /* don't block clicks when collapsed */
}

.listing-row-details-expanded.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 20px 16px;
  visibility: visible;
  pointer-events: auto; /* enable interactions when expanded */
}

.listing-details-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-section h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  word-wrap: break-word;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.seller-info {
  background: #ffffff;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seller-info p {
  margin: 0;
  font-size: 14px;
  color: #555555;
}

.seller-info strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Responsive accordion */
@media (max-width: 768px) {
  .listing-row-details-expanded {
    padding: 12px 16px;
  }

  .listing-details-content {
    gap: 16px;
  }

  .details-section h4 {
    font-size: 13px;
  }

  .details-section p {
    font-size: 13px;
  }

  .detail-label {
    font-size: 11px;
  }

  .detail-value {
    font-size: 13px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-item {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }

  .seller-info {
    padding: 10px;
  }

  .seller-info p {
    font-size: 13px;
  }

  .listing-row-details-expanded.expanded {
    max-height: 800px;
    padding: 16px 16px;
  }
}

@media (max-width: 480px) {
  .listing-row-details-expanded {
    border-bottom: 1px solid #e0e0e0;
  }

  .listing-row-details-expanded.expanded {
    max-height: 1200px;
    padding: 12px 16px;
  }

  .listing-details-content {
    gap: 12px;
  }

  .details-section {
    gap: 10px;
  }

  .details-section h4 {
    font-size: 12px;
  }

  .details-section p {
    font-size: 12px;
  }

  .detail-label {
    font-size: 10px;
  }

  .detail-value {
    font-size: 12px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-item {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }

  .seller-info {
    padding: 8px;
    gap: 6px;
  }

  .seller-info p {
    font-size: 12px;
    margin: 0;
  }
}

/* Özel Şehir Seçici Dropdown */
.city-select-container {
  position: relative;
}

.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.city-dropdown.active {
  display: block;
}

.city-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #1a1a1a;
}

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

.city-dropdown-item:hover {
  background: #f8f9ff;
  color: #667eea;
}

.city-dropdown-item.highlighted {
  background: #f0f3ff;
  color: #667eea;
}

.city-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Kategori ve Durum Dropdown (Şehir ile aynı stiller) */
.category-select-container,
.condition-select-container {
  position: relative;
}

.category-select-container input,
.condition-select-container input {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  transition: all 0.3s !important;
  background: #fafafa !important;
  line-height: 1.5 !important;
  min-height: 51px !important;
  box-sizing: border-box !important;
  cursor: pointer;
  caret-color: transparent;
}

.category-dropdown,
.condition-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.category-dropdown.active,
.condition-dropdown.active {
  display: block;
}

.category-dropdown-item,
.condition-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #1a1a1a;
}

.category-dropdown-item:last-child,
.condition-dropdown-item:last-child {
  border-bottom: none;
}

.category-dropdown-item:hover,
.condition-dropdown-item:hover {
  background: #f8f9ff;
  color: #667eea;
}

/* Video Upload Progress Bar */
.video-upload-progress {
  padding: 16px;
  background: #f8f9ff;
  border-radius: 8px;
  border: 2px solid #667eea;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
  animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

