* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.search-container {
    text-align: center;
    margin: 4rem 0;
}

h1 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

input[type="text"] {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

button {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    color: #1a73e8;
    transition: color 0.3s ease;
}

button:hover {
    color: #1557b0;
}

.results-container {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ad-container {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.answer {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
}

.sources {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.sources h4 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sources a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.sources a:hover {
    text-decoration: underline;
}

.sources p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.general-summary {
    background-color: #e8f0fe;
    border-radius: 12px;
    border: 1px solid #c6dafc;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.general-summary h2 {
    color: #1a73e8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.general-summary p {
    color: #202124;
    line-height: 1.6;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* Custom styles for the microphone button animation */
.microphone-button.listening {
    animation: pulse 1s infinite alternate;
    background-color: #ef4444;
}

@keyframes pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Spinner animation */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4f46e5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Result card styles */
.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    color: #1a73e8;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.result-card p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.result-card .source-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.75rem;
}

.result-card .source-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }
    
    input[type="text"] {
        width: 100%;
    }
    
    button {
        width: 100%;
    }
} 