/* Reset and Base Styles */
@font-face {
    font-family: 'Space Grotesk';
    src: url(/font/Space-Grotesk.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: 245 247 250;
    --foreground: 20 23 30;
    --card: 255 255 255;
    --card-foreground: 20 23 30;
    --primary: 14 165 233;
    --primary-foreground: 255 255 255;
    --secondary: 234 236 240;
    --secondary-foreground: 20 23 30;
    --muted: 234 236 240;
    --muted-foreground: 100 116 139;
    --border: 222 226 230;
    --input: 222 226 230;
    --radius: 0.75rem;
}

[data-theme="dark"] {
    --background: 14 17 22;
    --foreground: 230 230 230;
    --card: 26 29 36;
    --card-foreground: 230 230 230;
    --primary: 34 211 238;
    --primary-foreground: 14 17 22;
    --secondary: 42 47 58;
    --secondary-foreground: 230 230 230;
    --muted: 42 47 58;
    --muted-foreground: 156 163 175;
    --border: 42 47 58;
    --input: 42 47 58;
}

* {
    font-family: 'Space Grotesk' !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: rgb(var(--foreground));
    transition: background-color 0.2s ease;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgb(var(--muted));
}

.sun-icon,
.moon-icon {
    width: 1rem;
    height: 1rem;
    transition: all 0.3s ease;
    position: absolute;
}

[data-theme="dark"] .sun-icon {
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    transform: rotate(0deg) scale(1);
}

.sun-icon {
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    transform: rotate(90deg) scale(0);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin-top: -4rem;
}

.logo {
    margin-bottom: 3rem;
    text-align: center;
}

.logo h1 {
    font-size: 4rem;
    font-weight: 500;
    color: rgb(var(--primary));
    margin-bottom: 0.5rem;
}

.search-form {
    width: 100%;
    max-width: 36rem;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: rgb(var(--muted-foreground));
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid rgb(var(--border));
    border-radius: 9999px;
    background-color: rgb(var(--card));
    color: rgb(var(--card-foreground));
    outline: none;
    transition: all 0.2s ease;
}

.search-input:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: rgb(var(--primary));
}

.search-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.search-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
    border: 1px solid rgb(var(--border));
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: rgb(var(--muted));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 3rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }

    .search-icon {
        left: 0.75rem;
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 768px) {
    .search-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .search-form {
        max-width: 100%;
    }
}

