/* SaaS AI Generator - WordPress Plugin Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Plan Cards */
.plan-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e8ed;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border: 3px solid #0073aa;
    background: linear-gradient(135deg, #f7fcfe 0%, #e1f5fe 100%);
    transform: scale(1.05);
}

.plan-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.plan-card .price {
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px 0;
    color: #0073aa;
}

.plan-card .price .currency {
    font-size: 0.4em;
    vertical-align: top;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 30px;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
    font-size: 1.2em;
}

.feature-list li.disabled {
    color: #999;
    text-decoration: line-through;
}

.feature-list li.disabled:before {
    content: '✗';
    color: #dc3545;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e1e8ed;
}

.dashboard-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.dashboard-card .stat {
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Generator Form */
.generator-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.generator-form h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2em;
    }
    
    .hero-section p {
        font-size: 1.1em;
    }
    
    .plan-card {
        margin-bottom: 20px;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .generator-form {
        padding: 20px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dashboard-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-card h3 {
        font-size: 1.5em;
    }
    
    .plan-card .price {
        font-size: 2em;
    }
}

/* Admin Styles */
.wp-admin .saas-ai-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wp-admin .saas-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wp-admin .dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.wp-admin .dashboard-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.wp-admin .dashboard-card p {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
}

/* Print Styles */
@media print {
    .hero-section {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .plan-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .btn {
        display: none;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .plan-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .generator-form,
    .plan-card,
    .dashboard-card {
        background: #2c2c2c;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .form-control {
        background: #3c3c3c;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .form-control:focus {
        border-color: #0073aa;
    }
}