@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Base — azul naval */
    --primary:         #1E2A44;
    --primary-light:   #2E3F66;
    --primary-lighter: #3D547F;
    --primary-dark:    #131B2C;
    --primary-darker:  #0A0F1A;

    /* Acento complementar (dourado acobreado) */
    --accent:          #C4933F;
    --accent-light:    #E8C97A;
    --accent-pale:     #F3EAD3;

    /* Texto */
    --text-light:      #ffffff;
    --text-muted:      rgba(255,255,255,0.65);

    /* Aliases de compatibilidade */
    --primary-gold: var(--accent);
    --accent-gold:  var(--accent-pale);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background: url("./imgs/hanoverian-horse-ss230414.jpg");
    background-position: -80%;
    background-repeat: no-repeat;
    background-color: var(--primary-darker);
    overflow: hidden;
}

section.hero {
    background: linear-gradient(90deg, rgba(0,0,0,0), rgb(10, 15, 26), rgb(10, 15, 26));
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text-light);
    padding: 2rem;
}

.hero-content {
    max-width: 600px;
    width: 100%;
    padding-right: 5%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    font-family: "Righteous", sans-serif;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 42, 68, 0.45);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(196, 147, 63, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(10, 15, 26, 0.3);
}

.search-box:hover {
    background: rgba(30, 42, 68, 0.6);
    border-color: rgba(196, 147, 63, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(10, 15, 26, 0.4);
}

.search-box:focus-within {
    background: rgba(30, 42, 68, 0.7);
    border-color: rgba(196, 147, 63, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 147, 63, 0.2);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--accent);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.75rem 0;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: rgba(196, 147, 63, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.search-btn:hover {
    background: rgba(196, 147, 63, 0.4);
    transform: scale(1.1);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn i {
    color: var(--accent-light);
    width: 20px;
    height: 20px;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 240px;
    background: #fefefe;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 147, 63, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 15, 26, 0.5);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.autocomplete-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocomplete-section {
    padding: 0.75rem 0;
}

.autocomplete-section:not(:last-child) {
    border-bottom: 1px solid rgba(196, 147, 63, 0.1);
}

.autocomplete-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.5rem 1.5rem 0.25rem;
    letter-spacing: 0.5px;
}

.autocomplete-item {
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary-darker);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(196, 147, 63, 0.1);
    padding-left: 2rem;
    color: var(--accent);
}

.autocomplete-item i {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    color: var(--accent);
}

.no-results {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.quick-link-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.quick-link {
    background: rgba(30, 42, 68, 0.4);
    border: 1px solid rgba(196, 147, 63, 0.25);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quick-link:hover {
    background: rgba(196, 147, 63, 0.2);
    border-color: rgba(196, 147, 63, 0.5);
    transform: translateY(-2px);
}

.quick-link:active {
    transform: translateY(0);
}

/* Scrollbar */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(196, 147, 63, 0.3);
    border-radius: 20px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 147, 63, 0.5);
}

@media (max-width: 1228px) {
    section.hero {
        width: 100%;
        display: flex;
        justify-content: center;
        background-color: var(--primary-darker);
        align-items: center;
    }

    section.hero .hero-content {
        background-color: var(--primary-darker);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-right: 0;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    #searchInput {
        font-size: 1rem;
    }

    .quick-links {
        font-size: 0.85rem;
    }

    .quick-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-box {
        padding: 0.4rem 0.75rem;
    }

    #searchInput {
        font-size: 0.95rem;
    }

    .quick-link-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}