/*Based on Tutorial video3 min.36*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    color: #444444;
    margin-top: 5rem;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #444444;
  }
  
  ul {
    margin: 0;
  }
  
.bg-steel {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
  
  .site-header .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .site-header .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  
  .site-header .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
  }

  .navbar-nav .nav-link[href*="admin"] {
    color: #f39c12 !important;
    font-weight: 600;
}

.category-header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    border-radius: 10px;
    margin-top: 2rem;
}

.post-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: rgba(255, 255, 255, 0.95);
}

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

.article-title {
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title:hover {
    color: #3498db !important;
    text-decoration: none;
}

/* Category Badges */
.badge {
    font-size: 0.7rem;
    padding: 0.4em 0.8em;
}

.empty-state {
    padding: 3rem 1rem;
}

.dark-bg .card {
    background: rgba(255, 255, 255, 0.95);
}

.dark-bg .text-muted {
    color: #6c757d !important;
} 
  
  .content-section {
    background: #ffffff;
    padding: 10px 20px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    margin-bottom: 20px;
  }
  
  .article-title {
    color: #444444;
  }
  
  a.article-title:hover {
    color: #428bca;
    text-decoration: none;
  }
  
  .article-content {
    white-space: pre-line;
  }
  
  .article-img {
    height: 65px;
    width: 65px;
    margin-right: 16px;
  }
  
  .article-metadata {
    padding-bottom: 1px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e3e3e3
  }
  
  .article-metadata a:hover {
    color: #333;
    text-decoration: none;
  }
  
  .article-svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
  }
  
  .account-img {
    height: 125px;
    width: 125px;
    margin-right: 20px;
    margin-bottom: 16px;
  }
  
  .account-heading {
    font-size: 2.5rem;
  }

  /*----Create Post-----------------------*/

.create-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 2rem 1rem;
    border: 2px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.quick-start-options {
    padding: 2rem;
}

.editor-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.image-preview {
    border: 2px dashed #dee2e6;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.custom-file-label::after {
    content: "Browse";
}

.note-editor.note-frame {
    border: 1px solid #dee2e6 !important;
    border-radius: 5px !important;
}

.note-editor.note-frame .note-toolbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}
/*----End Create Post-----------------------*/

  /*Profile styles*/
  /*.profile-container {
    display: flex; 
    background-color: #fff;
  }
  
  .profile-picture {
    margin-right: 20px;
  }
  
  .user-info {
    flex: 1; 
    align-items: flex-start;
    float: right;
  }*/
/*-----------------------------------------------*/
.profile-picture {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-edit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-trash-btn{
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    background: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-edit-btn:hover {
    transform: scale(1.1);
    background: #b31b00;
}

.profile-trash-btn:hover {
    transform: scale(1.1);
    background: #c82333;
}

.stat-item h4 {
    font-weight: bold;
    margin-bottom: 0;
}

.action-buttons .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}
/*------------------------------------------------*/
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

  /*CSS rules from walk threw related to post_detail.html*/


.brand {
    font-family: Lato, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4F;
}

.red-o {
    color: #E84610;
}

.thin {
    font-weight: 300;
}

.light-bg {
    background-color: #fff;
}

.dark-bg {
    background-color: #445261;
}

.main-bg {
    background-color: #F9FAFC;
}

.card {
    border: none;
    background-color: transparent;
}

.comment-display,
.comment-creation {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comment-display {
  max-height: 500px;
  overflow-y: auto;
}

.comment-container {
  max-height: 500px;
  overflow-y: auto;
}

.comments-heading {
  color: #fff;
}

.card-body {
  background-color: #fff;
  padding: 60px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
}

.image-flash {
    position: absolute;
    bottom: 5%;
    min-width: 30%;
    left: -2px;
    background-color: #188181;
}

.scale {
    width: 100%;
    height: auto;
}

.author {
    color: white;
    margin: 4px;
    text-transform: uppercase;
}

.masthead {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    height: 33vh;
    width: 100%;
}

.masthead-text {
    background-color: #445261;
    color: white;
    position: relative;
}

.masthead-image {
    position: relative;
    overflow: hidden;
}

.masthead-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 90%;
    height: 100%;
    width: 150%;
    background: #445261;
    -webkit-transform: skew(15deg);
    -moz-transform: skew(15deg);
    transform: skew(15deg);
    z-index: 100;
}

.post-link {
    text-decoration: none;
    color: #445261;
}

.post-link:hover,
.page-link {
    color: #E84610;
}

.post-title {
    margin-top: 10%;
    margin-left: 5%;
}

.post-subtitle {
    margin-left: 5%;
    color: lightgray;
}

.btn-signup,
.btn-edit {
    background-color: #188181;
    color: #fff;
}

.btn-signup:hover,
.btn-signup:active {
    background-color: #fff;
    color: #23BBBB;
}

.link {
    color: #23BBBB;
    text-decoration: none;
}

.link:hover,
.link:active {
    color: #445261;
    text-decoration: underline;
}

.btn-like {
    color: #E84610;
    border: none;
    background: transparent;
}

.btn-delete {
    color: #fff;
    background: #E84610;
}

.btn-like:hover,
.btn-like:active {
    color: #E84610;
    background: transparent;
    border: none;
}

.faded {
    color: rgb(172, 175, 175);
}

.approval {
    color: rgb(222, 146, 168);
}

/* End of walk threw css rules */

#div_id_username,
#div_id_email,
#div_id_profile_image,
#div_id_title,
#div_id_slug,
#div_id_content,
#div_id_excerpt,
#div_id_featured_image,
#div_id_status {
    color: #ffffff;
}

#create-post-link {
    background-color: #e74c3c;
    border-radius: 20px;
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
}

#create-post-link:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about {
  color: #fff;
}
#form-container,
#edit-form-container,
.profile-post-container,
.container-fluid,
.post-detail {
  max-height: 100%;
  overflow-y: auto;
  margin-bottom: 40px;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

@media screen and (width:240px) {
  .container-fluid,
  .container-new-post {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 25px;
  }
  .card-body {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

}

@media screen and (max-width:711px) {
  .container-fluid,
  .container-new-post {
    max-height: 60vh;
    overflow-y: auto;
  }
  .card-body {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
}

  @media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0.1rem 0;
        text-align: center;
    }
    
    #create-post-link {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }
    
    .category-header {
        margin-top: 1rem;
        padding: 1.5rem !important;
    }
}

@media (min-width: 712px) and (max-width: 991px) {
  .profile-post-container,
  .container-fluid,
  .container-new-post {
    max-height: 85vh;
    overflow-y: auto;
  }

  .custom-tablet-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card-body {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}


@media screen and (width: 1024px) {
  .profile-post-container,
  .container-fluid,
  .container-new-post {
    max-height: 85vh;
    overflow-y: auto;
    margin-bottom: 60px;
  }
  .custom-tablet-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card-body {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}

@media screen and (width: 1280px) {
  .profile-post-container,
  .container-fluid,
  .container-new-post {
    max-height: 80vh;
    overflow-y: auto;
  }
  .custom-tablet-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}