/* Content Wizard Styles */
.cw-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

.cw-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

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

.cw-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cw-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Content Type Grid */
.cw-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cw-type-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.cw-type-card:hover {
    border-color: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.cw-type-card.selected {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.cw-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cw-type-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.cw-type-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.cw-type-words {
    font-size: 0.8rem;
    color: #14b8a6;
    font-weight: 500;
}

/* Form Styles */
.cw-form-section {
    display: none;
    margin-top: 2rem;
}

.cw-form-section.cw-active {
    display: block;
}

.cw-form-group {
    margin-bottom: 1.5rem;
}

.cw-form-group label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.cw-form-group input,
.cw-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.cw-form-group input:focus,
.cw-form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
}

.cw-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.cw-form-group input::placeholder,
.cw-form-group textarea::placeholder {
    color: #94a3b8;
}

/* Buttons */
.cw-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.cw-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cw-btn-primary {
    background: #14b8a6;
    color: white;
}

.cw-btn-primary:hover {
    background: #0d9488;
}

.cw-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.cw-btn-secondary {
    background: transparent;
    color: #64748b;
}

.cw-btn-secondary:hover {
    color: #334155;
}

.cw-btn-copy {
    background: #0ea5e9;
    color: white;
}

.cw-btn-copy:hover {
    background: #0284c7;
}

.cw-btn-copy.cw-copied {
    background: #22c55e;
}

/* Loading State */
.cw-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cw-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cw-spin 0.8s linear infinite;
}

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

/* Output Section */
.cw-output-section {
    display: none;
}

.cw-output-section.cw-active {
    display: block;
}

.cw-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cw-output-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.cw-output-actions {
    display: flex;
    gap: 0.75rem;
}

.cw-output-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

.cw-output-tip {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0fdfa;
    border-radius: 0.5rem;
    color: #0f766e;
}

.cw-output-tip strong {
    color: #0d9488;
}

/* Error Message */
.cw-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.cw-error-message.cw-show {
    display: block;
}

/* Selected Type Display */
.cw-selected-type-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0fdfa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.cw-selected-type-display .cw-type-icon {
    font-size: 1.75rem;
    margin: 0;
}

.cw-selected-type-info h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.125rem;
}

.cw-selected-type-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .cw-card {
        padding: 1.25rem;
    }

    .cw-header h2 {
        font-size: 1.5rem;
    }

    .cw-btn-row {
        flex-direction: column;
        gap: 1rem;
    }

    .cw-btn {
        width: 100%;
        text-align: center;
    }

    .cw-output-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cw-output-actions {
        width: 100%;
    }

    .cw-output-actions .cw-btn {
        flex: 1;
    }
    
    .cw-provider-selector {
        flex-direction: column;
    }
}

/* Provider Selector */
.cw-provider-selector {
    display: flex;
    gap: 1rem;
}

.cw-provider-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-provider-btn:hover {
    border-color: #14b8a6;
}

.cw-provider-btn.cw-selected {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.cw-provider-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
}

.cw-provider-model {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}
