/* AI Tools Pages Stylesheet */

/* General AI Tools Page Styling */
.ai-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.ai-tools-header h1 {
    color: #ff6b35;
    margin-bottom: 15px;
}

.ai-tools-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form styling for AI tools */
.ai-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.ai-form-group {
    margin-bottom: 20px;
}

.ai-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff6b35;
    font-size: 0.95rem;
}

.ai-form-group input,
.ai-form-group select,
.ai-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.ai-form-group input:focus,
.ai-form-group select:focus,
.ai-form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* Button styling */
.ai-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e67a32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.ai-btn.secondary {
    background: linear-gradient(135deg, #666, #888);
}

.ai-btn.secondary:hover {
    background: linear-gradient(135deg, #555, #777);
}

/* Results container */
.ai-results-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.ai-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.ai-results-content {
    line-height: 1.6;
}

/* Loading spinner */
.ai-loading {
    text-align: center;
    padding: 40px;
    color: #ff6b35;
}

.ai-loading-spinner {
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Error display */
.ai-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #dc3545;
}

/* Success display */
.ai-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-tools-container {
        padding: 15px;
    }

    .ai-form-container,
    .ai-results-container {
        padding: 20px;
    }

    .ai-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .ai-form-group input,
[data-theme="dark"] .ai-form-group select,
[data-theme="dark"] .ai-form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

[data-theme="light"] .ai-form-group input,
[data-theme="light"] .ai-form-group select,
[data-theme="light"] .ai-form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.ai-result-stack {
    display: grid;
    gap: 14px;
}

.ai-card {
    background: #1a1a1a;
    padding: 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.ai-card h1 {
    margin: 0 0 12px 0;
    color: #ff6b35;
}

.ai-card ul,
.ai-card ol {
    padding-left: 28px;
}

.ai-card li {
    margin: 6px 0;
}

/* Enhanced AI Tools Grid for List Pages */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.ai-tool-card {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-left: 4px solid #ff6b35;
    border-radius: 12px;
    padding: 24px;
    transition: all .3s ease;
}

.ai-tool-card:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.ai-tool-card h2 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: #ff6b35;
}

.ai-tool-card h2 a {
    text-decoration: none;
    color: #ff6b35;
    transition: color .3s ease;
}

.ai-tool-card h2 a:hover {
    color: #ff8c42;
}

.ai-tool-card p {
    margin: 12px 0;
    line-height: 1.6;
    opacity: 0.9;
}

.ai-tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.ai-tool-meta .tag {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: #ff6b35;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    transition: all .3s ease;
}

.ai-tool-meta .tag:hover {
    background: rgba(255, 107, 53, 0.25);
    color: #ff8c42;
}