/* 10s CopyGen - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050507;
    --bg-secondary: #0a0a0f;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #050507 0%, #0a0a0f 50%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Home Page */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    text-align: center;
    padding: 40px 20px;
}

.home-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-icon {
    font-size: 4rem;
    margin: 30px 0;
    animation: pulse 2s infinite;
}

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

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.free-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.header .sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Section */
.section {
    margin-bottom: 30px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

/* Text Area */
.text-area {
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-area:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
}

.text-area::placeholder {
    color: #505050;
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
}

.type-card.selected {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
}

.type-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.type-title {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

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

/* Processing Page */
.processing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.processing-content h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.processing-content .sub {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.3s ease;
}

.status-text {
    color: #c0c0c0;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Result */
.result-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.result-container pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions .btn {
    flex: 1;
}

/* Brand Footer */
.brand-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 30px;
}

.brand-text {
    color: #404040;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.8rem;
    }
    
    .type-grid {
        grid-template-columns: 1fr 1fr;
    }
}
