/**
 * AICT API Tools - Styles
 * Modern, responsive styles for functional AI tools and waitlist forms
 *
 * @since 1.5.0
 */

/* Tool Container */
.aict-tool-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.aict-tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.aict-tool-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.aict-tool-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Tool Form */
.aict-tool-form {
    padding: 40px 30px;
}

.aict-form-group {
    margin-bottom: 25px;
}

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

.aict-form-group input[type="text"],
.aict-form-group input[type="email"],
.aict-form-group input[type="number"],
.aict-form-group textarea,
.aict-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.aict-form-group input:focus,
.aict-form-group textarea:focus,
.aict-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.aict-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.aict-form-group small {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 0.875rem;
}

.aict-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .aict-form-row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.aict-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.aict-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.aict-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.aict-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aict-btn-copy {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}

.aict-btn-copy:hover {
    background: #218838;
}

/* Tool Result */
.aict-tool-result {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

.aict-tool-result h3 {
    margin: 0 0 20px 0;
    color: #667eea;
    font-size: 1.4rem;
}

.aict-result-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-item {
    padding: 12px;
    margin: 10px 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.rewritten-content,
.social-post,
.meta-description,
.blog-post {
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.hashtags-section {
    margin-top: 15px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 6px;
}

/* Stats */
.aict-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.aict-stats span {
    font-size: 0.9rem;
    color: #666;
}

.aict-stats strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* Error Message */
.aict-error {
    padding: 15px;
    background: #fee;
    border-left: 4px solid #f44;
    color: #c33;
    border-radius: 6px;
}

/* Waitlist Container */
.aict-waitlist-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.aict-waitlist-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
}

.aict-waitlist-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.aict-waitlist-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.aict-waitlist-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.aict-waitlist-content {
    padding: 40px 30px;
}

.aict-status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.aict-waitlist-features {
    margin-bottom: 30px;
}

.aict-waitlist-features h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.aict-waitlist-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aict-waitlist-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
}

.aict-waitlist-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.aict-waitlist-form {
    margin-top: 30px;
}

.aict-waitlist-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #155724;
}

.aict-waitlist-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

.aict-waitlist-success p {
    color: #666;
    line-height: 1.6;
}

.aict-waitlist-footer {
    text-align: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #666;
    font-size: 0.95rem;
}

.aict-waitlist-footer strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .aict-tool-container,
    .aict-waitlist-container {
        margin: 20px 10px;
        border-radius: 8px;
    }

    .aict-tool-header,
    .aict-waitlist-header {
        padding: 30px 20px;
    }

    .aict-tool-form,
    .aict-waitlist-content {
        padding: 30px 20px;
    }

    .aict-tool-header h2,
    .aict-waitlist-header h2 {
        font-size: 1.5rem;
    }
}
