* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background-color: #ff6347;
  color: white;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.3s;
}

.logo:hover {
  color: #ffe6e0;
  cursor: pointer;
}


/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a,
.dropdown-content a,
.nested-dropdown-content a {
  display: block;
  padding: 6px 12px;
  font-size: 1rem;
  text-decoration: none;
  background-color: transparent;
  color: white;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}

.nav-menu a:hover,
.dropdown-content a:hover,
.nested-dropdown-content a:hover {
  background-color: #e03e00;
  color: #fff;
  border: 2px solid #ff4500;
  border-radius: 4px;
}

.dropdown,
.nested-dropdown {
  position: relative;
}

.dropdown-content,
.nested-dropdown-content {
  display: none;
  position: absolute;
  min-width: 200px;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1;
  color: #333;
}

.dropdown-content {
  top: 100%;
  left: 0;
}

.nested-dropdown-content {
  top: 0;
  left: 100%;
}

.dropdown:hover .dropdown-content,
.nested-dropdown:hover .nested-dropdown-content {
  display: block;
}

.dropdown-content a,
.nested-dropdown-content a {
  color: #333;
}

.dropdown-content a:hover,
.nested-dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #ff4500;
  border-radius: 4px;
}

.nested-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Auth links */
.auth-links {
  margin-left: 20px;
}

.auth-links .login-btn,
.auth-links .logout-btn {
  background-color: #ff6347;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  outline: none;
  display: inline-block;
}

.auth-links .login-btn:hover,
.auth-links .logout-btn:hover {
  background-color: #ff4500;
  border-radius: 4px;
}

.auth-links .login-btn:focus,
.auth-links .logout-btn:focus {
  outline: none;
  box-shadow: none;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 20px 0;
}

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

.footer-content p {
  font-size: 1rem;
  text-align: center;
  flex: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  position: relative;
  width: 30px;
  height: 24px;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-child(1) {
  top: 0px;
}

.burger span:nth-child(2) {
  top: 10px;
}

.burger span:nth-child(3) {
  top: 20px;
}

.burger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.burger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.recipe-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
  justify-items: center;
  margin-top: 30px;
  width: 100%;
  max-width: 1200px;
  margin-left: 70px;
  margin-right: auto;
}

.recipe-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 320px;
  text-align: center;
}

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

.recipe-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-img {
  transform: scale(1.05);
}

.recipe-card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.recipe-card-title:hover {
  color: #ff6347;
}

.recipe-card-description {
  color: #777;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.recipe-card-details {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.recipe-card-details p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-card-details p strong {
  color: #2c3e50;
  font-weight: 600;
}

.btn.btn-primary {
  background-color: #ff6347;
  color: white;
  padding: 12px 24px;
  margin: 0;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 6px rgba(255, 99, 71, 0.2);
}

.btn.btn-primary:hover {
  background-color: #e03e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(255, 99, 71, 0.3);
}

/* Recipe Page */
#recipe-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

#recipe-form h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

#recipe-form h3 {
  margin-top: 30px;
  font-size: 1.5rem;
  color: #333;
}

.recipe-form p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.recipe-form label {
  font-weight: 600;
  color: #333;
}

.recipe-form input,
.recipe-form select,
.recipe-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.recipe-form input[type="file"] {
  padding: 5px;
}

.recipe-form .error {
  color: #e03e00;
  font-size: 0.9rem;
}

#ingredient-formset {
  margin-top: 20px;
}

.ingredient-form {
  margin-bottom: 15px;
}

.ingredient-form button.remove-form {
  background-color: #e03e00;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
}

.ingredient-form button.remove-form:hover {
  background-color: #c0392b;
}

#add-ingredient {
  display: inline-block;
  background-color: #ff6347;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

#add-ingredient:hover {
  background-color: #e03e00;
}

button[type="submit"] {
  display: inline-block;
  background-color: #ff6347;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  width: 100%;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #e03e00;
}

a {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #333;
}

a:hover {
  color: #ff6347;
}

.ingredient-fields {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.field-wrapper {
  flex: 1;
  min-width: 150px;
}

.field-wrapper label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.field-wrapper input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.recipe-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
}

.recipe-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.recipe-header-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%; 
}

.recipe-author {
  font-size: 1.1rem;
  color: #4a5568;
  margin-left: auto;
}

.recipe-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%; 
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 0.95rem;
}

.recipe-header-image {
  height: 100%;
  min-height: 400px;
}

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

