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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-geist-mono {
    font-family: SFMono-Regular, ui-monospace, 'SF Mono', Menlo, Consolas, Monaco, monospace;
    letter-spacing: -0.03em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.analyzer-logo {
    animation: pulse 3s infinite ease-in-out;
}

#result-section {
    animation: fadeIn 0.5s ease-out, slideUp 0.5s ease-out;
}

/* Rating bars */
.rating-bar {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
    overflow: hidden;
    margin-bottom: 12px;
}

.rating-fill {
    height: 100%;
    border-radius: 4px;
    background-color: var(--black);
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Word cloud effect */
.word-cloud {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 4px 10px;
    background-color: var(--gray-100);
    border-radius: 16px;
    font-size: 14px;
}

.word-cloud-prominence-1 { font-size: 12px; opacity: 0.7; }
.word-cloud-prominence-2 { font-size: 13px; opacity: 0.8; }
.word-cloud-prominence-3 { font-size: 14px; opacity: 0.9; }
.word-cloud-prominence-4 { font-size: 15px; font-weight: 500; }
.word-cloud-prominence-5 { font-size: 16px; font-weight: 600; }

/* Media queries */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
