/* Shared Tool Styles */

/* Tool Section */
.tool-section {
    padding: 4rem 0;
    background: #fff;
}

/* Tool Card Styles */
.tool-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tool-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tool-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.tool-card-body {
    padding: 2rem;
}

/* Results Styles */
.results-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.results-header {
    margin-bottom: 1.5rem;
}

/* Related Tools */
.related-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.tool-icon-sm {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
}

.tool-info h6 {
    color: #1f2937;
    font-weight: 600;
}

/* Quick Insights */
.insight-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
}

.insight-card.success {
    border-left-color: #10b981;
}

.insight-card.warning {
    border-left-color: #f59e0b;
}

.insight-card.info {
    border-left-color: #3b82f6;
}

.insight-card.danger {
    border-left-color: #ef4444;
}

/* Action Buttons */
.analyze-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.input-wrapper input {
    padding-left: 2.5rem;
}

/* Badges */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #6366f1;
    color: #fff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Competitor Analysis Specific Styles */
.winner {
    background-color: #f0fdf4;
    font-weight: 600;
    color: #16a34a;
}

/* VS Divider */
.vs-divider {
    position: relative;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    transform: translateX(-50%);
}

.vs-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

/* Form Enhancements */
.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .tool-section {
        padding: 2rem 0;
    }
    
    .tool-card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .vs-divider {
        min-height: 60px;
        margin: 1rem 0;
    }
    
    .vs-divider::before {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    }
    
    .vs-badge {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}
