@import url('../_root.css');

.homeNavbar {
    position: relative;
    height: 86vh;
    overflow: hidden;
    width: 100%;
}

/* Background Image */
.navbarBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Bottom Gradient */
.bottomGradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: -moz-linear-gradient(top, rgba(22, 21, 20, 0) 0%, rgba(22, 21, 20, 0.8) 50%, #161514 100%);
    background: -webkit-linear-gradient(top, rgba(22, 21, 20, 0) 0%, rgba(22, 21, 20, 0.8) 50%, #161514 100%);
    background: -o-linear-gradient(top, rgba(22, 21, 20, 0) 0%, rgba(22, 21, 20, 0.8) 50%, #161514 100%);
    background: -ms-linear-gradient(top, rgba(22, 21, 20, 0) 0%, rgba(22, 21, 20, 0.8) 50%, #161514 100%);
    background: linear-gradient(to bottom, rgba(22, 21, 20, 0) 0%, rgba(22, 21, 20, 0.8) 50%, #161514 100%);
    z-index: 0;
}

/* Main Content Box */
.contentBox {
    position: absolute;
    top: 5%;
    right: 2%;
    background-color: rgba(22, 21, 20, 0.85);
    padding: 10px;
    border-radius: 12px;
    z-index: 3;
    max-width: 600px;
}

/* Icon Section */
.iconSection {
    margin-bottom: 20px;
}

.homeLogoImage {
    height: 70px;
    width: auto;
}

/* Subtitle Section */
.subtitleSection {
    margin-bottom: 20px;
}

.subtitle {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Small Navbar Container */
.smallNavbarContainer {
    margin-bottom: 25px;
    padding: 15px;
}

.homeNavbarContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

/* Search Form in Small Navbar */
.homeSearchForm {
    position: relative;
    margin: 0;
}

.homeSearchInputContainer {
    position: relative;
    display: flex;
    align-items: center;
}

.smallNavbarContainer .homeSearchInput {
    all: unset;
    background-color: var(--primary-color);
    border: 2px solid var(--tertiary-color);
    padding: 8px 20px 8px 45px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    width: 200px;
}

.smallNavbarContainer .homeSearchInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(50, 203, 146, 0.2);
    font-size: 14px;
}

.homeSearchInput::placeholder {
    color: #888;
}

.homeSearchIcon {
    position: absolute;
    color: var(--accent-color);
    z-index: 1;
    left: 12px;
    font-size: 14px;
    cursor: pointer;
}

.homeSearchOptions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border: 2px solid var(--tertiary-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.homeSearchOptions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.homeSearchOptionLabel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.homeSearchCheckbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* Explorar Section in Small Navbar */
.homeExplorarSection {
    position: relative;
}

.homeExplorarButton {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.homeExplorarButton:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.homeExplorarButton:focus {
    outline: none;
}

.homeExplorarArrow {
    font-size: 12px;
    transition: var(--transition);
}

.homeExplorarButton:hover .homeExplorarArrow {
    transform: rotate(180deg);
}

.homeExplorarDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-color);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    overflow: hidden;
}

.homeExplorarDropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.homeExplorarList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.homeExplorarList li {
    border-bottom: 1px solid var(--tertiary-color);
}

.homeExplorarList li:last-child {
    border-bottom: none;
}

.homeExplorarLink {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.homeExplorarLink:hover {
    background-color: var(--tertiary-color);
    color: var(--accent-color);
    text-decoration: none;
}

.homeExplorarLink:focus {
    color: var(--accent-color);
}

/* User Section in Small Navbar */
.homeUserSection {
    display: flex;
    align-items: center;
}

.homeUserButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border: 2px solid var(--tertiary-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.homeUserButton:hover {
    background-color: var(--accent-color);
    color: var(--background);
    text-decoration: none;
    transform: scale(1.1);
    cursor: pointer;
}

.homeUserIcon {
    font-size: 18px;
}

/* Auth Section */
.authSection {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.authLink {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.authLink:hover {
    color: var(--accent-color);
    opacity: 0.7;
}

.authLink:focus {
    color: var(--accent-color);
}

.authList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.authList li {
    margin-bottom: 10px;
}

.authList li:last-child {
    margin-bottom: 0;
}

/* Image Description */
.imageDescription {
    background-color: rgba(22, 21, 20, 0);
    color: #e8e4e2;
    font-size: 0.8em;
    position: absolute;
    bottom: 90px;
    right: 2%;
    z-index: 1;
}

.descriptionLink {
    color: #a2d5e0;
    display: inline-block;
    max-width: 200px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.descriptionLink:hover,
.descriptionLink:focus {
    color: #c8e6ed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contentBox {
        min-width: auto;
        width: 95%;
        padding: 20px;
    }

    .homeSearchInput {
        width: 150px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contentBox {
        padding: 15px;
    }

    .homeLogoImage {
        height: 60px;
    }

    .subtitle {
        font-size: 14px;
    }

    .smallNavbarContainer {
        padding: 10px;
    }

    .homeSearchInput {
        width: 120px;
        font-size: 12px;
    }
}
