:root {
    --bg-color: #202124;
    --text-color: #e8eaed;
    --border-color: #5f6368;
    --box-bg: #303134;
    --hover-bg: #3c4043;
    --blue: #4285f4;
    --red: #ea4335;
    --yellow: #fbbc05;
    --green: #34a853;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: center;
    padding-top: 15vh;
    margin-bottom: 30px;
}

.logo {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.color-blue { color: var(--blue); }
.color-red { color: var(--red); }
.color-yellow { color: var(--yellow); }
.color-green { color: var(--green); }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.search-box:hover, .search-box:focus-within {
    background-color: var(--hover-bg);
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: transparent;
}

.search-icon {
    fill: #9aa0a6;
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    outline: none;
}

.mic-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.mic-icon:hover {
    transform: scale(1.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    background-color: var(--box-bg);
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-dangerous {
    background-color: var(--red);
    color: white;
}

.btn-dangerous:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.btn-safe {
    background-color: var(--blue);
    color: white;
}

.btn-safe:hover {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.results-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--box-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease forwards;
}

.hidden {
    display: none !important;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result {
    text-align: center;
    padding: 20px 0;
}

#result-text {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 10px;
}

.sub-text {
    color: #9aa0a6;
    font-size: 0.85rem;
}

footer {
    background-color: #171717;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
