body{background-color:#f2f2f2;}

.recipe-container {
    padding: 20px;
    max-width: 1200px;
    margin: 80px auto 0;
}

.recipe-cuisine span{
  padding:10px;
}

.DK_flag{
  cursor:pointer;
  font-size:24px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-blue);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
}

/* Tag styling UDDATERET */
/* .tag {
    background-color: transparent;
  width:70px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    margin: 5px;
    font-size: 14px;
}

.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
*/

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.recipe-creation-form {
    background-color: var(--beige-white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.recipe-image-section {
    flex: 0 0 40%;
}

.recipe-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-content {
    flex: 1;
}

.tags-section {
    margin-bottom: 20px;
}

.tag-input {
    padding: 8px 12px;
    border: 1px solid lightgrey;
    border-radius: 8px;
    width: 70px;
    background-color: transparent;
    color: var(--dark-blue);
    font-size: 14px;
   letter-spacing: 3px;
}

.tag-input::placeholder {
    color: var(--dark-blue);
    opacity: 0.7;
}

.tag-input:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-title {
    font-size: 24px;
    border: none;
    background: none;
    width: 80%;
}

.recipe-title_profile{
    border: none;
    background: none;
    width: 80%;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.recipe-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ingredients-section,
.instructions-section {
    flex: 1;
}

.instructions-input {
    width: 100%;
    min-height: 200px;
    padding: 10px;
}

.ingredient-search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
}

.ingredient-suggestion {
    padding: 8px 12px;
    cursor: pointer;
}

.ingredient-suggestion:hover {
    background-color: #f5f5f5;
}

.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}



.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-credit {
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.prep-time input{background-color:transparent;}
.servings input{background-color:transparent; width:60px;}

.amount-input{width:60px; background-color:transparent;}
.ingredient-input{background-color:transparent;}
.instructions-input{background-color:transparent;}

@media (max-width: 768px) {
      .recipe-image {
        height: 100%;
    }
  
      .recipe-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .recipe-title {
        width: 100%;
        order: 1;
    }

    .heart-icon {
        order: 2;
    }

    .season-counter {
        order: 3;
        margin-left: 0;
    }
  
  .recipe-title{
        white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
    .recipe-creation-form {
        flex-direction: column;
    }

    .recipe-image-section {
        width: 100%;
        margin: -10px;
    }

    .recipe-body {
        flex-direction: column;
    }
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.ingredient-item .amount {
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.ingredient-item .unit {
    font-size: 0.9em;
    color: #666;
    min-width: 25px;
}

.ingredient-item .ingredient-name {
    flex: 1;
}







/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--beige-white);
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h2 {
    margin: 0;
    color: var(--dark-blue);
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: var(--dark-blue);
}

.modal-body {
    padding: 20px;
}

/* NY CSS */
/* Heart icon styles */
.heart-icon {
  font-size:24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Default state (not favorited) */
.heart-icon {
}

/* Hover state */
.heart-icon:hover {
    transform: scale(1.1);
}

/* Favorited state */
.favorited {
stroke: #FFFF00 !important; 
color: #FFFF00 !important; }

.add-single-ingredient{
      background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;
  font-family: 'Dancing Script', cursive;
  font-size:2em;
  font-weight:bold;
}
.add-single-ingredient:hover{
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;}

#recipe_author{ 
  margin-left: auto;
  order: 2;
padding-right:20px;
    font-family: "Playfair Display", serif;
  font-style: normal;
}
#recipe_author img{
  object-fit: cover;
  width:90px; 
  height:90px;
  border: 2px solid black;
  border-radius:50%;}
#author_name a{
  text-decoration: none;
  color:black;
}