
/* Website Builder Styles */
.wwc-builder {
    max-width: 1000px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wwc-builder-container {
    padding: 2rem;
}

/* Progress Bar */
.wwc-progress-bar {
    margin-bottom: 3rem;
    position: relative;
}

.wwc-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.wwc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.wwc-step.active .step-number {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.wwc-step.completed .step-number {
    background: #27ae60;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.wwc-step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

.wwc-progress-line {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
}

.wwc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #27ae60);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Step Content */
.wwc-step-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.wwc-step-content.active {
    display: block;
}

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

.wwc-step-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.wwc-step-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Forms */
.wwc-step-form {
    max-width: 600px;
    margin: 0 auto;
}

.wwc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.wwc-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.wwc-form-group input,
.wwc-form-group select,
.wwc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.wwc-form-group input:focus,
.wwc-form-group select:focus,
.wwc-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wwc-form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.wwc-form-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

/* Pages Builder */
.wwc-pages-builder {
    max-width: 800px;
    margin: 0 auto;
}

.wwc-pages-controls {
    margin-bottom: 2rem;
    text-align: center;
}

.wwc-pages-container {
    space-y: 1rem;
}

.wwc-page-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.wwc-page-item:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wwc-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-drag-handle {
    cursor: move;
    color: #6c757d;
    font-size: 1.2rem;
}

.page-name-input {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.wwc-page-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.content-editor {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
}

.editor-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.page-content-input {
    border: none;
    resize: vertical;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
}

/* Templates */
.wwc-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.wwc-template-card {
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.wwc-template-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wwc-template-card.active {
    border-color: #3498db;
    background: #f8f9ff;
}

.template-preview {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.template-header {
    height: 20px;
    background: #e9ecef;
    margin-bottom: 5px;
}

.template-hero {
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin-bottom: 5px;
}

.template-hero.creative {
    background: linear-gradient(135deg, #8e44ad, #e74c3c);
}

.template-hero.minimal {
    background: #34495e;
}

.template-sections {
    display: flex;
    gap: 3px;
}

.template-sections::before,
.template-sections::after {
    content: "";
    flex: 1;
    height: 30px;
    background: #e9ecef;
}

.wwc-generate-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.wwc-generate-section h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.wwc-generate-section p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Buttons */
.wwc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.wwc-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.wwc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.wwc-btn-secondary {
    background: #6c757d;
    color: white;
}

.wwc-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.wwc-btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.wwc-btn-outline:hover {
    background: #3498db;
    color: white;
}

.wwc-btn-danger {
    background: #e74c3c;
    color: white;
}

.wwc-btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.wwc-btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Navigation */
.wwc-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Modals */
.wwc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwc-modal-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

.wwc-loading-animation h3 {
    margin: 1rem 0;
    color: #2c3e50;
}

.wwc-loading-animation p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.wwc-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.wwc-progress-text {
    font-weight: 600;
    color: #3498db;
}

.wwc-success-content .success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.wwc-success-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.wwc-success-content p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.wwc-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.wwc-website-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.wwc-website-info h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

/* Notifications */
.wwc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.wwc-notification.show {
    transform: translateX(0);
}

.wwc-notification-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.wwc-notification-info {
    border-left: 4px solid #3498db;
    color: #3498db;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wwc-builder-container {
        padding: 1rem;
    }
    
    .wwc-form-grid {
        grid-template-columns: 1fr;
    }
    
    .wwc-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .wwc-step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wwc-result-actions {
        flex-direction: column;
    }
    
    .wwc-modal-content {
        padding: 2rem 1rem;
    }
    
    .wwc-progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
}
