/* Interactive elements for MCP pages */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--gray-color);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.tab-button:hover {
    color: white;
}

.tab-button.active {
    color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* Collapsible sections */
.collapsible {
    background: rgba(17, 24, 39, 0.4);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.collapsible:hover {
    background: rgba(30, 41, 59, 0.4);
}

.collapsible-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: white;
}

.collapsible-header .icon {
    transition: transform 0.3s ease;
}

.collapsible.active .collapsible-header .icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.collapsible.active .collapsible-content {
    max-height: 1000px;
    padding: 5px 20px 20px;
}

/* Feature comparison */
.feature-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-comparison-header {
    text-align: center;
    padding: 15px 10px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border-radius: 10px 10px 0 0;
}

.feature-column {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    background: rgba(17, 24, 39, 0.3);
}

.feature-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.feature-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.feature-name {
    font-weight: 500;
}

/* Visual comparison chart */
.comparison-chart {
    display: flex;
    margin: 30px 0;
    gap: 20px;
}

.chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-header {
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
}

.chart-item {
    background: rgba(17, 24, 39, 0.4);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.chart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

/* Visual process flow */
.process-flow {
    position: relative;
    margin: 40px 0;
}

.flow-connector {
    position: absolute;
    left: 25px;
    top: 40px;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    z-index: 0;
}

.flow-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    z-index: 1;
}

.flow-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.flow-step-content {
    background: rgba(17, 24, 39, 0.4);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-step-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* Interactive cards */
.interactive-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.interactive-card {
    background: rgba(17, 24, 39, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.interactive-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.interactive-card-header {
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
}

.interactive-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(0, 201, 167, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.interactive-card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.interactive-card-content {
    padding: 20px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-primary {
    background: rgba(66, 133, 244, 0.2);
    color: var(--primary-color);
}

.badge-accent {
    background: rgba(0, 201, 167, 0.2);
    color: var(--accent-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

/* Feature matrix */
.feature-matrix {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: rgba(17, 24, 39, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.matrix-row {
    display: table-row;
}

.matrix-cell {
    display: table-cell;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.matrix-row:last-child .matrix-cell {
    border-bottom: none;
}

.matrix-header {
    font-weight: 600;
    background: rgba(30, 41, 59, 0.5);
}

.matrix-feature {
    font-weight: 500;
}

.check-yes {
    color: var(--success-color);
    font-size: 1.2rem;
}

.check-no {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.check-partial {
    color: var(--warning-color);
    font-size: 1.2rem;
}
