/* my-recipes.css - My Recipes Styles */

/* ============================================
   MY RECIPES CONTAINER
   ============================================ */

.my-recipes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
}

.my-recipes-header {
  background: linear-gradient(135deg, #283655 0%, #1e2a43 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(40, 54, 85, 0.2);
}

.my-recipes-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.my-recipes-header p {
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================
   RECIPE STATS
   ============================================ */

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

.recipe-stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #283655;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.recipe-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.recipe-stat-card.favorites {
  border-left-color: #f44336;
}

.recipe-stat-card.recent {
  border-left-color: #DFA774;
}

.recipe-stat-card.shared {
  border-left-color: #ff9800;
}

.stat-icon {
  font-size: 2.5rem;
  color: #283655;
  margin-bottom: 15px;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #283655;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin: 5px 0 0 0;
  font-weight: 500;
}

/* ============================================
   FILTERS AND SEARCH
   ============================================ */

.recipe-filters {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}

.search-input {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #283655;
  box-shadow: 0 0 0 3px rgba(40, 54, 85, 0.1);
}

.filter-select {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #283655;
}

.btn-filter {
  background: #283655;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-filter:hover {
  background: #1e2a43;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 54, 85, 0.3);
}

/* ============================================
   RECIPE GRID
   ============================================ */

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.recipe-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recipe-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

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

.recipe-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.recipe-badge.favorite {
  background: #f44336;
}

.recipe-badge.recent {
  background: #DFA774;
}

.recipe-badge.shared {
  background: #ff9800;
}

.recipe-content {
  padding: 20px;
}

.recipe-title {
  margin: 0 0 10px 0;
  color: #283655;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recipe-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.btn-recipe {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.btn-view {
  background: #283655;
  color: white;
  flex: 1;
  justify-content: center;
}

.btn-view:hover {
  background: #1e2a43;
  transform: translateY(-1px);
}

.btn-edit {
  background: #DFA774;
  color: white;
}

.btn-edit:hover {
  background: #d4955f;
  transform: translateY(-1px);
}

.btn-delete {
  background: #f44336;
  color: white;
}

.btn-delete:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

.btn-favorite {
  background: transparent;
  color: #f44336;
  border: 2px solid #f44336;
  padding: 6px 12px;
}

.btn-favorite:hover {
  background: #f44336;
  color: white;
}

.btn-favorite.active {
  background: #f44336;
  color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.empty-state-icon {
  font-size: 4rem;
  color: #e9ecef;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #283655;
  font-size: 1.5rem;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 25px 0;
  color: #666;
  font-size: 1.1rem;
}

.btn-create {
  background: #283655;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-create:hover {
  background: #1e2a43;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 54, 85, 0.3);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination-btn {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn:hover {
  border-color: #283655;
  color: #283655;
}

.pagination-btn.active {
  background: #283655;
  border-color: #283655;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #666;
  font-size: 0.9rem;
  margin: 0 15px;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.recipe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.recipe-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.recipe-modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.modal-title {
  margin: 0;
  color: #283655;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #283655;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.btn-cancel {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e9ecef;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #e9ecef;
  color: #283655;
}

.btn-confirm {
  background: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-confirm:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .my-recipes-container {
    padding: 15px;
  }

  .my-recipes-header {
    padding: 20px;
  }

  .my-recipes-header h1 {
    font-size: 2rem;
  }

  .recipe-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .recipes-grid {
    grid-template-columns: 1fr;
  }

  .recipe-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-recipe {
    width: 100%;
    justify-content: center;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .my-recipes-header h1 {
    font-size: 1.5rem;
  }

  .recipe-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .recipe-card {
    margin-bottom: 15px;
  }

  .recipe-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .empty-state {
    padding: 40px 15px;
  }

  .empty-state-icon {
    font-size: 3rem;
  }
}



