/* ===== iLGSearch Custom Styles ===== */

/* Index page hero logo (full artwork) */
.index-logo {
    margin: 6px auto 0;
    text-align: center;
}

.index-logo img {
    width: min(560px, 90vw);
    height: auto;
}

/* Logo in the header of preferences / stats / info pages */
.page_with_header .logo {
    height: auto;
    width: 220px;
}

/* Quick action buttons under search bar */
.quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 24px;
    background: var(--color-base, #fff);
    color: var(--color-font, #333);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: var(--color-header-background, #f0f0f0);
    border-color: var(--color-url, #4c7a9f);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feeling-lucky {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.feeling-lucky:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4192 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
}

.quick-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-base, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 1000;
    padding: 6px 0;
    margin-top: 6px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--color-font, #333);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--color-header-background, #f0f0f0);
    color: var(--color-url, #4c7a9f);
}

.theme-actions {
    display: inline-flex;
    gap: 4px;
}

.theme-btn {
    padding: 8px 10px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    min-width: 36px;
    justify-content: center;
}

.theme-btn:hover {
    transform: scale(1.15);
}

html.theme-dark .quick-btn,
html.theme-black .quick-btn {
    background: var(--color-base, #222);
    color: var(--color-font, #ccc);
    border-color: var(--color-border, #444);
}

html.theme-dark .dropdown-menu,
html.theme-black .dropdown-menu {
    background: var(--color-base, #222);
    border-color: var(--color-border, #444);
}

html.theme-dark .dropdown-item:hover,
html.theme-black .dropdown-item:hover {
    background: #333;
}

@media (max-width: 600px) {
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    .quick-btn {
        justify-content: center;
    }
    .quick-dropdown {
        width: 100%;
    }
    .dropdown-menu {
        left: 0;
        transform: none;
        width: 100%;
    }
    .theme-actions {
        justify-content: center;
    }
}