:root {
    --primary-color: #3e74a0;
    --primary-color-dark: #2d5a7a;
    --bg-color: #ffffff;
    --text-color: #333;
    --result-bg: #fff;
    --border-color: #eaeaea;
    --secondary-text: #70757a;
    --description-text: #4d5156;
    --amazon-button-bg: #2B3440;
    --amazon-button-bg-hover: #1a2028;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Common styles */
.logo-img {
    width: 150px;
}

.search-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.search-form {
    width: 100%;
    max-width: 584px;
}

.search-input-group {
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #dfe1e5;
    box-shadow: none;
    padding-left: 20px;
    padding-right: 45px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(62, 116, 160, 0.2);
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: white;
    z-index: 10;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.search-button .search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-button .loading-icon {
    display: none;
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.nav-links {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 14px;
}

.nav-links a {
    color: var(--primary-color);
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color-dark);
}

/* Result card styles */
.result-card {
    background-color: var(--result-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.result-title {
    color: var(--primary-color);
}

.result-url {
    color: var(--secondary-text);
}

.result-description {
    color: var(--description-text);
}

.result-metadata {
    color: var(--secondary-text);
}

/* Footer styles */
.footer {
    background-color: #f5f5f5;
    padding: 20px 0 25px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-links .copyright {
    color: var(--text-color);
    font-size: 12px;
    padding: 4px 8px;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.footer-links .links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links .links a {
    color: var(--text-color);
    text-decoration: underline;
    font-size: 12px;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .logo-img {
        width: 100px;
    }

    .nav-links a {
        margin-left: 6px;
    }

    .footer {
        padding: 15px 0 20px 0;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }

    .footer-links .copyright {
        position: relative;
        left: auto;
        margin: 0;
        font-size: 11px;
        padding: 3px 6px;
    }

    .footer-links .links {
        display: inline-flex;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links .links a {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 12px 0 18px 0;
    }

    .footer-links .links {
        gap: 0px;
    }
}