.ags-search {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ags-search-inner {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.ags-search-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.4;
}

.ags-input-group {
    margin-bottom: 20px;
}

.ags-input-label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ags-search-wrapper {
    position: relative;
}

.ags-input-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.ags-input-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ags-search-input.has-dropdown {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ags-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
}

.ags-dropdown.open {
    display: block;
}

.ags-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.ags-dropdown-item:last-of-type {
    border-bottom: none;
}

.ags-dropdown-item:hover,
.ags-dropdown-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #4a3fa0;
}

.ags-dropdown-item mark {
    background: none;
    color: #667eea;
    font-weight: 700;
}

.ags-dropdown-more {
    padding: 8px 15px;
    font-size: 13px;
    color: #999;
    font-style: italic;
    border-top: 1px solid #f0f0f0;
}

.ags-result-card {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    display: none;
    animation: agsFadeIn 0.4s ease;
}

.ags-result-card.show {
    display: block;
}

@keyframes agsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ags-result-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

.ags-result-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 14px;
    line-height: 1.4;
}

.ags-result-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ags-meta-item strong {
    color: #444;
}

.ags-info-text {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

.ags-attribution {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    text-align: center;
}

.ags-attribution a {
    color: #667eea;
    text-decoration: none;
}

.ags-attribution a:hover {
    text-decoration: underline;
}
