/* AI UI Demo Maker - Shared Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e5e7eb 75%, #f9fafb 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.start-building-btn {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.start-building-btn:hover {
    transform: translateY(-2px);
}

.start-building-btn .mobile-text {
    display: none;
}

.start-building-btn .desktop-text {
    display: inline;
}

/* Container and layout */
.container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 120px auto 40px auto;
    max-width: 800px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
}

/* Progress indicator */
.progress {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #333;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.3);
}

.step.completed {
    background: #333;
    color: white;
}

.step.inactive {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Form elements */
.form-group {
    margin: 25px 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #a8e6cf;
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.1);
}

/* Buttons */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #333;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 230, 207, 0.4);
}

.btn-primary:disabled {
    background: #94a3b8;
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-premium:disabled {
    background: #94a3b8;
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.button-group.single-button {
    justify-content: center;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border-left: 4px solid #a8e6cf;
}

.privacy-note {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    font-size: 14px;
}

.privacy-note strong {
    color: #166534;
}

.privacy-note ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.privacy-note li {
    margin: 8px 0;
    color: #166534;
}

/* Summary and benefits */
.summary-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border-left: 4px solid #a8e6cf;
}

.summary-item {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.summary-value {
    color: #64748b;
    word-break: break-word;
}

.benefits {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
}

.benefit-item {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    margin-right: 15px;
    font-size: 20px;
    min-width: 24px;
}

/* Premium option */
.premium-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid #5a6fd8;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.premium-option h3 {
    margin-top: 0;
    color: white;
    font-size: 1.5rem;
}

.premium-option p {
    color: #e8e8e8;
    margin-bottom: 20px;
}

.price-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    display: block;
}

.price-description {
    font-size: 14px;
    color: #e8e8e8;
    margin-top: 8px;
}

/* Success state */
.success-state {
    text-align: center;
    margin: 40px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.next-steps {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: flex;
    }
    
    .start-building-btn .desktop-text {
        display: none;
    }
    
    .start-building-btn .mobile-text {
        display: inline;
    }
    
    .container {
        margin: 100px 20px 20px 20px;
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .step {
        width: 32px;
        height: 32px;
        margin: 0 10px;
        font-size: 14px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-group button {
        width: 100%;
    }
    
    input[type="email"],
    input[type="text"],
    textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
} 