* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --text-primary: #212121;
    --text-secondary: #757575;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #000000;
    /* Black text */
    line-height: 1.6;
    background-color: #ffffff;
    /* White background */
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

/* Container 
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*justify-content: center;*/
/* Vertical Center 
    align-items: center;
    /* Horizontal Center only 
} */

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Glass Card - Flat 2D */
.glass-card {
    background: rgba(255, 255, 255, 1);
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    /* Subtle rounding */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
}

/* Hover depth (2D only) */
.glass-card:hover {
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(0, 0, 0, 0.23);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000000;
    /* Black text */
    margin-bottom: 0.25rem;
}

.tagline {
    display: block;
    /* Restore tagline */
    font-size: 1rem;
    color: #000000;
    /* Black text */
    font-weight: 400;
}

/* Main - Center horizontally */
main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* CENTRAGE VERTICAL */
    align-items: center;
    /* CENTRAGE HORIZONTAL */
    width: 100%;
}


/* Search Container */
.search-container {
    padding: 0;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 600px;
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
#searchForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    pointer-events: none;
    transition: color 0.3s;
    width: 22px;
    height: 22px;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1.1rem;
    background: white;
    border: 2px solid #dfe1e5;
    border-radius: 50px;
    /* Pill shape */
    color: #202124;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#searchInput:hover {
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.15);
    border-color: #c0c0c0;
}

#searchInput:focus {
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1), 0 2px 12px rgba(32, 33, 36, 0.2);
    /* Glow effect */
    border-color: var(--primary-color);
}

#searchInput:focus+.input-icon {
    color: var(--primary-color);
}

#searchBtn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 10px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hide spinner by default, show on load */
.btn-loader {
    display: none;
}

#searchBtn:hover:not(:disabled) {
    background: #333333;
    /* Dark gray on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}

/* Results */
.results {
    margin-top: 2rem;
    padding: 0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #202124;
}

.result-item {
    background: #f8f9fa;
    /* Slight contrast for items */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #dadce0;
}

.result-item strong {
    color: #5f6368;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.2rem;
}

.result-item span {
    color: #202124;
    font-size: 1rem;
}

/* Footer - Minimal */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

footer p {
    color: #000000;
    /* Black text */
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-links a {
    color: #000000;
    /* Black text */
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #757575;
    text-decoration: underline;
}

/* Utils */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
        /* Space for fixed footer */
    }

    .logo h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    header {
        margin-bottom: 2rem;
    }

    .container {
        padding: 1rem;
        max-width: 90%;
    }

    #searchInput {
        font-size: 1rem;
        padding: 0.9rem 1.2rem 0.9rem 3rem;
    }

    .input-icon {
        left: 1rem;
        width: 20px;
        height: 20px;
    }

    #searchBtn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        min-width: 140px;
    }

    footer {
        padding: 1rem 0;
        font-size: 0.85rem;
    }

    footer p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* Mobile landscape and small tablets (600px) */
@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.85rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

    #searchInput {
        font-size: 0.975rem;
        padding: 0.875rem 1.1rem 0.875rem 2.875rem;
    }

    #searchBtn {
        font-size: 0.975rem;
        padding: 0.875rem 1.375rem;
    }
}

/* Mobile portrait (480px) */
@media (max-width: 480px) {
    body {
        padding-bottom: 120px;
        /* More space for footer on small screens */
    }

    .logo h1 {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
    }

    .tagline {
        font-size: 0.825rem;
        padding: 0 0.5rem;
    }

    header {
        margin-bottom: 1.5rem;
    }

    .container {
        max-width: 95%;
    }

    #searchInput {
        font-size: 0.95rem;
        padding: 0.85rem 1rem 0.85rem 2.75rem;
        border-width: 1.5px;
    }

    .input-icon {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }

    #searchBtn {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
        min-width: 130px;
    }

    footer {
        padding: 0.875rem 0.5rem;
    }

    footer p {
        font-size: 0.75rem;
    }

    .footer-links a {
        margin: 0 0.25rem;
        font-size: 0.75rem;
    }
}

/* Very small screens (360px) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    #searchInput {
        font-size: 0.9rem;
        padding: 0.8rem 0.875rem 0.8rem 2.5rem;
    }

    .input-icon {
        left: 0.75rem;
        width: 16px;
        height: 16px;
    }

    #searchBtn {
        font-size: 0.9rem;
        padding: 0.8rem 1.125rem;
        min-width: 120px;
    }

    footer p {
        font-size: 0.7rem;
    }
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');