/* AI Tools Pages Master CSS - Optimized Version */
/* Based on CeeVee Global brand colors - Primary: #FF6B35, Secondary: #2E86AB */

/* Container and Layout */
.ai-tool__container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ai-tool__article {
    background: #fff;
    padding: 40px 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.ai-tool__title {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.ai-tool__subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

/* Two Column Grid */
.ai-tool__grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ai-tool__grid-section h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.ai-tool__grid-section ul, .ai-tool__grid-section ol {
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
}

.ai-tool__grid-section strong {
    color: #FF6B35;
}

/* Feature Highlight Section */
.ai-tool__feature-highlight {
    background: linear-gradient(135deg, #FF6B35 0%, #2E86AB 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.ai-tool__feature-highlight h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.ai-tool__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ai-tool__feature-item {
    text-align: center;
    color: #fff;
}

.ai-tool__feature-icon {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.ai-tool__feature-item h4 {
    color: #fff;
    margin: 0 0 10px 0;
}

.ai-tool__feature-item p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0;
}

/* Free Usage Banner */
.ai-tool__free-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin: 30px 0;
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

.ai-tool__free-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ai-tool__free-badge {
    background: rgba(255,255,255,0.9);
    color: #28a745;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ai-tool__free-features {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: 600;
}

.ai-tool__free-feature {
    font-size: 1rem;
}

.ai-tool__free-separator {
    opacity: 0.7;
    font-size: 1.2rem;
}

/* Tool Container - Enhanced */
.ai-tool__tool-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 40px 30px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    border: 2px solid #FF6B35;
    position: relative;
    overflow: hidden;
}

.ai-tool__tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #2E86AB, #FF6B35);
}

.ai-tool__tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.ai-tool__tool-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #FF6B35, #2E86AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-tool__tool-subtitle {
    color: #28a745;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Tool Interface */
.ai-tool__tool-interface {
    max-width: 700px;
    margin: 0 auto;
}

.ai-tool__input-section {
    margin-bottom: 20px;
}

.ai-tool__label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ai-tool__input, .ai-tool__textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.ai-tool__textarea {
    min-height: 120px;
    resize: vertical;
}

.ai-tool__input:focus, .ai-tool__textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.ai-tool__input:disabled, .ai-tool__textarea:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.ai-tool__generate-btn {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ai-tool__generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.ai-tool__generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-tool__usage-info {
    text-align: center;
    padding: 15px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.ai-tool__usage-text {
    color: #FF6B35;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Loading State */
.ai-tool__loading {
    text-align: center;
    padding: 40px 20px;
}

.ai-tool__spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.ai-tool__loading-title {
    color: #FF6B35;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.ai-tool__loading-text {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Results Section */
.ai-tool__results {
    margin-top: 30px;
}

.ai-tool__result-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid #FF6B35;
}

.ai-tool__result-header {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: white;
    padding: 25px;
    text-align: center;
}

.ai-tool__result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ai-tool__title-list {
    padding: 25px;
}

.ai-tool__title-item {
    background: linear-gradient(135deg, #fff8f5 0%, #f0f4ff 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FF6B35;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ai-tool__title-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    border-left-color: #2E86AB;
}

.ai-tool__title-item:last-child {
    margin-bottom: 0;
}

.ai-tool__title-number {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-tool__title-content {
    flex: 1;
}

.ai-tool__title-text {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ai-tool__title-hint {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.ai-tool__copy-icon {
    color: #FF6B35;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ai-tool__title-item:hover .ai-tool__copy-icon {
    transform: scale(1.1);
}

/* Action Buttons */
.ai-tool__action-buttons {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ai-tool__button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ai-tool__action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.ai-tool__action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ai-tool__action-btn--share {
    background: #25D366;
    color: white;
}

.ai-tool__action-btn--download {
    background: #1DA1F2;
    color: white;
}

.ai-tool__action-btn--copy {
    background: #e74c3c;
    color: white;
}

.ai-tool__disclaimer {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: left;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

/* Content Sections */
.ai-tool__content-section, .ai-tool__faq {
    background: #fff;
    padding: 40px 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ai-tool__section-title, .ai-tool__faq-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Upgrade Section - Redesigned */
.ai-tool__upgrade-section {
    background: linear-gradient(135deg, #2E86AB 0%, #1e5f7a 100%);
    margin: 40px 0;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 134, 171, 0.25);
    position: relative;
}

.ai-tool__upgrade-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF6B35, #28a745, #FF6B35);
}

.ai-tool__upgrade-container {
    padding: 60px 30px;
}

.ai-tool__upgrade-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.ai-tool__upgrade-badge {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ai-tool__upgrade-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: white;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #e8f4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-tool__upgrade-subtitle {
    font-size: 1.3rem;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.4;
}

.ai-tool__upgrade-price-highlight {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.ai-tool__upgrade-price-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-tool__upgrade-price-sub {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
}

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

.ai-tool__upgrade-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.ai-tool__upgrade-icon {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-tool__upgrade-tools-preview {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.ai-tool__upgrade-tools-preview h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #28a745;
}

.ai-tool__tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ai-tool__tools-grid span {
    background: rgba(255,107,53,0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ai-tool__upgrade-actions {
    margin-top: 40px;
}

.ai-tool__upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: white;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-tool__upgrade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.ai-tool__upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
    color: white;
    text-decoration: none;
}

.ai-tool__upgrade-btn:hover::before {
    left: 100%;
}

.ai-tool__upgrade-btn span {
    display: block;
    font-size: 1.3rem;
}

.ai-tool__upgrade-btn small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 5px;
}

/* FAQ Items */
.ai-tool__faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.ai-tool__faq-item {
    margin-bottom: 25px;
    padding: 20px;
    border-left: 4px solid #FF6B35;
    background: #fff8f5;
}

.ai-tool__faq-question {
    color: #333;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ai-tool__faq-answer {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.ai-tool__faq-answer a {
    color: #FF6B35;
}

/* Error States and Notifications */
.ai-tool__error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background: #ffeaea;
    border-radius: 8px;
    border: 1px solid #e74c3c;
    margin-top: 20px;
}

.ai-tool__notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.ai-tool__notification--success { background: #10b981; color: white; }
.ai-tool__notification--info { background: #3b82f6; color: white; }
.ai-tool__notification--error { background: #ef4444; color: white; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-tool__grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-tool__feature-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-tool__title {
        font-size: 2rem;
    }
    
    .ai-tool__tool-title {
        font-size: 1.6rem;
    }
    
    .ai-tool__upgrade-title {
        font-size: 2rem;
    }
    
    .ai-tool__upgrade-price-main {
        font-size: 2.2rem;
    }
    
    .ai-tool__upgrade-features {
        grid-template-columns: 1fr;
    }
    
    .ai-tool__free-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-tool__free-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ai-tool__title-item {
        padding: 15px;
        gap: 12px;
    }
    
    .ai-tool__title-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .ai-tool__title-text {
        font-size: 1rem;
    }
    
    .ai-tool__button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-tool__action-btn {
        width: 200px;
        justify-content: center;
    }
    
    .ai-tool__tool-container, .ai-tool__upgrade-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .ai-tool__article, .ai-tool__content-section, .ai-tool__faq {
        padding: 20px 15px;
    }
    
    .ai-tool__free-banner {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    .ai-tool__free-badge {
        font-size: 1rem;
    }
    
    .ai-tool__free-features {
        font-size: 0.9rem;
    }
    
    .ai-tool__title-list {
        padding: 15px;
    }
    
    .ai-tool__result-header {
        padding: 15px;
    }
    
    .ai-tool__result-header h3 {
        font-size: 1.2rem;
    }
    
    .ai-tool__notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .ai-tool__upgrade-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
    
    .ai-tool__tools-grid {
        gap: 8px;
    }
    
    .ai-tool__tools-grid span {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}