/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7em 0em;
}   

.header-logo {
    width: 8em;
    height: 3em;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.input-container,
.input-location,
.search-container {
    align-items: center;
}

.input-container {
    border: .2px solid var(--border-primary-color);
    border-radius: .5em;
}

#position,
.detect-location i {
    color: var(--fill-button-secondary);
}

#position,
#search {
    padding: 0 .65em;
    font-size: 1.3em;
}

.input-location input,
.search-container input {
    border: none;
    outline: none;
}

.input-location input {
    border-right: 2px solid var(--icon-tertiary-color);
}

.search-container input {
    width: 30em;
}

.logo-search {
    justify-content: space-between;
    gap: 2em;
}

.nav_items ul {
    gap: 2em;
}

.nav_items ul li a {
    font-size: 1.1em;
    font-weight: 300;
}

hr {
    border: none;
    border-top: 1px solid #e8e8e8;
}

.input-location {
    position: relative;
}

.detect-location {
    position: absolute;
    top: 4em;
    z-index: 1000;
    display: flex;
    background-color: var(--text-color);
    width: 25vw;
    padding: 18px;
    border: 1px solid var(--border-primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    gap: 10px;
}

.detect-location .content {
    display: flex;
    flex-direction: column;
    font-size: 1em;
    align-items: flex-start;
}

.detect-location p:first-child {
    color: var(--fill-button-secondary);
}

.detect-location p:last-child {
    font-size: .8em;
    color: var(--icon-secondary-color);
}

.arrow-down {
    position: absolute;
    right: 8px;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
}

.head-selection {
    border-bottom: 1px solid #ccc;
    position: relative;
    margin-left: 1em;
    font-size: 1.2em;
    color: var(--icon-tertiary-color);
}

.head-selection .handpicked-title,
.head-selection .saved-title {
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
}

/* Divider styles */
.or {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.or hr {
    flex: 1;
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 10px;
    transition: border-color 0.3s ease;
}

.or #content-or {
    color: #9c9c9c;
    font-size: 0.84em;
    padding: 0 0.6em;
    text-transform: lowercase;
}

/* Footer styles */
.footer-line {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 2em 0;
}

.footer-content {
    text-align: center;
    font-size: 0.84em;
    color: #1c1c1c;
}

#create-account {
    color: rgb(239, 79, 95);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#create-account:hover {
    color: rgb(223, 53, 70);
    text-decoration: underline;
}

.sign-input .input-name,
.sign-input .input-email {
    position: relative;
    width: 100%;
}

.sign-input .input-name input,
.sign-input .input-email input {
    width: 100%;
    padding: 0.6em;
    padding-top: 0.9em;
    border: 1px solid var(--border-primary-color);
    border-radius: 5px;
    font-size: 0.96em;
    transition: border .3s ease;
}

.sign-input .input-name input:focus,
.sign-input .input-email input:focus {
    border-color: teal;
    outline: none;
}

.sign-input label {
    position: absolute;
    top: 50%;
    left: 0.6em;
    transform: translateY(-50%);
    font-size: 0.96em;
    color: grey;
    background-color: white;
    padding: 0 0.3em;
    transition: .3s ease-in-out;
    pointer-events: none;
}

.sign-input .input-name input:focus+label,
.sign-input .input-name input:not(:placeholder-shown)+label,
.sign-input .input-email input:focus+label,
.sign-input .input-email input:not(:placeholder-shown)+label {
    top: 0;
    left: 10px;
    font-size: 12px;
    color: teal;
}

.signup-container {
    width: 100%;
}

.signup-container h1 {
    font-size: 1.44em;
    font-weight: 500;
    margin-bottom: 1em;
    color: #1c1c1c;
}

.sign-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.check-box {
    display: flex;
    align-items: flex-start;
    gap: 0.48em;
    margin-top: 8px;
    font-size: 0.84em;
    color: #4f4f4f;
}

.check-box span a {
    color: rgb(239, 79, 95);
    text-decoration: none;
}

/* .signup-container .footer-line {
    margin: 0;
} */

.menu-overlay {
    position: fixed;
    top: 3em;
    left: 3em;
    padding: 0 1em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.menu-item {
    padding: .5em 0;
    display: flex;
    gap: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hidden {
    display: none;
}

.login-overlay,
.signup-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.44em;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-container,
.signup-container {
    width: 100%;
}

.close-button {
    position: absolute;
    top: 0.96em;
    right: 0.96em;
    cursor: pointer;
}

.phone-input {
    width: 100%;
    padding: .2rem 0rem;
    margin: 1em 0;
    display: inline-flex;
    border: .1rem solid var(--border-primary-color);
    border-radius: .4rem;
    font-size: 1.1rem;
    font-weight: 200;
    outline: none;
    align-items: center;
    position: relative;
}

.phone-input:focus-within {
    border-color: teal;
    box-shadow: 0 0 0 2px rgba(239, 79, 95, 0.1);
}


.phone-code {
    position: relative;
    width: 20%;
    font-size: .6em;
}

.phone-code input {
    font-size: 1.4em;
    width: 100%;
    padding: .3em;
    align-items: center;
    outline: none;
    border: none;
    border-right: 1px solid var(--icon-secondary-color);
}

.type-container {
    flex: 1;
    font-size: 1.1em;
}

.type-container input {
    width: 100%;
    padding: .4em;
    outline: none;
    border: none;
    font-size: .9em;
}

.country-list {
    position: absolute;
    top: 102%;
    left: 0;
    width: 25%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    font-size: .8em;
    max-height: 12em;
    overflow-y: auto;
    transform-origin: top;
    animation: slideDown 0.3s ease;
    display: hidden;
}

.country-item {
    margin-bottom: .2em;
    gap: 1em;
    display: flex;
    padding-left: .25rem;
}

.otp-button,
#email-button,
#google-button {
    width: 100%;
    padding: 0.72em;
    margin: 0.48em 0;
    border: 1px solid rgb(207, 207, 207);
    border-radius: 0.48em;
    font-size: 0.84em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.otp-button {
    background-color: rgb(239, 79, 95);
    color: white;
    border: none;
    font-size: 1em;
}

.otp-button:hover {
    background-color: rgb(223, 53, 70);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 79, 95, 0.2);
}

#email-button,
#google-button {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48em;
}

#email-button:hover,
#google-button:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer {
    width: 100%;
    margin-top: auto;
    position: relative;
    bottom: 0;
}

#explore-container {
    margin-top: 5em;
    margin-bottom: 4.5em;
}