/* AI Generator Tools Shared Styles */

.ai-generator-tool-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ai-generator-container {
    width: 100%;
}

.ai-generator-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.ai-generator-section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.ai-generator-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.ai-generator-hero {
    padding: 60px 0;
    background: #7c3aed;
    color: white;
}

.ai-generator-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.ai-generator-subtitle {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.95;
}

.ai-generator-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 24px;
}

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

.ai-input,
.ai-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.ai-select {
    height: 48px;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.ai-input:focus,
.ai-select:focus {
    outline: none;
    border-color: #7c3aed;
}

.ai-input.error {
    border-color: #f44336;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-row.checkboxes {
    gap: 24px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ai-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid #c62828;
}

.ai-error.hidden {
    display: none;
}

.ai-generate-btn {
    width: 100%;
    padding: 16px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    position: relative;
}

.ai-generate-btn:hover {
    transform: translateY(-2px);
    background: #7c3aed;
    color: #e0e0e0;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.ai-generate-btn:active {
    transform: translateY(0);
}

.ai-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.remaining-display {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* Features Section */
.ai-features {
    padding: 80px 0;
    background: #f9fafb;
}

.ai-features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.ai-how-to {
    padding: 80px 0;
}

.ai-how-to h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-generator-tool-section {
        padding: 0 16px;
        margin: 20px auto;
    }

    .ai-generator-section-title {
        font-size: 24px;
    }

    .ai-generator-section-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .ai-generator-card {
        padding: 24px;
    }

    .ai-generator-hero {
        padding: 40px 0;
    }

    .ai-generator-title {
        font-size: 32px;
    }

    .ai-generator-subtitle {
        font-size: 18px;
    }

    .ai-generator-form {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row.checkboxes {
        flex-direction: row;
    }

    .ai-features h2,
    .ai-how-to h2 {
        font-size: 28px;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Slideshow Preview Styles (Instagram Slideshow Generator) */
.slideshow-preview-container {
    text-align: center;
}

.slideshow-preview-image {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.slideshow-cta-container {
    margin-top: 16px;
}

.slideshow-cta-container .ai-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 220px;
    padding: 16px 32px;
    text-decoration: none;
}

.slideshow-cta-container .ai-generate-btn .svg-icon-right {
    font-size: 14px;
}
