/* Bio Generator Main Styles */
.bio-generator-container {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bio-generator-header {
    text-align: center;
    margin-bottom: 40px;
}

.bio-generator-header h2 {
    color: #2d3748;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio-generator-header .subtitle {
    color: #718096;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Tabs */
.bio-generator-tabs {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #4a5568;
    background: #edf2f7;
}

.tab-button.active {
    background: #ffffff;
    color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
    border: 1px solid #bee3f8;
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 15px;
}

/* Forms */
.bio-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.bio-form.active {
    display: block;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3:before {
    content: '';
    width: 4px;
    height: 18px;
    background: #4299e1;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.multi-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.multi-input input {
    width: 100%;
}

/* Required field indicator */
.form-group input:required,
.form-group textarea:required {
    border-left: 3px solid #4299e1;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.generate-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.generate-button:active {
    transform: translateY(-1px);
}

.button-icon {
    font-size: 20px;
}

.button-text {
    font-size: 16px;
}

/* Loading Indicator */
.bio-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.loading-text {
    color: #718096;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Result Template Styles */
.bio-result-wrapper {
    animation: slideIn 0.5s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f6f9fc 0%, #f0f4f8 100%);
    border-radius: 12px;
}

.result-header h2 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.result-icon {
    font-size: 32px;
}

.result-subtitle {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

.bio-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 5px;
}

.stat-label {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* Bio Output */
.bio-output-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    overflow: hidden;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.output-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.copy-bio-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-bio-btn:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.copy-icon {
    font-size: 16px;
}

.bio-output {
    padding: 25px;
}

.bio-output pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.formatted-view {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    background: #fafcff;
}

.formatted-view h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
}

.formatted-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #4299e1;
    color: white;
}

.download-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 153, 225, 0.3);
}

.regenerate-btn {
    background: #9f7aea;
    color: white;
}

.regenerate-btn:hover {
    background: #805ad5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(159, 122, 234, 0.3);
}

.back-btn {
    background: #a0aec0;
    color: white;
}

.back-btn:hover {
    background: #718096;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(160, 174, 192, 0.3);
}

.btn-icon {
    font-size: 18px;
}

/* Platform Suggestions */
.platform-suggestions {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.platform-suggestions h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.platform-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-tag {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-tag.instagram {
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.platform-tag.linkedin {
    background: #0077B5;
    color: white;
}

.platform-tag.twitter {
    background: #1DA1F2;
    color: white;
}

.platform-tag.facebook {
    background: #1877F2;
    color: white;
}

.platform-tag.website {
    background: #2d3748;
    color: white;
}

.platform-tag.google {
    background: #4285F4;
    color: white;
}

/* Usage Tips */
.usage-tips {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5eb 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tip-icon {
    font-size: 24px;
    color: #dd6b20;
}

.tip-header h4 {
    margin: 0;
    color: #dd6b20;
    font-size: 16px;
    font-weight: 600;
}

.tip-list {
    margin: 0;
    padding-left: 20px;
}

.tip-list li {
    margin-bottom: 10px;
    color: #7b341e;
    line-height: 1.6;
}

.tip-list li:last-child {
    margin-bottom: 0;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #38a169;
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.success-message .msg-icon {
    font-size: 20px;
}

.success-message .msg-text {
    font-size: 14px;
    font-weight: 500;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bio-generator-container {
        padding: 25px;
        margin: 20px;
    }
    
    .bio-generator-header h2 {
        font-size: 26px;
    }
    
    .tab-button {
        padding: 15px;
        font-size: 14px;
    }
    
    .tab-text {
        font-size: 14px;
    }
    
    .bio-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .platform-tags {
        justify-content: center;
    }
    
    .output-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .multi-input {
        grid-template-columns: 1fr;
    }
}