@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0b;
    --card-bg: rgba(26, 26, 27, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --accent-primary: #FF4500; /* Reddit Orange */
    --accent-secondary: #0079D3; /* Reddit Blue */
    --accent-hover: #ff5c26;
    --input-bg: #1A1A1B;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 69, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 121, 211, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.search-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

input {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

button:active {
    transform: scale(0.96);
}

#result-area {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#result-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.option-chip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.option-chip.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 69, 0, 0.1);
}

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

.search-history {
    margin-top: 2rem;
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.history-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-item {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 69, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.btn-primary {
    animation: pulse 3s infinite;
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    .search-card { padding: 1.5rem; }
    .button-group { grid-template-columns: 1fr; }
}

