/* ============================
   Base Styles
============================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Arial", "Helvetica", sans-serif;
    background-color: #7A8F55;
}

h1 {
    margin-top: 0;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================
   Typography helpers
============================ */

a {
    text-decoration: none;
}

/* ============================
   Header
============================ */

header {
    z-index: 1000;
    top: 0px;
    left: 0px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100vw;
    flex-wrap: wrap;
    padding: 10px;
    padding-left: 0;
    margin-bottom: 0;
    background-color: #2F4F3E;
}

.wrap-logo,
nav {
    display: flex;
    align-items: center;
}

header a {
    padding: 10px;
    font-size: 18px;
    color: #C67141;
    border-radius: 4px;
}

header a.logo {
    font-size: 25px;
    font-weight: bold;
}

header a:hover {
    color: #D13F2A;
}

/* ============================
   Main content
============================ */

.content {
    width: 75vw;
    margin: 70px auto;
    padding: 20px 20px 50px;
    text-align: center;
    background-color: #F4EEDB;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ============================
   Image Containers
============================ */

.image_container,
.image_container_base {
    margin: 0 auto;
    overflow: hidden;
}

.image_container {
    width: 500px;
}

.image_container_base {
    width: 25vw;
    margin-top: 10px;
    border-radius: 12px;
}

.image_container img,
.image_container_base img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ============================
   Post Details
============================ */

.post_detail {
    width: 60vw;
    margin: 20px auto;
    padding: 20px;
    font-size: 20px;
    color: #F4EEDB;
    text-align: left;
    border-radius: 15px;
    background-color: #2F4F3E;
}

.post_detail a {
    color: #F4EEDB;
}

.post_flexbox {
    display: flex;
    gap: 20px;
}

.left,
.right {
    flex: 1;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post_info {
    margin-top: 10px;
    font-size: 14px;
    color: #adb5bd;
}

.post_detail_title {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}

.post_detail_ingredients,
.post_detail_instructions {
    font-size: 18px;
    margin: 30px 0;
}

.post_detail_all {
    width: 60vw;
    margin: 20px auto;
    padding: 20px;
    font-size: 20px;
    color: #7C4F32;
    text-align: left;
    border-radius: 15px;
}

.post_detail_all a:visited {
  text-decoration: none;
  color: #D9A441;
}

.info_about_author {
    display: flex;
    align-items: center;
    gap: 14px;

    background: #ffffffcc;               
    backdrop-filter: blur(8px);          
    border: 1px solid #e3e3e3;
    
    padding: 16px 20px;
    border-radius: 14px;
    width: fit-content;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);  
}

.author_img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;

    border: 2px solid #dcdcdc;          
}

.name {
    font-size: 20px;
    font-weight: 600;
    color: #4a3c2d;                    
    letter-spacing: 0.3px;
}

.post_published_info {
  text-decoration: none;
  font-size: 12px;
}

/* ============================
   Profile
============================ */

.profile-image,
.img-profile {
    text-align: center;
}

.img-profile {
    width: 25vw;
    margin-top: 10px;
    border-radius: 12px;
}

/* ============================
   Forms
============================ */

.forms_environment {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
}

.email_form,
.username_form,
.password_form,
.avatar_form {
    margin: 10px 0 5px;
}

.form-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 40px 50px;
    background: #f4ecd4;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-wrapper h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    border: 1px solid #b0a48c;
    border-radius: 10px;
    outline: none;
    transition: 0.25s;
    font-family: "Arial", "Helvetica", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #6a8b4f;
    box-shadow: 0 0 6px rgba(106,139,79,0.5);
}

.form-group textarea {
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    background: #6a8b4f;
    transition: 0.25s;
}

.submit-btn:hover {
    background: #58763f;
}

/* ============================
   Buttons (like / save)
============================ */

.like_save_form {
    display: flex;
    gap: 12px;
}

.like,
.save {
    padding: 8px 14px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    background: #f4f4f4;
    transition: 0.2s;
}

.like:hover,
.save:hover {
    background: #eaeaea;
}

.like:active,
.save:active {
    transform: scale(0.97);
}

.like {
    color: #d63333;
}

.save {
    color: #2563eb;
}

/* ============================
   Utility / Misc
============================ */

.btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    background-color: #4CAF50;
}

.logo-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.error {
    margin-top: 8px;
    padding: 10px 12px;
    color: #d93025;
    background-color: #ffe6e6;
    border: 1px solid #ffb3b3;
    border-radius: 6px;
}

/* ============================
   Floating Button
============================ */

.fixed-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    text-decoration: none;
    background-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fixed-link:hover {
    background-color: #1e7e34;
}
