/* Tool-Specific Styles */

.tool-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 1000px;
}

.tool-form {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-results {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* Research Tips */
.research-tips {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.research-tips h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.research-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.research-tips li {
    color: #64748b;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.research-tips li::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    text-align: center;
}

.research-tips li:nth-child(1)::before {
    content: '🎯';
}

.research-tips li:nth-child(2)::before {
    content: '📈';
}

.research-tips li:nth-child(3)::before {
    content: '📊';
}

.research-tips li:nth-child(4)::before {
    content: '💰';
}

.research-tips li:last-child {
    border-bottom: none;
}

/* Understanding Metrics */
.metrics-info {
    background: #f0f9ff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.metrics-info h3 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.metric-item {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #0ea5e9;
}

.metric-label {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.25rem;
}

.metric-description {
    color: #64748b;
    font-size: 0.875rem;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    color: #dc2626;
}

/* Success States */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    color: #16a34a;
}

/* Info Messages */
.info-message {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-message i {
    color: #0284c7;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Tool Tips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Tool Layouts */
@media (min-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .tool-form {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }
}

@media (max-width: 767px) {
    .tool-form,
    .tool-results {
        padding: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .keywords-table {
        overflow-x: auto;
    }
    
    .thumbnails-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}