/*
 Theme Name:   Hello Elementor Child
 Description:  Custom header and menu icons for AllTrails.
 Author:       Antigravity
 Template:     hello-elementor
 Version:      1.0.4
*/

/* The Aeonik font is already loaded via the mu-plugin, so we don't need to import it here. */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Aeonik', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.site-header .logo img {
    height: 32px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
    margin: 0 15px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.site-navigation ul.menu li.menu-item-has-children:after {
    content: "\f078" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 12px;
    margin-left: 8px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.main-navigation ul li.menu-item-has-children>a::after {
    display: none;
}

/* Dropdown styling */
.main-navigation ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 15px 0;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    flex-direction: column;
}

.main-navigation ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li .sub-menu li {
    margin: 0;
}

.main-navigation ul li .sub-menu li a {
    padding: 10px 20px;
    font-weight: 400;
    font-size: 14px;
}

.main-navigation ul li .sub-menu li a:hover {
    background: #f9f9f9;
}

/* Icons in second level menu */
.menu-item-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    padding: 15px;
    border-radius: 20px;
}

.menu-item-icon img,
.menu-item-icon svg {
    max-width: 100%;
    max-height: 100%;
}

/* Header Login Button */
.header-login-btn {
    background: #111;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700 !important;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease;
    display: inline-block;
}

/* Footer Styles */
.site-footer {
    background: #141f15;
    /* AllTrails Dark Green */
    color: #fff;
    padding: 60px 0 40px;
    font-family: 'Aeonik', sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Aeonik', sans-serif;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-widget ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 60px 0;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-middle-section h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.app-btn svg {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.planet-icons {
    display: flex;
    gap: 30px;
}

.planet-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.planet-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    opacity: 0.8;
}

.footer-legal {
    max-width: 70%;
}

.copyright {
    font-weight: 700;
    margin-bottom: 8px;
}

.trademark {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.legal-menu li a {
    color: #fff;
    text-decoration: none;
}

.language-selector select {
    background: #fff;
    color: #111;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-middle {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-legal {
        max-width: 100%;
    }
}

/* Auth Form Shortcode Styles */
.alltrails-auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
    min-height: 400px;
    font-family: 'Aeonik', sans-serif;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    text-align: center;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    margin-top: 10px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-bottom: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.alltrails-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-label-group {
    position: relative;
    margin-bottom: 20px;
}

.floating-label-group input {
    width: 100%;
    padding: 20px 20px 10px;
    /* More top padding to make room for label */
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.floating-label-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

/* Float the label on focus or when input is not empty */
.floating-label-group input:focus+label,
.floating-label-group input:not(:placeholder-shown)+label {
    top: 10px;
    left: 20px;
    font-size: 12px;
    color: #141f15;
    transform: translateY(0);
}

.floating-label-group input:focus {
    border-color: #141f15;
    outline: none;
}

.auth-submit-btn {
    background: #141f15;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.auth-submit-btn:hover {
    background: #000;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
    color: #444;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-footer-text {
    margin-top: 30px;
    font-size: 15px;
    color: #111;
}

.auth-footer-text a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 24px;
    }
}