.recipe-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.recipe-main-info {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-description {
  margin-bottom: 2rem;
}

.recipe-description h2 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.recipe-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.detail-card h3 {
  font-size: 1rem;
  color: #718096;
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 1.1rem;
  color: #2d3748;
  font-weight: 500;
}

.recipe-ingredients {
  margin-bottom: 2rem;
}

.recipe-ingredients h2 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.ingredients-list {
  list-style: none;
  padding: 0;
}

.ingredient-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.ingredient-quantity {
  font-weight: 600;
  color: #4a5568;
  min-width: 80px;
}

.ingredient-name {
  color: #2d3748;
}

.recipe-instructions {
  margin-bottom: 2rem;
}

.recipe-instructions h2 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.instructions-content {
  line-height: 1.6;
  color: #4a5568;
}

.recipe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.recipe-actions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.recipe-actions-container form {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.recipe-actions-container .btn-edit,
.recipe-actions-container .btn-delete,
.recipe-actions-container form button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff6347;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
  height: 48px;
  line-height: 1;
  box-shadow: 0 4px 6px rgba(255, 99, 71, 0.2);
  font-family: inherit;
  box-sizing: border-box;
}

.recipe-actions-container form button {
  appearance: none;
}

.recipe-actions-container .btn-edit {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
}

.recipe-actions-container .btn-delete {
  display: inline-flex;
  align-items: center;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #f56565;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-like:hover {
  background: #e53e3e;
}

.btn-like.liked {
  background: #fc8181;
}

.likes-count {
  display: block;
  margin-top: 1rem;
  color: #718096;
  font-size: 0.9rem;
}

.recipe-comments {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-comments h3 {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #2d3748;
}

.comment-date {
  color: #718096;
  font-size: 0.9rem;
}

.comment-content {
  color: #4a5568;
  line-height: 1.5;
}

.comment-form {
  margin-top: 1.5rem;
}

.comment-form h4 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #4299e1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #3182ce;
}

.login-prompt {
  text-align: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}

.login-prompt a {
  color: #4299e1;
  text-decoration: none;
}

.login-prompt a:hover {
  text-decoration: underline;
}

.recipe-footer {
  margin-top: 3rem;
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #edf2f7;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-back:hover {
  background: #e2e8f0;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
  background-color: #f7f7f7;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.login-box {
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 6000px;
  margin: 0 auto;
}

.login-box h2 {
  color: #333;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  text-align: center;
  font-weight: 600;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: #555;
  font-weight: 500;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #ff6347;
  box-shadow: 0 0 0 2px rgba(255, 99, 71, 0.1);
}

.forgot-password {
  text-align: right;
  margin-bottom: 2rem;
}

.forgot-password a {
  color: #ff6347;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #e03e00;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background-color: #ff6347;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 2rem;
}

.btn-login:hover {
  background-color: #e03e00;
}

.signup-link {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
}

.signup-link a {
  color: #ff6347;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #e03e00;
}

/* Login Page Responsive Styles */
@media screen and (max-width: 768px) {
  .login-container {
    padding: 1.5rem;
    min-height: calc(100vh - 160px);
  }

  .login-box {
    padding: 2.5rem;
  }

  .login-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .login-container {
    padding: 1rem;
  }

  .login-box {
    padding: 2rem;
  }

  .login-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .input-group {
    margin-bottom: 1.75rem;
  }

  .btn-login {
    padding: 0.9rem;
    font-size: 1.05rem;
  }
}

/* Profile Page */
.profile-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.profile-image {
  margin-bottom: 1rem;
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ff6347;
  box-shadow: 0 4px 12px rgba(255, 99, 71, 0.2);
}

.profile-info {
  width: 100%;
  text-align: center;
}

.profile-info h2 {
  font-size: 2.25rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.bio-section {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#bio-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1rem;
}

#bio-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#bio-form label {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

#bio-form textarea,
#bio-form input[type="file"] {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#bio-form textarea:focus {
  outline: none;
  border-color: #ff6347;
  box-shadow: 0 0 0 2px rgba(255, 99, 71, 0.1);
}

.btn-edit {
  background-color: #ff6347;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-edit:hover {
  background-color: #e03e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(255, 99, 71, 0.2);
}

.profile-container h3 {
  font-size: 1.75rem;
  color: #2d3748;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Media queries */
@media (max-width: 992px) {
  .burger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ff6347;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    padding-top: 0;
  }

  .nav-menu li {
    width: 100%;
    margin: 10px 0;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .nested-dropdown-content {
    position: static;
    width: 100%;
    left: 0;
    top: 0;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .nested-dropdown.open .nested-dropdown-content {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .recipe-card-container {
    grid-template-columns: 1fr;
    padding: 20px;
    margin: auto;
  }

  .recipe-card {
    max-width: 100%;
  }

  .recipe-card-img {
    height: 180px;
  }

  .recipe-card-content {
    padding: 10px; 
  }
}

/* Recipe Detail Page */
@media screen and (max-width: 1200px) {
  .recipe-detail-container {
    padding: 1.5rem;
  }

  .recipe-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recipe-header-image {
    order: -1;
    height: 300px;
  }

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

  .recipe-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .recipe-detail-container {
    padding: 1rem;
  }

  .recipe-title {
    font-size: 2.5rem;
  }

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

  .recipe-stats {
    margin-bottom: 1rem;
  }

  .recipe-stats .stat {
    margin-right: 1rem;
  }

  .recipe-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }

  .recipe-actions-container {
    flex-direction: column;
    gap: 1rem;
  }

  .recipe-actions-container .btn-edit,
  .recipe-actions-container .btn-delete,
  .recipe-actions-container form button {
    width: 100%;
  }

  .recipe-sidebar {
    margin-top: 2rem;
  }

  .recipe-comments {
    margin-top: 2rem;
  }

  .comment-form {
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .recipe-title {
    font-size: 2rem;
  }

  .recipe-header-image {
    height: 250px;
  }

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

  .recipe-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-stats .stat {
    margin-bottom: 0.5rem;
  }

  .ingredient-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .ingredient-quantity {
    margin-bottom: 0.25rem;
  }

  .comment {
    padding: 0.75rem;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-date {
    margin-top: 0.25rem;
  }
}

/* Profile Page */
@media screen and (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }

  .profile-image {
    margin-bottom: 1.5rem;
  }

  .profile-info h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .profile-container {
    padding: 0 1rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .profile-image img {
    width: 150px;
    height: 150px;
  }

  .profile-info h2 {
    font-size: 1.75rem;
  }

  .bio-section {
    padding: 1.25rem;
  }
}
