/* overall style */
html{
    font-family: 'Pixelify Sans';
    font-size: 16px;
}
body {
    background-image: url('assets/home-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
    margin: 0;
    padding: 0;
}

.title {
    font-size: 70px;
    color: #A50715;
    margin-bottom: -15px;
}

.button {
    padding: 15px 30px;
    font-size: 36px;
    cursor: pointer;
    border: none;
    border-radius: 18px;
    background-color: #E74250;
    color: white;
    font-family: 'Pixelify Sans';
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #C0392B;
}

#AddWalk {
    position: fixed;        
    bottom: 20px;           
    right: 20px;           
    margin: 0;             
    z-index: 20;            
}


.popup{
    display: none;
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.573); 
    backdrop-filter: blur(6px);       
}

.popup-content {
    background-color: #A50715;
    color: white;
    margin: 15% auto;
    padding: 20px;
    border: none;
    border-radius: 18px;
    width: 80%; 
    max-width: 500px; 
    min-height: 200px;
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 30px;
}

.popup-content button{
    margin-top: 10px;
    font-size: 20px;
    padding: 10px 25px;
}

.popup-content input{
    font-family: 'Pixelify Sans';
    font-size: 16px;
    border-radius: 10px;
    outline: none;
    border: none;
    padding: 5px;
    padding-left: 10px;
    font-weight: 500;
}


/* homepage style */
.homepage-content {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    height: 100vh;
    margin: 0;  
    gap: 5px;
}

.homepage-text{
    margin-top: 110px;
}

.homepage-content p {
    font-size: 1.2rem;
    color: #A50715;
    font-weight: 600;
}

.start-popup-input{
    display: flex;
    flex-direction: row;
    gap:15px;
}


/* my walks style */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 100vh;
    background-color: #A50715;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-button{
    color: white;
    font-size: 25px;
    cursor: pointer;
    outline: none;
    border: none;
    background: none;
    font-family: 'Pixelify Sans';
}

#gif2 {
  transform: scaleX(-1);
}

#my-walks-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 100vh;
    z-index: 10;
}

#mywalks-title, #walkrecs-title, #profile-title{
    z-index: 20;
    padding-top: 30px;
}

/* walk info pop up style */
.form-popup {
    display: none;
    position: fixed;
    top: 130px;
    left: 410px;
    z-index: 1;
    width: 55%;
    height: 65%;
    overflow: auto;
    background-color: #E74250;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

/* for the background after add walk pop up appears */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);  
    backdrop-filter: blur(6px);       
    display: none;                    
    justify-content: center;
    align-items: center;
    z-index: 10;                    
}

.popup-content-addwalk {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

/* profile style */
#profile-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card {
    margin-top: 2em;
    position: relative; 
    background-color: #C0392B;
    color: white;
    padding: 15px 40px 20px 40px;
    border: none;
    border-radius: 18px;
    width: 90%; 
    max-width: 700px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 1em;
    margin-left: 1em;
    gap: 15px;
}

.profile-row {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px; 
}

.profile-row h1,
.profile-row p {
    margin: 0; 
}

/* Progress Bar Styles */
.progress-stats {
    font-size: 20px;
    color: white;
    margin: 10px 0;
    display: flex;
    flex-direction: row;
}

.progress-stats span {
    color: #FFD700;
    font-weight: bold;
}

.progress-bar-bg {
    width: 100%;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 15px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.congrats-message {
    font-size: 22px;
    color: #FFD700;
    margin-top: 10px;
    font-weight: bold;
    display: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.congrats-message.show {
    display: block;
    animation: celebrate 1s ease;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Walk Stats Styles */
.walk-stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: auto;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 100px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Edit Goal Button */
.edit-goal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.edit-goal-btn:hover {
    transform: scale(1.2);
}

/* Badge Styles */
#badge-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 80px;
    margin-top: 5px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;  /* Changed from cover to contain */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;  /* Changed from 50% to 0 - no cropping */
    animation: badgeAppear 0.5s ease;
    position: relative;
}

.badge-icon.locked {
    opacity: 0.3;
    filter: grayscale(100%) brightness(0.5);
}

.badge-label {
    font-size: 12px;
    color: white;
    text-align: center;
    font-weight: bold;
}

@keyframes badgeAppear {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    /* 100% { transform: scale(1) rotate(0); opacity: 1; } */
}


/* leaf style */
.walk-card {
    position: absolute;
    width: 250px;                  
    height: 150px;                 
    margin: 20px;
    background-image: url('assets/leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding: 200px; */
}

.walk-card p {
    margin: 0;
    color: black;                  
    font-weight: bold;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px; 
}

.walk-text {
    margin-top: 30px;
}

#walk-list {
    position: relative;
    width: 100%;
    height: 100vh;
}

#blur-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    backdrop-filter: blur(2px);
    /* -webkit-backdrop-filter: blur(3px); */

    z-index: 0;        /* always behind everything */
    /* pointer-events: none; */
}

.profile-row h1,
.profile-row p {
    margin: 0; /* remove default margin */
}

#profile-name {
    text-transform: uppercase;
}

/* Walking Trail Recommendations Styles */
#walkrecs-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.location-input-container {
    background-color: rgba(192, 57, 43, 0.9);
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 20px;
    max-width: 600px;
    width: 100%;
}

.location-input-container h3 {
    color: white;
    margin-top: 0;
    font-size: 24px;
}

.location-input-container input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    font-family: 'Pixelify Sans';
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
}


#map {
    width: 60%;
    max-width: 1000px;
    height: 500px;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.trails-list {
    flex: 0.5;
    background-color: rgba(192, 57, 43);
    padding: 30px;
    border-radius: 18px;
    max-width: 1000px;
    width: 25%;
    color: white;
    scroll-behavior: smooth;
    max-height: 400px;   /* Limit height to show only ~3 cards */
    overflow-y: auto;    /* Enable scrolling */
}

.trails-list::-webkit-scrollbar {
    width: 0;
}

.trails-list h2 {
    margin-top: 0;
    color: #FFD700;
}

.trail-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.trail-item h3 {
    margin-top: 0;
    color: #FFD700;
}

.trail-item p {
    margin: 5px 0;
}

.loading {
    color: white;
    font-size: 24px;
    background-color: rgba(192, 57, 43);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.error {
    color: #FFD700;
    background-color: rgba(192, 57, 43);
    padding: 20px;
    border-radius: 18px;
    font-size: 18px;
}

.results-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 80%;
    margin-top: 20px;
    margin-left: 170px;
}

#map {
    flex: 1;
    height: 455px;
}




