/* Keyword Tools Specific Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.output-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.keyword-stats,
.analysis-stats,
.longtail-stats,
.cluster-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.keyword-list-container,
.longtail-list-container {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 20px;
    background: #ffffff;
}

.keyword-list-header,
.longtail-list-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 12px 15px;
    background: var(--light-gray);
    font-weight: 600;
    border-bottom: 1px solid var(--light-gray);
}

.longtail-list-header {
    grid-template-columns: 3fr 1fr 1fr 1fr;
}

.keyword-list,
.longtail-list {
    max-height: 600px;
    overflow-y: auto;
}

.keyword-item,
.longtail-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.longtail-item {
    grid-template-columns: 3fr 1fr 1fr 1fr;
}

.keyword-item:last-child,
.longtail-item:last-child {
    border-bottom: none;
}

.keyword-item:hover,
.longtail-item:hover {
    background: #f8f9fa;
}

.keyword-type,
.longtail-intent,
.longtail-potential {
    font-size: 0.8rem;
}

.keyword-type.seed {
    background: #d4edda;
    color: #155724;
}

.keyword-type.question {
    background: #cce5ff;
    color: #004085;
}

.keyword-type.long-tail {
    background: #fff3cd;
    color: #856404;
}
.type-meta, .type-content, .type-heading{
    background: #3ac354;
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff;
}
.type-meta{
    background: #3ac354;
}
.type-content{
    background: #8d928d;
}
.type-heading{
    background: #3384e6;
}

.longtail-intent.informational {
    background: #cce5ff;
    color: #004085;
}

.longtail-intent.commercial {
    background: #d4edda;
    color: #155724;
}

.longtail-intent.local {
    background: #d1ecf1;
    color: #0c5460;
}

.longtail-intent.question {
    background: #f8d7da;
    color: #721c24;
}

.longtail-potential.high {
    background: #d4edda;
    color: #155724;
}

.longtail-potential.medium {
    background: #fff3cd;
    color: #856404;
}

.longtail-potential.low {
    background: #f8d7da;
    color: #721c24;
}

.analysis-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.analysis-table th,
.analysis-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.analysis-table th {
    background-color: var(--primary-color);
    color: white;
}

.analysis-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.analysis-table tr:hover {
    background-color: #f1f5ff;
}

.difficulty-meter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.difficulty-bar {
    height: 8px;
    background: linear-gradient(to right, #28a745, #ffc107, #dc3545);
    border-radius: 4px;
}

.potential-high {
    color: #28a745;
    font-weight: 600;
}

.potential-medium {
    color: #ffc107;
    font-weight: 600;
}

.potential-low {
    color: #dc3545;
    font-weight: 600;
}

.cluster-accordion {
    margin-top: 20px;
}

.cluster-item {
    margin-bottom: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.cluster-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

.cluster-header:hover {
    background: #f1f5ff;
}

.cluster-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cluster-content.active {
    max-height: 500px;
    padding: 15px;
}

.cluster-keyword-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.cluster-keyword {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.cluster-keyword:hover {
    background: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .keyword-list-header,
    .keyword-item {
        grid-template-columns: 2fr 1fr;
    }
    
    .keyword-list-header div:nth-child(3),
    .keyword-item div:nth-child(3) {
        display: none;
    }
    
    .longtail-list-header,
    .longtail-item {
        grid-template-columns: 2fr 1fr;
    }
    
    .longtail-list-header div:nth-child(3),
    .longtail-list-header div:nth-child(4),
    .longtail-item div:nth-child(3),
    .longtail-item div:nth-child(4) {
        display: none;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .cluster-keyword-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .keyword-stats,
    .analysis-stats,
    .longtail-stats,
    .cluster-stats {
        grid-template-columns: 1fr;
    }
    
    .cluster-keyword-list {
        grid-template-columns: 1fr;
    }
}