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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.about-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.about-box h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.about-box p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
}

.about-box p:last-of-type {
    margin-bottom: 0;
}

.about-box .philosophy {
    color: #667eea;
    font-size: 1rem;
    margin-top: 1rem;
}

.how-it-works {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.how-it-works h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #a0a0a0;
    margin-bottom: 0.75rem;
}

.how-it-works p {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.how-it-works p:last-child {
    margin-bottom: 0;
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-section label,
.lens-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

textarea::placeholder {
    color: #707070;
}

.lens-section {
    margin-bottom: 1.5rem;
}

.perspective-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.perspective-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e0e0e0;
    text-align: center;
}

.lens-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .lens-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lens-buttons .lens-btn:last-child {
        grid-column: span 2;
    }
}

.lens-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lens-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.lens-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lens-btn[data-lens="libertarian"].selected {
    border-color: #f4c430;
    background: rgba(244, 196, 48, 0.15);
}

.lens-btn[data-lens="maga"].selected {
    border-color: #e63946;
    background: rgba(230, 57, 70, 0.15);
}

.lens-btn[data-lens="progressive"].selected {
    border-color: #9b5de5;
    background: rgba(155, 93, 229, 0.15);
}

.lens-btn[data-lens="centerleft"].selected {
    border-color: #4895ef;
    background: rgba(72, 149, 239, 0.15);
}

.lens-btn[data-lens="marxist"].selected {
    border-color: #9d0208;
    background: rgba(157, 2, 8, 0.15);
}

.lens-icon {
    font-size: 1.5rem;
}

.lens-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.response-section {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.response-section[data-lens="libertarian"] .response-header {
    background: rgba(244, 196, 48, 0.1);
}

.response-section[data-lens="maga"] .response-header {
    background: rgba(230, 57, 70, 0.1);
}

.response-section[data-lens="progressive"] .response-header {
    background: rgba(155, 93, 229, 0.1);
}

.response-section[data-lens="centerleft"] .response-header {
    background: rgba(72, 149, 239, 0.1);
}

.response-section[data-lens="marxist"] .response-header {
    background: rgba(157, 2, 8, 0.1);
}

.response-section[data-lens="neutral"] .response-header {
    background: rgba(102, 126, 234, 0.1);
}

.response-lens-icon {
    font-size: 1.5rem;
}

.response-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
}

.perspective-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.response-content {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.disclaimer {
    padding: 1rem 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    font-size: 0.85rem;
    color: #a0a0a0;
}

.loading {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #a0a0a0;
}

.error {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 8px;
    color: #e63946;
    text-align: center;
}

.hidden {
    display: none;
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: #707070;
    font-size: 0.85rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

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