:root {
    --primary: #2A2F4F;
    --secondary: #917FB3;
    --accent: #E5BEEC;
    --background: #FDE2F3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--background);
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
}

h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#textInput {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-card {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 200px;
}

.metric-title {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.keyword-list {
    list-style: none;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 5px;
}

.trend-chart {
    height: 200px;
    background: var(--background);
    border-radius: 8px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
    }
}